From f37b5f1feb745b2fe150ea252900226f74e78062 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 11 Nov 2010 02:49:55 +0100 Subject: [PATCH] Added glew-1.5.7 build template. --- srcpkgs/glew-devel | 1 + srcpkgs/glew/depends | 2 ++ srcpkgs/glew/glew-devel.template | 18 ++++++++++++++ srcpkgs/glew/template | 42 ++++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 120000 srcpkgs/glew-devel create mode 100644 srcpkgs/glew/depends create mode 100644 srcpkgs/glew/glew-devel.template create mode 100644 srcpkgs/glew/template diff --git a/srcpkgs/glew-devel b/srcpkgs/glew-devel new file mode 120000 index 0000000000..449e70a36c --- /dev/null +++ b/srcpkgs/glew-devel @@ -0,0 +1 @@ +glew \ No newline at end of file diff --git a/srcpkgs/glew/depends b/srcpkgs/glew/depends new file mode 100644 index 0000000000..14e3749266 --- /dev/null +++ b/srcpkgs/glew/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.5.7" +api_depends="${abi_depends}" diff --git a/srcpkgs/glew/glew-devel.template b/srcpkgs/glew/glew-devel.template new file mode 100644 index 0000000000..306193faa6 --- /dev/null +++ b/srcpkgs/glew/glew-devel.template @@ -0,0 +1,18 @@ +# Template file for 'glew-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glew + +do_install() +{ + mkdir -p ${DESTDIR}/usr/{lib,share} + + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share +} diff --git a/srcpkgs/glew/template b/srcpkgs/glew/template new file mode 100644 index 0000000000..e25d98b38b --- /dev/null +++ b/srcpkgs/glew/template @@ -0,0 +1,42 @@ +# Template build file for 'glew'. +pkgname=glew +version=1.5.7 +distfiles="${SOURCEFORGE_SITE}/glew/glew-${version}.tgz" +build_style=custom-install +short_desc="The OpenGL Extension Wrangler Library" +maintainer="Juan RP " +checksum=86bd36a163640d6027ec6be5fdd8a6e3b90f02dcf55f95c3c2429ebb58be3107 +long_desc=" + FTGL is a free cross-platform Open Source C++ library that uses Freetype2 + to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps, + pixmaps, texture maps, outlines, polygon mesh, and extruded polygon + rendering modes." + +subpackages="glew-devel" + +Add_dependency run glibc +Add_dependency run libX11 +Add_dependency run libXext +Add_dependency run libXmu +Add_dependency run libXi +Add_dependency run MesaLib + +Add_dependency build pkg-config +Add_dependency build libXmu-devel +Add_dependency build libXi-devel +Add_dependency build MesaLib-devel +Add_dependency build libXext-devel +Add_dependency build libX11-devel + +do_build() +{ + sed -i -e "s|lib64|lib|" config/Makefile.linux + make ${makejobs} +} + +do_install() +{ + make GLEW_DEST=${DESTDIR}/usr install + chmod 755 ${DESTDIR}/usr/lib/libGLEW.so* +} +