34 lines
925 B
Plaintext
34 lines
925 B
Plaintext
# Template build file for 'glew'.
|
|
pkgname=glew
|
|
version=1.11.0
|
|
revision=2
|
|
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"
|
|
update_ignore="20*"
|
|
license="BSD, MIT, GPL-2"
|
|
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
|
|
checksum=69bbce306ac281c4fa806a7a7d02c0596281a2d8f9d70690e98126f23ba513d6
|
|
|
|
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" LDFLAGS.EXTRA="$LDFLAGS" ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make GLEW_DEST=${DESTDIR}/usr install
|
|
}
|
|
|
|
glew-devel_package() {
|
|
depends="glew-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|