From 2eb13406495b2ed10ea3aa3d7cd5eef6059345ee Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 4 Oct 2014 20:48:18 +0200 Subject: [PATCH] New package: glew19-1.9.0 --- common/shlibs | 2 +- srcpkgs/glew19-devel | 1 + srcpkgs/glew19/template | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 120000 srcpkgs/glew19-devel create mode 100644 srcpkgs/glew19/template diff --git a/common/shlibs b/common/shlibs index 9648d55d6b3..ef94a3606df 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1771,4 +1771,4 @@ libwraster.so.5 WindowMaker-0.95.6_3 libWUtil.so.5 WindowMaker-0.95.6_3 libWINGs.so.3 WindowMaker-0.95.6_3 libWMaker.so.1 WindowMaker-0.95.6_3 - +libGLEW.so.1.9 glew19-1.9.0_1 diff --git a/srcpkgs/glew19-devel b/srcpkgs/glew19-devel new file mode 120000 index 00000000000..989d1aa46f1 --- /dev/null +++ b/srcpkgs/glew19-devel @@ -0,0 +1 @@ +glew19 \ No newline at end of file diff --git a/srcpkgs/glew19/template b/srcpkgs/glew19/template new file mode 100644 index 00000000000..3934de7d8b9 --- /dev/null +++ b/srcpkgs/glew19/template @@ -0,0 +1,34 @@ +# Template build file for 'glew19'. +pkgname=glew19 +version=1.9.0 +revision=1 +hostmakedepends="pkg-config" +makedepends="libXext-devel libXmu-devel libXi-devel MesaLib-devel" +short_desc="The OpenGL Extension Wrangler Library (1.9 branch)" +maintainer="Juan RP " +homepage="http://glew.sourceforge.net" +license="BSD, MIT, GPL-2" +distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz" +checksum=9b36530e414c95d6624be9d6815a5be1531d1986300ae5903f16977ab8aeb787 +wrksrc=glew-${version} + +do_build() { + sed -i -e "s|lib64|lib|" config/Makefile.linux + make CFLAGS.EXTRA="-fPIC $CFLAGS" LDFLAGS.EXTRA="$LDFLAGS" ${makejobs} +} + +do_install() { + make GLEW_DEST=${DESTDIR}/usr install +} + +glew19-devel_package() { + conflicts="glew-devel" + depends="glew19-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}