void-packages/srcpkgs/glew/template

34 lines
923 B
Bash

# Template build file for 'glew'.
pkgname=glew
version=1.12.0
revision=1
hostmakedepends="pkg-config"
makedepends="libXext-devel libXmu-devel libXi-devel MesaLib-devel"
short_desc="The OpenGL Extension Wrangler Library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://glew.sourceforge.net"
license="BSD, MIT, GPL-2"
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
checksum=af58103f4824b443e7fa4ed3af593b8edac6f3a7be3b30911edbc7344f48e4bf
do_build() {
sed -i -e "s|lib64|lib|" config/Makefile.linux
make CC=$CC AR=$AR AS=$AS LD=$CC RANLIB=$RANLIB \
CFLAGS.EXTRA="-fPIC $CFLAGS $CPPFLAGS" \
LDFLAGS.EXTRA="$LDFLAGS" ${makejobs}
}
do_install() {
make GLEW_DEST=${DESTDIR}/usr install
}
glew-devel_package() {
depends="glew-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}