Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=93cd8d930e3a550202955babda632c3a9fcafdbc

commit 93cd8d930e3a550202955babda632c3a9fcafdbc
Author: Marius Cirsta <[email protected]>
Date:   Wed Dec 25 19:37:41 2013 +0200

freeorion-0.4.3-1-x86_64

* version bump

diff --git a/source/games-extra/freeorion/FrugalBuild 
b/source/games-extra/freeorion/FrugalBuild
index 3f7e3b3..1425d2a 100644
--- a/source/games-extra/freeorion/FrugalBuild
+++ b/source/games-extra/freeorion/FrugalBuild
@@ -3,41 +3,36 @@


pkgname=freeorion
-pkgver=0.4.1
-pkgrel=3
+pkgver=0.4.3
+pkgrel=1
pkgdesc="Free Clone of Master of Orion. Static linked version."
url="http://freeorion.org/";
_F_desktop_name="Freeorion"
_F_desktop_desc="Free MMO Clone"
_F_desktop_icon="/usr/share/pixmaps/$pkgname.png"
_F_desktop_categories="Game;StrategyGame;"
-_F_cd_path="FreeOrion"
-_F_sourceforge_ext="-Setup.exe"  #only for up2date
-_F_sourceforge_name="FreeOrion"
+_F_cd_path="${pkgname}-${pkgver}/FreeOrion"
_F_cmake_confopts="-DRELEASE_COMPILE_FLAGS=-DNDEBUG"
archs=('i686' 'x86_64')
groups=('games-extra')
-depends=('fmod' 'sdl>=1.2.14' 'openal' 'libvorbis' 'gigi>=1074-3' 'python' 
'freealut' 'bullet' 'ogre>=1.8.1-2')
+depends=('fmod' 'sdl>=1.2.14' 'openal' 'libvorbis' 'python' 'freealut' 
'bullet' 'ogre>=1.8.1-2')
makedepends=('boost>=1.50.0')
-Finclude sourceforge cmake
+replaces=('gigi')
+conflicts=('gigi')
+Finclude cmake
up2date="lynx --dump http://www.freeorion.org/index.php/Compile | grep -m1 
'FreeOrion v' | sed 's/.*FreeOrion v\([\.0-9]*\)/\1/'"
-source=(http://ftp.frugalware.org/pub/other/sources/freeorion/FreeOrion-$pkgver.tar.xz
 \
-       $pkgname.png boost.patch)
-sha1sums=('ef13f197846941c36fa46c2c1728233495cf13cf' \
+source=(http://gentoo.inode.at/distfiles/${pkgname}-${pkgver}.tar.bz2 \
+       $pkgname.png build_fixes.patch)
+sha1sums=('5e9f5df57ba08759b59026ad9a97e44cad89d613' \
'51d7d9a9e9e9555f2646e693f0e48d28a5f06f2e' \
-          '7b275adfe6a1ea463bd872a99f43da10bce44a5a')
+          '6169bde548984c7398c5b90bb78fbbc602cc136b')

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.*' "set(FREEORION_VERSION ${pkgver})" CMakeLists.txt
-       Fsed 'set(svn_revision_number ???)' 'set(svn_revision_number "")' 
CMakeLists.txt
+       Fsed 'set(FreeOrion_WC_REVISION ???)' 'set(FreeOrion_WC_REVISION "")' 
CMakeLists.txt
+       Fsed 'set(FreeOrion_BUILDSYS "CMake")' 'set(FreeOrion_BUILDSYS "")' 
CMakeLists.txt

#and change the wrapper script for our paths
Fsed '${FO_TRACE} ${FO_GDB_ARGS} ./freeorion  --resource-dir ./default \$@' \
@@ -54,7 +49,8 @@ build()
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
+       Fexe ${_F_cd_path}/loki_setup/freeorion-wrapper usr/bin/$pkgname
+       Finstall 644  ${_F_cd_path}/build/ogre_plugins.cfg 
usr/lib/$pkgname/ogre_plugins.cfg
Ficon $pkgname.png
Fdesktop2
}
diff --git a/source/games-extra/freeorion/boost.patch 
b/source/games-extra/freeorion/boost.patch
deleted file mode 100644
index 3fb9338..0000000
--- a/source/games-extra/freeorion/boost.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur a/util/MultiplayerCommon.cpp b/util/MultiplayerCommon.cpp
---- a/util/MultiplayerCommon.cpp       2012-07-18 00:17:10.000000000 -0500
-+++ b/util/MultiplayerCommon.cpp       2013-01-01 08:01:00.154415323 -0600
-@@ -411,7 +411,7 @@
- void Sleep(int ms)
- {
-     boost::xtime t;
--    boost::xtime_get(&t, boost::TIME_UTC);
-+    boost::xtime_get(&t, boost::TIME_UTC_);
-     int ns_sum = t.nsec + ms * 1000000;
-     const int NANOSECONDS_PER_SECOND = 1000000000;
-     int delta_secs = ns_sum / NANOSECONDS_PER_SECOND;
diff --git a/source/games-extra/freeorion/build_fixes.patch 
b/source/games-extra/freeorion/build_fixes.patch
new file mode 100644
index 0000000..49a2e69
--- /dev/null
+++ b/source/games-extra/freeorion/build_fixes.patch
@@ -0,0 +1,27 @@
+--- FreeOrion/CMakeLists.txt   2013-12-25 19:10:54.000000000 +0200
++++ FreeOrion.new/CMakeLists.txt       2013-12-25 15:39:59.000000000 +0200
+@@ -93,6 +93,8 @@
+
+ find_package(OGRE)
+
++find_package(Threads REQUIRED)
++
+ configure_file(
+     ${CMAKE_SOURCE_DIR}/ogre_plugins.cfg.in
+     ${CMAKE_BINARY_DIR}/ogre_plugins.cfg
+@@ -254,6 +256,7 @@
+     )
+ endif ()
+
++install(TARGETS freeorioncommon DESTINATION lib)
+ ########################################
+ # Packaging                            #
+ ########################################
+--- FreeOrion/parse/CMakeLists.txt     2013-06-30 21:19:06.000000000 +0300
++++ FreeOrion.new/parse/CMakeLists.txt 2013-12-25 15:04:15.000000000 +0200
+@@ -55,3 +55,5 @@
+ if (BUILD_TESTS)
+     add_subdirectory(test)
+ endif ()
++
++install(TARGETS freeorionparse DESTINATION lib)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to