Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
|
|
|
|
pkgname=irrlicht-svn
|
|
|
|
_pkgname=irrlicht
|
2011-07-27 05:33:02 +08:00
|
|
|
pkgver=3843
|
|
|
|
_pkgver=1.8.0
|
|
|
|
pkgrel=1
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
pkgdesc="High performance realtime 3D graphics engine."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://irrlicht.sourceforge.net/"
|
|
|
|
license=('ZLIB')
|
2011-07-27 05:33:02 +08:00
|
|
|
depends=('bzip2' 'freeglut' 'libgl' 'libjpeg' 'libpng' 'zlib')
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
makedepends=('subversion')
|
|
|
|
changelog=ChangeLog
|
|
|
|
provides=('irrlicht')
|
|
|
|
replaces=('irrlicht') # It will be this way until SuperTuxKart supports a stable release.
|
2011-06-04 06:03:27 +08:00
|
|
|
conflicts=('irrlicht')
|
2011-07-27 05:33:02 +08:00
|
|
|
source=(include-config.diff
|
|
|
|
makefile-fixes.diff)
|
|
|
|
md5sums=('7ff49d8ddc50deac316f4e2141828f31'
|
|
|
|
'1b5ffa3a9bfa005f18799a36a1bb477a')
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
|
|
|
|
_svntrunk="https://$_pkgname.svn.sourceforge.net/svnroot/$_pkgname/trunk"
|
|
|
|
_svnmod="$_pkgname"
|
|
|
|
|
2011-07-27 05:33:02 +08:00
|
|
|
build() {
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
cd $srcdir
|
2011-07-27 05:33:02 +08:00
|
|
|
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
if [ -d $_svnmod/.svn ]; then
|
2011-07-27 05:33:02 +08:00
|
|
|
(cd $_svnmod && svn up -r $pkgver)
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
else
|
2011-07-27 05:33:02 +08:00
|
|
|
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
fi
|
2011-07-27 05:33:02 +08:00
|
|
|
|
|
|
|
msg "SVN checkout done or server timeout"
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
msg "Starting make..."
|
2011-07-27 05:33:02 +08:00
|
|
|
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
rm -rf $srcdir/$_svnmod-build
|
|
|
|
cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
|
|
|
|
cd $srcdir/$_svnmod-build
|
|
|
|
|
2011-07-27 05:33:02 +08:00
|
|
|
# Patches.
|
|
|
|
patch -uN $srcdir/$_svnmod-build/include/IrrCompileConfig.h $srcdir/include-config.diff
|
|
|
|
patch -uN $srcdir/$_svnmod-build/source/Irrlicht/Makefile $srcdir/makefile-fixes.diff
|
|
|
|
sed -i -e '/^CXXFLAGS/s:-g.*::' \
|
|
|
|
-e '/^CXXFLAGS/s:-Wall::' \
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
-e '/^CFLAGS/s/:= -O3 -fexpensive-optimizations/+=/' \
|
2011-07-27 05:33:02 +08:00
|
|
|
-e 's:--no-export-all-symbols --add-stdcall-alias::' \
|
|
|
|
-e 's/0-SVN/0/' \
|
|
|
|
-e "/^INSTALL_DIR/s:=.*:= ${pkgdir}/usr/lib:" \
|
|
|
|
$srcdir/$_svnmod-build/source/Irrlicht/Makefile
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
|
2011-07-27 05:33:02 +08:00
|
|
|
# Compilation.
|
|
|
|
cd source/Irrlicht
|
|
|
|
make sharedlib
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$_svnmod-build/source/Irrlicht
|
|
|
|
|
2011-07-27 05:33:02 +08:00
|
|
|
install -d $pkgdir/usr/share/licenses/$_pkgname \
|
|
|
|
$pkgdir/usr/share/doc/$_pkgname
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
|
2011-07-27 05:33:02 +08:00
|
|
|
make install
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
|
|
|
|
cd $srcdir/$_svnmod-build/
|
|
|
|
install -m644 readme.txt $pkgdir/usr/share/licenses/$_pkgname
|
|
|
|
|
|
|
|
# Install documentation
|
|
|
|
cp -r doc/* $pkgdir/usr/share/doc/$_pkgname
|
|
|
|
rm -f $pkgdir/usr/share/doc/$_pkgname/*.txt
|
|
|
|
|
|
|
|
cd $pkgdir/usr/lib
|
2011-07-27 05:33:02 +08:00
|
|
|
ln -s libIrrlicht.so.$_pkgver libIrrlicht.so.1
|
|
|
|
ln -s libIrrlicht.so.$_pkgver libIrrlicht.so
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
}
|