opt/glew/Pkgfile

26 lines
634 B
Plaintext
Raw Normal View History

2012-08-26 10:23:58 +02:00
# Description: The OpenGL Extension Wrangler Library.
2012-07-14 03:28:53 +02:00
# URL: http://glew.sourceforge.net/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2012-07-14 03:28:53 +02:00
# Packager: Johannes Winkelmann, jw at smts dot ch
# Depends on: mesa3d xorg-libxi xorg-libxmu
name=glew
2017-08-05 06:36:27 +02:00
version=2.1.0
2012-08-26 10:23:58 +02:00
release=1
2017-08-05 06:36:27 +02:00
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tgz)
2012-07-14 03:28:53 +02:00
build() {
2012-08-26 10:23:58 +02:00
cd $name-$version
sed -i -e "s|lib64|lib|" config/Makefile.linux
2016-08-07 12:14:39 +02:00
sed -i -e '/^.PHONY: .*\.pc$/d' -i Makefile
2012-08-26 10:23:58 +02:00
make \
CC="${CC:-gcc}" \
LD="${CC:-gcc}" \
2013-07-25 10:21:41 +02:00
CFLAGS.EXTRA="$CFLAGS -fPIC" \
2012-08-26 10:23:58 +02:00
LDFLAGS.EXTRA="$LDFLAGS"
make GLEW_DEST="$PKG/usr" install
2012-07-14 03:28:53 +02:00
}