1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
6 pkgdesc="tiny C lib primarily for loading textures into OpenGL"
8 url="http://www.lonesock.net/soil.html"
10 makedepends=('mingw32-gcc' 'unzip')
11 depends=('mingw32-runtime' 'freeglut')
13 source=("http://www.lonesock.net/files/soil.zip")
14 md5sums=('4736ac4f34fd9a41fa0197eac23bbc24')
18 cd "${srcdir}/Simple OpenGL Image Library/projects/makefile"
19 [[ -d obj ]] && rm -r obj/
22 sed "s|LOCAL = /usr/local|LOCAL = ${pkgdir}/usr/i486-mingw32|g" -i makefile
23 sed "s|CXX = gcc|CXX = i486-mingw32-gcc|g" -i makefile
24 sed "s|CXXFLAGS = |CXXFLAGS = -fPIC |g" -i makefile
25 mkdir -p ${pkgdir}/usr/i486-mingw32/{lib,include}
28 chmod 644 ${pkgdir}/usr/i486-mingw32/lib/libSOIL.a
29 i486-mingw32-ranlib ${pkgdir}/usr/i486-mingw32/lib/libSOIL.a