updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mingw-w64-glew / PKGBUILD
blob8d5d4cf01e314e9e3543484fa7515c946cdcda9f
1 pkgname=mingw-w64-glew
2 pkgver=1.7.0
3 pkgrel=3
4 pkgdesc="GLEW, The OpenGL Extension Wrangler Library (mingw-w64)"
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 provides=('mingw-w64-glew-lib32' 'mingw-w64-glew-pure64')
12 source=(http://downloads.sourceforge.net/glew/glew-${pkgver}.tgz
13         Makefile.patch
14         Makefile.mingw-32.patch
15         Makefile.mingw-64.patch)
16 noextract=()
17 md5sums=('fb7a8bb79187ac98a90b57f0f27a3e84'
18          'dd09a506bcf5a0424a26d274346e8737'
19          '362518879c2dfccd21ac16f00272c2d6'
20          'c810401115b89becccdfb7041bbbbd82')
22 build() {
23   cd "$srcdir/glew-$pkgver"
25   unset LDFLAGS
27   patch Makefile -i "../../Makefile.patch"
30   cp config/Makefile.{mingw,mingw_custom}
31   patch config/Makefile.mingw_custom -i "../../Makefile.mingw-32.patch"
33   echo -e "#!/bin/sh\necho mingw_custom" > config/config.guess
35   GLEW_DEST=/usr/i686-w64-mingw32/ make
37   mkdir -p "$pkgdir/usr/i686-w64-mingw32/lib/pkgconfig"
38   GLEW_DEST="$pkgdir/usr/i686-w64-mingw32" make install
41   make clean
44   cp config/Makefile.{mingw,mingw_custom}
45   patch config/Makefile.mingw_custom -i "../../Makefile.mingw-64.patch"
47   echo -e "#!/bin/sh\necho mingw_custom" > config/config.guess
49   GLEW_DEST=/usr/x86_64-w64-mingw32/ make
51   mkdir -p "$pkgdir/usr/x86_64-w64-mingw32/lib/pkgconfig"
52   GLEW_DEST="$pkgdir/usr/x86_64-w64-mingw32" make install