28 lines
668 B
Plaintext
28 lines
668 B
Plaintext
# Description: The OpenGL Extension Wrangler Library.
|
|
# URL: https://glew.sourceforge.net
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: mesa xorg-libxi xorg-libxmu
|
|
|
|
name=glew
|
|
version=2.2.0
|
|
release=1
|
|
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tgz
|
|
glew-2.0.0-install-headers.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -p1 -i $SRC/glew-2.0.0-install-headers.patch
|
|
|
|
sed -i -e "s|lib64|lib|" config/Makefile.linux
|
|
sed -i -e '/^.PHONY: .*\.pc$/d' -i Makefile
|
|
|
|
make \
|
|
CC="${CC:-gcc}" \
|
|
LD="${CC:-gcc}" \
|
|
CFLAGS.EXTRA="$CFLAGS -fPIC" \
|
|
LDFLAGS.EXTRA="$LDFLAGS"
|
|
|
|
make GLEW_DEST="$PKG/usr" install
|
|
}
|