1 # Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
8 pkgdesc="High performance realtime 3D graphics engine."
10 url="http://irrlicht.sourceforge.net/"
12 depends=('bzip2' 'freeglut' 'libgl' 'libjpeg' 'libpng' 'zlib')
13 makedepends=('subversion')
15 replaces=('irrlicht') # It will be this way until SuperTuxKart supports a stable release.
16 conflicts=('irrlicht')
17 source=(include-config.diff
19 md5sums=('7ff49d8ddc50deac316f4e2141828f31'
20 '87ea931c460eda957b5d6e752686705d')
24 _svntrunk="https://$_pkgname.svn.sourceforge.net/svnroot/$_pkgname/trunk"
28 msg "Starting SVN checkout..."
32 if [ -d $_svnmod/.svn ]; then
33 (cd $_svnmod && svn up -r $pkgver)
35 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
38 msg "SVN checkout done or server timeout"
39 msg "Starting make..."
41 rm -rf $srcdir/$_svnmod-build
42 cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
43 cd $srcdir/$_svnmod-build
46 #patch -uN "$srcdir/$_svnmod-build/include/IrrCompileConfig.h" "$srcdir/include-config.diff"
47 #patch -uN "$srcdir/$_svnmod-build/source/Irrlicht/Makefile" "$srcdir/makefile-fixes.diff"
49 sed -i -e '/^CXXFLAGS/s:-g.*::' \
50 -e '/^CXXFLAGS/s:-Wall::' \
51 -e '/^CFLAGS/s/:= -O3 -fexpensive-optimizations/+=/' \
52 -e 's:--no-export-all-symbols --add-stdcall-alias::' \
54 -e "/^INSTALL_DIR/s:=.*:= ${pkgdir}/usr/lib:" \
55 $srcdir/$_svnmod-build/source/Irrlicht/Makefile
65 cd "$srcdir/$_svnmod-build/source/Irrlicht"
67 install -d $pkgdir/usr/share/licenses/$_pkgname \
68 $pkgdir/usr/share/doc/$_pkgname
72 cd $srcdir/$_svnmod-build/
73 install -m644 readme.txt $pkgdir/usr/share/licenses/$_pkgname
75 # Install documentation
76 cp -r doc/* $pkgdir/usr/share/doc/$_pkgname
77 rm -f $pkgdir/usr/share/doc/$_pkgname/*.txt
80 ln -s libIrrlicht.so.$_pkgver libIrrlicht.so.1
81 #ln -s libIrrlicht.so.$_pkgver libIrrlicht.so