updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / mingw32-soil / PKGBUILD
blobe4ade26cd4eb5de5aa85ec351038de72491f184f
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
3 pkgname=mingw32-soil
4 pkgver=0708
5 pkgrel=2
6 pkgdesc="tiny C lib primarily for loading textures into OpenGL"
7 arch=('i686' 'x86_64')
8 url="http://www.lonesock.net/soil.html"
9 license=('public')
10 makedepends=('mingw32-gcc' 'unzip')
11 depends=('mingw32-runtime' 'freeglut')
12 #options=('!libtool')
13 source=("http://www.lonesock.net/files/soil.zip")
14 md5sums=('4736ac4f34fd9a41fa0197eac23bbc24')
15 options=('!strip')
17 build() {
18   cd "${srcdir}/Simple OpenGL Image Library/projects/makefile"
19   [[ -d obj ]] && rm -r obj/
20   mkdir 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}
26   make
27   make install
28   chmod 644 ${pkgdir}/usr/i486-mingw32/lib/libSOIL.a
29   i486-mingw32-ranlib ${pkgdir}/usr/i486-mingw32/lib/libSOIL.a