35 lines
958 B
Bash
35 lines
958 B
Bash
# Template build file for 'glew'.
|
|
pkgname=glew
|
|
version=1.13.0
|
|
revision=2
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libXext-devel libXmu-devel libXi-devel glu-devel"
|
|
short_desc="The OpenGL Extension Wrangler Library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://glew.sourceforge.net"
|
|
license="BSD, MIT, GPL-2"
|
|
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
|
|
checksum=aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7
|
|
|
|
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.all
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
glew-devel_package() {
|
|
depends="glew-${version}_${revision} glu-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|