mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
simutrans: fix compiling under Haiku, update to 120.3 (sdl) / 120.4.1 (sdl2) pak64: update to 120.3 / 120.4.1 pak128: update to 2.8.1 makeobj: update to 60.1 (sdl) / 60.2 (sdl2)
94 lines
2.7 KiB
Bash
94 lines
2.7 KiB
Bash
SUMMARY="A transport simulation game"
|
|
DESCRIPTION="Simutrans is an open-source transportation simulation game \
|
|
available for Windows, Mac, Linux and BeOS. Your goal is to establish a \
|
|
successful transport company and build the necessary infrastructure to \
|
|
transport passengers, mail and goods between cities, factories and \
|
|
touristic attractions by land, air and water.
|
|
Nightly builds are versions only for debugging and testing. They may contain \
|
|
changes which make your savegames unreadable by any official version, or \
|
|
bugs that will destroy your game, or not even run. They are for bug testing \
|
|
only."
|
|
HOMEPAGE="http://www.simutrans.com"
|
|
COPYRIGHT="1997-2004 Hj. Malthaner
|
|
2005-2019 The Simutrans Team"
|
|
LICENSE="Artistic"
|
|
REVISION="1"
|
|
SOURCE_URI="svn://servers.simutrans.org/simutrans/trunk"
|
|
SOURCE_FILENAME="simutrans-$portVersion"
|
|
SOURCE_DIR=""
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
non-packaged/$relativeAppsDir/simutrans/config directory keep-old
|
|
"
|
|
|
|
PROVIDES="
|
|
simutrans$secondaryArchSuffix = $portVersion
|
|
app:simutrans$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
simutrans_pakset$secondaryArchSuffix >= 120.4
|
|
timgmsoundfont
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libltdl$secondaryArchSuffix
|
|
lib:libminiupnpc$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
|
lib:libtxc_dxtn$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libltdl$secondaryArchSuffix
|
|
devel:libminiupnpc$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:curl
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sdl2_config$secondaryArchSuffix >= 2.0
|
|
cmd:strip$secondaryArchSuffix
|
|
cmd:svn
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf configure.ac
|
|
runConfigure ./configure
|
|
./get_lang_files.sh
|
|
make $jobArgs
|
|
strip sim
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cp sim simutrans/simutrans
|
|
mkdir -p $appsDir/simutrans
|
|
mkdir -p $prefix/non-packaged/$relativeAppsDir/simutrans/config
|
|
cp -r simutrans $appsDir/
|
|
mv $appsDir/simutrans/config \
|
|
$prefix/non-packaged/$relativeAppsDir/simutrans/
|
|
ln -s $prefix/non-packaged/$relativeAppsDir/simutrans/config \
|
|
$appsDir/simutrans/config
|
|
|
|
addAppDeskbarSymlink $appsDir/simutrans/simutrans "Simutrans"
|
|
}
|