From a89bc59a8812434254852d3f87af6ccac7309f3e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Jun 2013 10:34:02 +0200 Subject: [PATCH] New package: irrlicht-1.8. --- common/shlibs | 1 + srcpkgs/irrlicht-devel | 1 + srcpkgs/irrlicht/template | 49 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 120000 srcpkgs/irrlicht-devel create mode 100644 srcpkgs/irrlicht/template diff --git a/common/shlibs b/common/shlibs index a86639dc4e..2828c2d25a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1348,3 +1348,4 @@ libkworkspace.so.4 kde-workspace-4.10.4_1 libkgapi.so.1 libkgapi-2.0.1_1 libkgapi2.so.2 libkgapi-2.0.1_1 libqoauth.so.1 qoauth-1.0.1_1 +libIrrlicht.so.1.8 irrlicht-1.8_1 diff --git a/srcpkgs/irrlicht-devel b/srcpkgs/irrlicht-devel new file mode 120000 index 0000000000..ca1bdc1f44 --- /dev/null +++ b/srcpkgs/irrlicht-devel @@ -0,0 +1 @@ +irrlicht \ No newline at end of file diff --git a/srcpkgs/irrlicht/template b/srcpkgs/irrlicht/template new file mode 100644 index 0000000000..35941dc206 --- /dev/null +++ b/srcpkgs/irrlicht/template @@ -0,0 +1,49 @@ +# Template file for 'irrlicht' +pkgname=irrlicht +version=1.8 +revision=1 +hostmakedepends="unzip pkg-config" +makedepends="libjpeg-turbo-devel libpng-devel libXcursor-devel libXext-devel MesaLib-devel" +short_desc="Lightning fast realtime 3D engine" +maintainer="Juan RP " +license="LGPL-2.1" +homepage="http://irrlicht.sourceforge.net" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.zip" +checksum=f8756c3cf83f16f41eb1eca8f4ebb530f0e8fd572443905e3d8eb8f09445a642 + +do_build() { + cd source/Irrlicht + make ${makejobs} NDEBUG=1 sharedlib + make ${makejobs} NDEBUG=1 +} + +do_install() { + cd source/Irrlicht + + vmkdir usr/lib + sed -i "/^INSTALL_DIR/s:=.*:=${DESTDIR}/usr/lib:" Makefile + make install + + cd ${wrksrc} + vinstall lib/Linux/libIrrlicht.a 644 usr/lib + chmod 644 ${DESTDIR}/usr/include/$pkgname/* + + cd ${DESTDIR}/usr/lib + ln -s libIrrlicht.so.${version} libIrrlicht.so.1 +} + +irrlicht-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}-${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +} + +irrlicht_package() { + pkg_install() { + vmove usr + } +}