void-packages/srcpkgs/glew/template

37 lines
993 B
Bash

# Template file for 'glew'
pkgname=glew
version=2.2.0
revision=1
build_style=gnu-makefile
make_install_target="install.all"
hostmakedepends="pkg-config"
makedepends="libXext-devel libXmu-devel libXi-devel glu-devel"
short_desc="OpenGL Extension Wrangler Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, MIT, GPL-2.0-or-later"
homepage="http://glew.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
checksum=d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1
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"
}
}