Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=71bb7b23bb8ce29a7d820ab52b260f09935d5064
commit 71bb7b23bb8ce29a7d820ab52b260f09935d5064 Author: Marius Cirsta <[email protected]> Date: Tue Oct 11 02:29:49 2011 +0000 freeorion-0.3.17-1-x86_64 * remove binary crap and build from source * changed m8r diff --git a/source/games-extra/freeorion/FrugalBuild b/source/games-extra/freeorion/FrugalBuild index ed3434b..768b3fb 100644 --- a/source/games-extra/freeorion/FrugalBuild +++ b/source/games-extra/freeorion/FrugalBuild @@ -1,9 +1,9 @@ -# Compiling Time: 0.03 SBU -# Maintainer: kikadf <[email protected]> -# Contributor: Cedrick Hannier alias Cedynamix <[email protected]> +# Compiling Time: 9 SBU +# Maintainer: Marius Cirsta <[email protected]> + pkgname=freeorion -pkgver=0.3.15 +pkgver=0.3.17 pkgrel=1 pkgdesc="Free Clone of Master of Orion. Static linked version." url="http://freeorion.org/" @@ -11,34 +11,48 @@ _F_desktop_name="Freeorion" _F_desktop_desc="Free MMO Clone" _F_desktop_icon="freeorion.png" _F_desktop_categories="Game;StrategyGame;" -_F_cd_path="$pkgname" -_F_sourceforge_ext="-Linux-i386.tar.gz" +_F_cd_path="FreeOrion" +_F_sourceforge_ext="-Setup.exe" #only for up2date _F_sourceforge_name="FreeOrion" +_F_cmake_confopts="-DRELEASE_COMPILE_FLAGS=-DNDEBUG" archs=('i686' 'x86_64') groups=('games-extra') -depends=('boost' 'fmod' 'sdl' 'openal' 'libvorbis') -Finclude sourceforge -source=($source $pkgname.png) -sha1sums=('36ab0feef65bf07883750cb47b089178259b5d5f' \ - '51d7d9a9e9e9555f2646e693f0e48d28a5f06f2e') +depends=('boost>=1.46' 'fmod' 'sdl>=1.2.14' 'openal' 'libvorbis' 'gigi>=1044' 'python' 'freealut' 'bullet' 'ogre') +Finclude sourceforge cmake +source=(http://ftp.frugalware.org/pub/other/sources/freeorion/FreeOrion-$pkgver.tar.xz \ + $pkgname.png) +sha1sums=('81782504ece4f90621243577991fcc2f124a9f00' \ + '51d7d9a9e9e9555f2646e693f0e48d28a5f06f2e') + +build() +{ + # so that it finds gigi and ogre cmake stuff + Fsed 'list(APPEND CMAKE_MODULE_PATH ${CMAKE_HOME_DIRECTORY}/cmake ${CMAKE_HOME_DIRECTORY}/GG/cmake)' \ + 'list(APPEND CMAKE_MODULE_PATH ${CMAKE_HOME_DIRECTORY}/cmake /usr/lib/GiGi/cmake /usr/lib/OGRE/cmake)' \ + CMakeLists.txt + Fsed 'PluginFolder=.' 'PluginFolder=/usr/lib/OGRE/' ogre_plugins.cfg + + #fix version + Fsed 'set(FREEORION_VERSION 0.3.15)' "set(FREEORION_VERSION ${pkgver})" CMakeLists.txt + Fsed 'set(svn_revision_number ???)' 'set(svn_revision_number "")' CMakeLists.txt + #and change the wrapper script for our paths + Fsed '${FO_TRACE} ${FO_GDB_ARGS} ./freeorion --resource-dir ./default \$@' \ + '${FO_TRACE} ${FO_GDB_ARGS} /usr/lib/freeorion/freeorion --resource-dir /usr/lib/freeorion/default \$@' \ + loki_setup/freeorion-wrapper + Fsed 'ROOT=`dirname ${ME}`/application' 'ROOT="/usr/lib/freeorion/"' loki_setup/freeorion-wrapper -build() { - Fcd - Fmkdir /usr/{bin,share/{$pkgname,applications}} - Fcp freeorion/* /usr/share/$pkgname/ - Frm /usr/share/$pkgname/setup.sh - Frm /usr/share/$pkgname/autorun.sh - Frm /usr/share/$pkgname/setup.data - Frm /usr/share/$pkgname/logo.png - Fdirschmod usr/share/$pkgname 755 - Ffileschmod /usr/share/$pkgname/ 644 - Ffileschmod /usr/share/$pkgname/freeorion 755 - Ffileschmod /usr/share/$pkgname/application/freeorion 755 - Ffileschmod /usr/share/$pkgname/application/freeorionca 755 - Ffileschmod /usr/share/$pkgname/application/freeoriond 755 + CMake_build + + #now we need to move this to the propper dirs + Fmkdir usr/lib/$pkgname + Fmv usr/default/default usr/lib/$pkgname/ + Fmv usr/freeorion* usr/lib/$pkgname + Fcp ${_F_cd_path}/*.cfg usr/lib/$pkgname + Frm usr/default + Fmkdir usr/bin + Fexe ${_F_cd_path}/loki_setup/freeorion-wrapper usr/bin/freeorion Ficon $pkgname.png - Fln /usr/share/$pkgname/$pkgname /usr/bin/$pkgname Fdesktop2 } - +# optimization OK _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
