void-packages/srcpkgs/glew/template

33 lines
905 B
Text
Raw Normal View History

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