4 pkgdesc="GLEW, The OpenGL Extension Wrangler Library (mingw-w64)"
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
14 Makefile.mingw-32.patch
15 Makefile.mingw-64.patch)
17 md5sums=('fb7a8bb79187ac98a90b57f0f27a3e84'
18 'dd09a506bcf5a0424a26d274346e8737'
19 '362518879c2dfccd21ac16f00272c2d6'
20 'c810401115b89becccdfb7041bbbbd82')
23 cd "$srcdir/glew-$pkgver"
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
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