diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/irrlicht |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/irrlicht')
-rw-r--r-- | community/irrlicht/PKGBUILD | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/community/irrlicht/PKGBUILD b/community/irrlicht/PKGBUILD new file mode 100644 index 000000000..dc74aaaf3 --- /dev/null +++ b/community/irrlicht/PKGBUILD @@ -0,0 +1,81 @@ +# $Id: PKGBUILD 33729 2010-11-28 11:00:58Z svenstaro $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Hilton Medeiros <medeiros.hilton AT gmail DOT com> +# Contributor: Ali H. Caliskan <ali.h.caliskan AT gmail DOT com> +# Contributor: Paolo Fagni <paolo.fagni AT mail DOT com> +# Contributor: Lukas Kropatschek <lukas.krop AT gmail DOT com> + +pkgname=irrlicht +pkgver=1.7.2 +pkgrel=1 +pkgdesc="An open source high performance realtime 3D graphics engine." +arch=('i686' 'x86_64') +url="http://irrlicht.sourceforge.net/" +license=('ZLIB') +depends=('mesa' 'libjpeg' 'bzip2') +source=("http://downloads.sourceforge.net/irrlicht/$pkgname-$pkgver.zip") +md5sums=('eb627d4c432bf73f12bc6d9ddc700b07') + +build() { + cd $srcdir/$pkgname-$pkgver + + sed -i -e '/^#.*NON_SYSTEM_ZLIB/d' \ + -e '/^#.*NON_SYSTEM_JPEG/d' \ + -e '/^#.*NON_SYSTEM_BZLIB/d' \ + include/IrrCompileConfig.h + + cd source/Irrlicht + sed -i -e '/^CXXFLAGS/s:-g.*::' \ + -e '/^CXXFLAGS/s:-Wall::' \ + -e '/^CFLAGS/s/:= -O3 -fexpensive-optimizations/+=/' \ + -e '/^CXXINCS/s:-Izlib -Ijpeglib::' \ + -e '/^ZLIBOBJ/d' \ + -e '/^JPEGLIBOBJ/d' \ + -e '/^BZIP2OBJ/d' \ + -e '/.o=.d/d' \ + -e '/^sharedlib: LDFLAGS/s:+=:+= -lGL -lXxf86vm -ljpeg -lbz2 -lz:' \ + -e "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" \ + -e 's/0-SVN/1/' \ + -e 's/.$(VERSION_MINOR) -o/ -o/' \ + Makefile + + make sharedlib + + make + + install -d $pkgdir/usr/lib \ + $pkgdir/usr/share/licenses/$pkgname \ + $pkgdir/usr/share/$pkgname/examples/bin \ + $pkgdir/usr/share/doc/$pkgname + + make install + + cd $srcdir/$pkgname-$pkgver/ + install -m644 readme.txt $pkgdir/usr/share/licenses/$pkgname + + # Install static library and fix headers permissions + install -m644 lib/Linux/libIrrlicht.a $pkgdir/usr/lib + chmod 644 $pkgdir/usr/include/$pkgname/* + + # Install media files for examples + cp -r media $pkgdir/usr/share/$pkgname + + # Install documentation + cp -r doc/* $pkgdir/usr/share/doc/$pkgname + rm -f $pkgdir/usr/share/doc/$pkgname/*.txt + + cd $pkgdir/usr/lib + ln -s libIrrlicht.so.$pkgver libIrrlicht.so.1 + + # Just a helper for examples compilation + ln -s libIrrlicht.so.$pkgver $srcdir/$pkgname-$pkgver/lib/Linux/libIrrlicht.so + + # Edit, build and install the examples + cd $srcdir/$pkgname-$pkgver/examples + sed -i '/define USE_IRRKLANG/s:.*://&:' ./Demo/CDemo.h + sed -i '/^CXXFLAGS/d' $(grep -Rl "^CXXFLAGS =" *) + + make + + install -m755 ../bin/Linux/* /$pkgdir/usr/share/$pkgname/examples/bin/ +} |