mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
forgot to remove $secondaryArchSuffix after switch to platform agnostic "any" paksets for release recipes
97 lines
3.0 KiB
Bash
97 lines
3.0 KiB
Bash
SUMMARY="A transport simulation game"
|
|
DESCRIPTION="Simutrans is a freeware and open-source transportation \
|
|
simulator. Your goal is to establish a successful transport company. \
|
|
Transport passengers, mail and goods by rail, road, ship, and even air. \
|
|
Interconnect districts, cities, public buildings, industries and \
|
|
tourist attractions by building a transport network you always dreamed \
|
|
of."
|
|
HOMEPAGE="http://www.simutrans.com"
|
|
COPYRIGHT="1997-2004 Hj. Malthaner
|
|
2005-2018 The Simutrans Team"
|
|
LICENSE="Artistic"
|
|
REVISION="1"
|
|
SvnRevision="8600"
|
|
GitRevision="89498c762ffb8c709167a875b2de836af50f608e"
|
|
SOURCE_URI="https://github.com/aburch/simutrans/archive/$GitRevision.tar.gz"
|
|
CHECKSUM_SHA256="65ae302ca96aeb25e99b70908e814e82fa411e78143da5ae8a6ceb72d7ce8f9b"
|
|
SOURCE_FILENAME="simutrans-$portVersion.tar.gz"
|
|
SOURCE_DIR="simutrans-$GitRevision"
|
|
PATCHES="simutrans-$portVersion.patchset"
|
|
SOURCE_URI_2="https://downloads.sourceforge.net/project/simutrans/simutrans/120-4-1/simutrans-src-120-4-1.zip"
|
|
CHECKSUM_SHA256_2="2cee0d067b3b72fa3a8b4ff31ad2bf5fc77521e7ba8cf9aa10e07e56b7dc877b"
|
|
SOURCE_FILENAME_2="simutrans-sf-$portVersion.zip"
|
|
SOURCE_DIR_2=""
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
simutrans$secondaryArchSuffix = $portVersion
|
|
app:simutrans$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
simutrans_pakset >= 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:g++$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sdl2_config$secondaryArchSuffix >= 2.0
|
|
cmd:strip$secondaryArchSuffix
|
|
"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
non-packaged/$relativeAppsDir/simutrans/config directory keep-old
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf configure.ac
|
|
export CFLAGS+=-DREVISION=$SvnRevision
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
strip sim
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cp $sourceDir2/simutrans/text/*.tab simutrans/text/
|
|
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"
|
|
}
|