void-packages/srcpkgs/glew19/template
2015-11-10 17:56:51 +01:00

33 lines
934 B
Bash

# Template build file for 'glew19'.
pkgname=glew19
version=1.9.0
revision=2
hostmakedepends="pkg-config"
makedepends="libXext-devel libXmu-devel libXi-devel MesaLib-devel"
short_desc="The OpenGL Extension Wrangler Library (1.9 branch)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://glew.sourceforge.net"
license="BSD, MIT, GPL-2"
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
checksum=9b36530e414c95d6624be9d6815a5be1531d1986300ae5903f16977ab8aeb787
wrksrc=glew-${version}
do_build() {
sed -i -e "s|lib64|lib|" config/Makefile.linux
make CFLAGS.EXTRA="-fPIC $CFLAGS" LDFLAGS.EXTRA="$LDFLAGS" ${makejobs}
}
do_install() {
make GLEW_DEST=${DESTDIR}/usr install
}
glew19-devel_package() {
conflicts="glew-devel>=0"
depends="glew19-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}