void-packages/srcpkgs/glew/template

40 lines
1.1 KiB
Plaintext

# Template build file for 'glew'.
pkgname=glew
version=1.9.0
revision=3
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=9b36530e414c95d6624be9d6815a5be1531d1986300ae5903f16977ab8aeb787
long_desc="
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
C/C++ extension loading library. GLEW provides efficient run-time
mechanisms for determining which OpenGL extensions are supported
on the target platform. OpenGL core and extension functionality is
exposed in a single header file."
do_build() {
sed -i -e "s|lib64|lib|" config/Makefile.linux
make ${makejobs}
}
do_install() {
make GLEW_DEST=${DESTDIR}/usr install
chmod 755 ${DESTDIR}/usr/lib/libGLEW.so*
rm -f ${DESTDIR}/usr/lib/*.a
}
glew-devel_package() {
depends="glew-${version}_${revision}"
short_desc="${short_desc} - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}