37 lines
984 B
Bash
37 lines
984 B
Bash
# Template build file for 'glew'.
|
|
pkgname=glew
|
|
version=2.1.0
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libXext-devel libXmu-devel libXi-devel glu-devel"
|
|
short_desc="The OpenGL Extension Wrangler Library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://glew.sourceforge.net"
|
|
license="BSD, MIT, GPL-2"
|
|
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
|
|
checksum=04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95
|
|
make_install_target="install.all"
|
|
|
|
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}
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
glew-devel_package() {
|
|
depends="${sourcepkg}-${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"
|
|
}
|
|
}
|