mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
freeciv: bump version
This commit is contained in:
126
games-strategy/freeciv/freeciv-3.0.7.recipe
Normal file
126
games-strategy/freeciv/freeciv-3.0.7.recipe
Normal file
@@ -0,0 +1,126 @@
|
||||
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="1996-2020 The Freeciv Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/sourceforge/freeciv/freeciv-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="f6e606f17ed03d971272883f1a4879f5c1c2c247f64b8edefa6a25c8a2a8dac4"
|
||||
ADDITIONAL_FILES="freeciv.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ -z "${ARCHITECTURES##*!$targetArchitecture*}" ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/freeciv/database.lua keep-old
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
freeciv$secondaryArchSuffix = $portVersion
|
||||
app:FreeCiv = $portVersion
|
||||
cmd:freeciv_manual$commandSuffix
|
||||
cmd:freeciv_ruleup$commandSuffix
|
||||
cmd:freeciv_sdl2$commandSuffix
|
||||
cmd:freeciv_server$commandSuffix
|
||||
lib:libfreeciv$secondaryArchSuffix
|
||||
lib:libfreeciv_srv$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libbz2$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libicudata$secondaryArchSuffix
|
||||
lib:libicuuc$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:liblua$secondaryArchSuffix
|
||||
lib:liblzma$secondaryArchSuffix
|
||||
lib:libreadline$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_gfx_1.0$secondaryArchSuffix
|
||||
lib:libSDL2_image_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_ttf_2.0$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libicuuc$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:liblua$secondaryArchSuffix >= 5.3
|
||||
devel:liblzma$secondaryArchSuffix
|
||||
devel:libreadline$secondaryArchSuffix
|
||||
devel:libsdl2_2.0$secondaryArchSuffix
|
||||
devel:libsdl2_gfx$secondaryArchSuffix
|
||||
devel:libsdl2_image_2.0$secondaryArchSuffix
|
||||
devel:libsdl2_mixer_2.0$secondaryArchSuffix
|
||||
devel:libsdl2_ttf_2.0$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmp
|
||||
cmd:find
|
||||
cmd:gawk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
AUTOCONF=: AUTOMAKE=: ACLOCAL=: CFLAGS="-O2 -pipe" \
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir --enable-client=sdl2 --enable-fcmp=no \
|
||||
--enable-sys-lua --enable-shared --disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f $libDir/*.a $libDir/*.la
|
||||
|
||||
mkdir -p $appsDir
|
||||
ln -s $commandBinDir/freeciv-sdl2 $appsDir/Freeciv
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local INTERNAL="0"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@INTERNAL@|$INTERNAL|" \
|
||||
$portDir/additional-files/freeciv.rdef.in > freeciv.rdef
|
||||
|
||||
addResourcesToBinaries freeciv.rdef \
|
||||
$appsDir/Freeciv
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Freeciv
|
||||
mv $prefix/share/* $dataRootDir
|
||||
rmdir $prefix/share
|
||||
}
|
||||
Reference in New Issue
Block a user