2010-11-11 02:49:55 +01:00
|
|
|
# Template build file for 'glew'.
|
|
|
|
pkgname=glew
|
2012-12-08 09:38:40 +01:00
|
|
|
version=1.9.0
|
2013-04-12 13:13:49 +02:00
|
|
|
revision=3
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libXext-devel libXmu-devel libXi-devel MesaLib-devel"
|
2010-11-11 02:49:55 +01:00
|
|
|
short_desc="The OpenGL Extension Wrangler Library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-30 14:15:26 +02:00
|
|
|
homepage="http://glew.sourceforge.net"
|
|
|
|
license="BSD, MIT, GPL-2"
|
2012-10-09 11:00:38 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz"
|
2012-12-08 09:38:40 +01:00
|
|
|
checksum=9b36530e414c95d6624be9d6815a5be1531d1986300ae5903f16977ab8aeb787
|
2010-11-11 02:49:55 +01:00
|
|
|
long_desc="
|
2012-12-08 09:38:40 +01:00
|
|
|
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."
|
2010-11-11 02:49:55 +01:00
|
|
|
|
2012-10-09 11:00:38 +02:00
|
|
|
do_build() {
|
2010-11-11 02:49:55 +01:00
|
|
|
sed -i -e "s|lib64|lib|" config/Makefile.linux
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
2012-10-09 11:00:38 +02:00
|
|
|
do_install() {
|
2010-11-11 02:49:55 +01:00
|
|
|
make GLEW_DEST=${DESTDIR}/usr install
|
2012-10-09 11:00:38 +02:00
|
|
|
|
2010-11-11 02:49:55 +01:00
|
|
|
chmod 755 ${DESTDIR}/usr/lib/libGLEW.so*
|
2012-10-09 11:00:38 +02:00
|
|
|
rm -f ${DESTDIR}/usr/lib/*.a
|
2010-11-11 02:49:55 +01:00
|
|
|
}
|
2013-04-12 13:13:49 +02:00
|
|
|
|
|
|
|
glew-devel_package() {
|
|
|
|
depends="glew-${version}_${revision}"
|
|
|
|
short_desc="${short_desc} - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
glew_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|