blob: 6532df26a40323d60268a28ddbcc2183a8458ce4 (
plain)
1 # Description: The OpenGL Extension Wrangler Library.
2 # URL: http://glew.sourceforge.net/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: mesa xorg-libxi xorg-libxmu
5
6 name=glew
7 version=2.1.0
8 release=2
9 source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tgz
10 glew-2.0.0-install-headers.patch)
11
12 build() {
13 cd $name-$version
14
15 patch -p1 -i $SRC/glew-2.0.0-install-headers.patch
16
17 sed -i -e "s|lib64|lib|" config/Makefile.linux
18 sed -i -e '/^.PHONY: .*\.pc$/d' -i Makefile
19
20 make \
21 CC="${CC:-gcc}" \
22 LD="${CC:-gcc}" \
23 CFLAGS.EXTRA="$CFLAGS -fPIC" \
24 LDFLAGS.EXTRA="$LDFLAGS"
25
26 make GLEW_DEST="$PKG/usr" install
27 }
|