2018-10-25 22:37:35 +00:00
|
|
|
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/"
|
2021-01-01 20:00:29 +00:00
|
|
|
COPYRIGHT="1996-2020 The Freeciv Team"
|
2018-10-25 22:37:35 +00:00
|
|
|
LICENSE="GNU GPL v2"
|
2020-06-06 18:50:55 +00:00
|
|
|
REVISION="1"
|
2018-10-25 22:37:35 +00:00
|
|
|
SOURCE_URI="https://netix.dl.sourceforge.net/project/freeciv/Freeciv%202.6/$portVersion/freeciv-$portVersion.tar.bz2"
|
2021-11-12 12:26:09 +00:00
|
|
|
CHECKSUM_SHA256="2e64e1c74dae12acb17bbf5daa980efc7e9fd57820afed5135319ca95291ec59"
|
2018-10-25 22:37:35 +00:00
|
|
|
ADDITIONAL_FILES="freeciv.rdef.in"
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2018-10-25 22:37:35 +00:00
|
|
|
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_sdl$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:libiconv$secondaryArchSuffix
|
|
|
|
lib:liblua$secondaryArchSuffix
|
|
|
|
lib:libintl$secondaryArchSuffix
|
|
|
|
lib:liblzma$secondaryArchSuffix
|
|
|
|
lib:libreadline$secondaryArchSuffix
|
2020-01-18 11:50:08 +00:00
|
|
|
lib:libSDL_1.2$secondaryArchSuffix
|
|
|
|
lib:libSDL_gfx$secondaryArchSuffix
|
|
|
|
lib:libSDL_image_1.2$secondaryArchSuffix
|
|
|
|
lib:libSDL_mixer_1.2$secondaryArchSuffix
|
|
|
|
lib:libSDL_ttf_2.0$secondaryArchSuffix
|
2018-10-25 22:37:35 +00:00
|
|
|
lib:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libbz2$secondaryArchSuffix
|
|
|
|
devel:libcurl$secondaryArchSuffix
|
|
|
|
devel:libfreetype$secondaryArchSuffix
|
|
|
|
devel:libiconv$secondaryArchSuffix
|
|
|
|
devel:liblua$secondaryArchSuffix >= 5.3
|
|
|
|
devel:libintl$secondaryArchSuffix
|
|
|
|
devel:liblzma$secondaryArchSuffix
|
2020-06-06 18:50:55 +00:00
|
|
|
devel:libreadline$secondaryArchSuffix
|
2020-01-18 11:50:08 +00:00
|
|
|
devel:libSDL_1.2$secondaryArchSuffix
|
|
|
|
devel:libSDL_gfx$secondaryArchSuffix
|
|
|
|
devel:libSDL_image_1.2$secondaryArchSuffix
|
|
|
|
devel:libSDL_mixer_1.2$secondaryArchSuffix
|
|
|
|
devel:libSDL_ttf_2.0$secondaryArchSuffix
|
2018-10-25 22:37:35 +00:00
|
|
|
devel:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:find
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
|
|
cmd:make
|
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
2021-11-12 12:26:09 +00:00
|
|
|
AUTOCONF=: AUTOMAKE=: ACLOCAL=: CFLAGS="-O2 -pipe" \
|
|
|
|
runConfigure --omit-dirs binDir ./configure \
|
2018-10-25 22:37:35 +00:00
|
|
|
--bindir=$commandBinDir --enable-client=sdl --enable-fcmp=no \
|
|
|
|
--enable-sys-lua --enable-shared --disable-static
|
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
make install
|
|
|
|
|
2019-12-15 21:09:55 +00:00
|
|
|
rm -f $libDir/*.a $libDir/*.la
|
|
|
|
|
2018-10-25 22:37:35 +00:00
|
|
|
mkdir -p $appsDir
|
|
|
|
ln -s $commandBinDir/freeciv-sdl $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
|
2019-12-15 21:09:55 +00:00
|
|
|
mv $prefix/share/* $dataRootDir
|
|
|
|
rmdir $prefix/share
|
2018-10-25 22:37:35 +00:00
|
|
|
}
|