2010-11-11 02:49:55 +01:00
|
|
|
# Template build file for 'glew'.
|
|
|
|
pkgname=glew
|
2015-03-08 11:56:39 +01:00
|
|
|
version=1.12.0
|
2015-05-12 10:22:51 +02:00
|
|
|
revision=3
|
2013-04-12 13:13:49 +02:00
|
|
|
hostmakedepends="pkg-config"
|
2015-05-12 10:22:51 +02:00
|
|
|
makedepends="libXext-devel libXmu-devel libXi-devel glu-devel"
|
2010-11-11 02:49:55 +01:00
|
|
|
short_desc="The OpenGL Extension Wrangler Library"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-05-30 14:15:26 +02:00
|
|
|
homepage="http://glew.sourceforge.net"
|
|
|
|
license="BSD, MIT, GPL-2"
|
2012-10-09 11:00:38 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
|
2015-03-08 11:56:39 +01:00
|
|
|
checksum=af58103f4824b443e7fa4ed3af593b8edac6f3a7be3b30911edbc7344f48e4bf
|
2010-11-11 02:49:55 +01:00
|
|
|
|
2012-10-09 11:00:38 +02:00
|
|
|
do_build() {
|
2010-11-11 02:49:55 +01:00
|
|
|
sed -i -e "s|lib64|lib|" config/Makefile.linux
|
2015-03-08 11:56:39 +01:00
|
|
|
make CC=$CC AR=$AR AS=$AS LD=$CC RANLIB=$RANLIB \
|
|
|
|
CFLAGS.EXTRA="-fPIC $CFLAGS $CPPFLAGS" \
|
|
|
|
LDFLAGS.EXTRA="$LDFLAGS" ${makejobs}
|
2010-11-11 02:49:55 +01:00
|
|
|
}
|
|
|
|
|
2012-10-09 11:00:38 +02:00
|
|
|
do_install() {
|
2010-11-11 02:49:55 +01:00
|
|
|
make GLEW_DEST=${DESTDIR}/usr install
|
|
|
|
}
|
2013-04-12 13:13:49 +02:00
|
|
|
|
|
|
|
glew-devel_package() {
|
2015-05-12 08:58:59 +02:00
|
|
|
depends="glew-${version}_${revision} glu-devel"
|
2014-02-19 16:12:46 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-19 16:12:46 +01:00
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|