diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2010-04-04 16:33:54 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2010-04-04 16:35:57 +1000 |
commit | 3ea484e3264b26fdbfa37e49327ae3197d731d66 (patch) | |
tree | 27a1c92a021db5bd138e7212d4477b0fef336593 /hedgewars/Pkgfile | |
parent | 596bf67ae976580281d7d2be9822aa2ccdbadd14 (diff) | |
download | contrib-3ea484e3264b26fdbfa37e49327ae3197d731d66.tar.gz contrib-3ea484e3264b26fdbfa37e49327ae3197d731d66.tar.xz |
hedgewars: new port
Diffstat (limited to 'hedgewars/Pkgfile')
-rw-r--r-- | hedgewars/Pkgfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hedgewars/Pkgfile b/hedgewars/Pkgfile new file mode 100644 index 000000000..68b94b79d --- /dev/null +++ b/hedgewars/Pkgfile @@ -0,0 +1,26 @@ +# Description: A turn based strategy game. +# URL: http://www.hedgewars.org/ +# Packager: Danny Rawlins, monster dot romster at gmail dot com +# Maintainer: Danny Rawlins, monster dot romster at gmail dot com +# Depends on: fpc cmake qt4 sdl_net sdl_mixer sdl_image sdl_ttf libsdl + +name=hedgewars +version=0.9.12 +release=1 +source=(http://download.gna.org/$name/hedgewars-src-$version.tar.bz2) + +build() { + cd hedgewars-src-$version + + sed -i -e 's|"-O2" "-Xs" "-Nu"|"-O3" "-Xs" "-XD" "-Fu/usr/lib/fpc/2.4.0/units/i386-linux/opengl"|' hedgewars/CMakeLists.txt + + mkdir build + cd build + + cmake \ + -DCMAKE_BUILD_TYPE="Release" \ + -DCMAKE_INSTALL_PREFIX="/usr" .. + + make + make DESTDIR=$PKG install +} |