updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-mingw-w64-glew / PKGBUILD
blobec7392881db267a9343568759b5ddd55120e5eb6
1 pkgname=lib32-mingw-w64-glew
2 pkgver=1.7.0
3 pkgrel=2
4 pkgdesc="GLEW, The OpenGL Extension Wrangler Library (mingw-w64, 32-bit)"
5 arch=('any')
6 url="http://glew.sourceforge.net/"
7 license=('Modified BSD/MIT/GPL')
8 depends=('mingw-w64-crt')
9 makedepends=('mingw-w64-gcc')
10 options=(!strip !buildflags)
11 source=(http://downloads.sourceforge.net/glew/glew-${pkgver}.tgz Makefile.patch Makefile.mingw.patch)
12 noextract=()
13 md5sums=('fb7a8bb79187ac98a90b57f0f27a3e84'
14          'dd09a506bcf5a0424a26d274346e8737'
15          '362518879c2dfccd21ac16f00272c2d6')
17 build() {
18   cd "$srcdir/glew-$pkgver"
20   unset LDFLAGS
22   patch Makefile -i "../../Makefile.patch"
23   patch config/Makefile.mingw -i "../../Makefile.mingw.patch"
25   echo -e "#!/bin/sh\necho mingw" > config/config.guess
27   GLEW_DEST=/usr/i686-w64-mingw32/ make
30 package() {
31   cd "$srcdir/glew-$pkgver"
32   mkdir -p "$pkgdir/usr/i686-w64-mingw32/lib/pkgconfig"
33   GLEW_DEST="$pkgdir/usr/i686-w64-mingw32" make install