From e6054cb23fffd10796f107ca8e67e1313f278446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Krzy=C5=BCanowski?= Date: Sun, 11 Jan 2015 22:57:59 +0000 Subject: [PATCH] Fixed and updated freeciv recipe --- games-strategy/freeciv/freeciv-2.4.3.recipe | 23 +++-- games-strategy/freeciv/freeciv-2.4.4.recipe | 107 ++++++++++++++++++++ 2 files changed, 120 insertions(+), 10 deletions(-) create mode 100644 games-strategy/freeciv/freeciv-2.4.4.recipe diff --git a/games-strategy/freeciv/freeciv-2.4.3.recipe b/games-strategy/freeciv/freeciv-2.4.3.recipe index c41b3c8b0..424cae144 100644 --- a/games-strategy/freeciv/freeciv-2.4.3.recipe +++ b/games-strategy/freeciv/freeciv-2.4.3.recipe @@ -25,6 +25,10 @@ else fi SECONDARY_ARCHITECTURES="x86" +GLOBAL_WRITABLE_FILES=" + settings/freeciv/database.lua keep-old + " + PROVIDES=" freeciv$secondaryArchSuffix = $portVersion app:freeciv$secondaryArchSuffix = $portVersion @@ -43,17 +47,14 @@ REQUIRES=" lib:libpng$secondaryArchSuffix lib:libreadline$secondaryArchSuffix lib:libsdl$secondaryArchSuffix - lib:libSDL_image$secondaryArchSuffix - lib:libSDL_mixer$secondaryArchSuffix + lib:libsdl_image$secondaryArchSuffix + lib:libsdl_mixer$secondaryArchSuffix lib:libz$secondaryArchSuffix - - lib:libSDL_image_1.2$secondaryArchSuffix - lib:libSDL_mixer_1.2$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix lib:libssl$secondaryArchSuffix lib:libintl$secondaryArchSuffix lib:libjpeg$secondaryArchSuffix - lib:libGL$secondaryArchSuffix + lib:libgl$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel @@ -65,11 +66,11 @@ BUILD_REQUIRES=" devel:libpng$secondaryArchSuffix devel:libreadline$secondaryArchSuffix devel:libsdl$secondaryArchSuffix - devel:libSDL_image$secondaryArchSuffix - devel:libSDL_mixer$secondaryArchSuffix + devel:libsdl_image$secondaryArchSuffix + devel:libsdl_mixer$secondaryArchSuffix devel:libz$secondaryArchSuffix - devel:libcrypto$secondaryArchSuffix + devel:libintl$secondaryArchSuffix devel:libssl$secondaryArchSuffix devel:libjpeg$secondaryArchSuffix " @@ -88,7 +89,7 @@ BUILD_PREREQUIRES=" BUILD() { autoreconf -fi - runConfigure ./configure + runConfigure ./configure --datarootdir=$dataRootDir --datadir=$dataDir make $jobArgs } @@ -99,6 +100,8 @@ INSTALL() mkdir -p $appsDir/freeciv mv $binDir/freeciv-sdl $appsDir/freeciv/freeciv addAppDeskbarSymlink $appsDir/freeciv/freeciv + mv $prefix/share/* $dataRootDir + rm -rf $prefix/share rm -rf $prefix/lib } diff --git a/games-strategy/freeciv/freeciv-2.4.4.recipe b/games-strategy/freeciv/freeciv-2.4.4.recipe new file mode 100644 index 000000000..424cae144 --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.4.4.recipe @@ -0,0 +1,107 @@ +SUMMARY="A free Civilization-like game." +DESCRIPTION=" +Freeciv is a free Civilization-like game, primarily \ +for X under Unix. It has support for multiplayer games locally or \ +over a network, and an AI which gives most people a run for their money. +Freeciv aims to be mostly rule-compatible with Civilization II [tm], \ +published by Sid Meier and Microprose [tm]. A few rules are different \ +where we think it makes more sense, and we have lots and lots of \ +adjustable parameters to make customizing games possible. +Freeciv has been implemented completely independently of Civilization; \ +you do not need to own Civilization to play Freeciv." +HOMEPAGE="http://www.freeciv.org" +COPYRIGHT="2002-2014 The Freeciv Team" +LICENSE="GNU GPL v2" +SRC_URI="http://sourceforge.net/projects/freeciv/files/Freeciv%202.4/$portVersion/freeciv-$portVersion.tar.bz2" +CHECKSUM_SHA256="7f107fe3b09f37934410dc7a64ac1b99a95997ddf53da53933b75d4da79fa899" +REVISION="1" +ARCHITECTURES="x86 x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +GLOBAL_WRITABLE_FILES=" + settings/freeciv/database.lua keep-old + " + +PROVIDES=" + freeciv$secondaryArchSuffix = $portVersion + app:freeciv$secondaryArchSuffix = $portVersion + cmd:freeciv_manual$secondaryArchSuffix + cmd:freeciv_sdl$secondaryArchSuffix + cmd:freeciv_server$secondaryArchSuffix + " + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libcurl$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + lib:liblzma$secondaryArchSuffix + lib:libpng$secondaryArchSuffix + lib:libreadline$secondaryArchSuffix + lib:libsdl$secondaryArchSuffix + lib:libsdl_image$secondaryArchSuffix + lib:libsdl_mixer$secondaryArchSuffix + lib:libz$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:libgl$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libcurl$secondaryArchSuffix + devel:libfreetype$secondaryArchSuffix + devel:libiconv$secondaryArchSuffix + devel:liblzma$secondaryArchSuffix + devel:libpng$secondaryArchSuffix + devel:libreadline$secondaryArchSuffix + devel:libsdl$secondaryArchSuffix + devel:libsdl_image$secondaryArchSuffix + devel:libsdl_mixer$secondaryArchSuffix + devel:libz$secondaryArchSuffix + devel:libcrypto$secondaryArchSuffix + devel:libintl$secondaryArchSuffix + devel:libssl$secondaryArchSuffix + devel:libjpeg$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:autoconf + cmd:aclocal + cmd:libtool + cmd:gettext + cmd:find + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -fi + runConfigure ./configure --datarootdir=$dataRootDir --datadir=$dataDir + make $jobArgs +} + +INSTALL() +{ + make install + + mkdir -p $appsDir/freeciv + mv $binDir/freeciv-sdl $appsDir/freeciv/freeciv + addAppDeskbarSymlink $appsDir/freeciv/freeciv + mv $prefix/share/* $dataRootDir + rm -rf $prefix/share + + rm -rf $prefix/lib +}