mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
71 lines
1.9 KiB
Bash
71 lines
1.9 KiB
Bash
SUMMARY="A clone of Transport Tycoon Deluxe"
|
|
DESCRIPTION="OpenTTD is an open source simulation game based upon the popular Microprose \
|
|
game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to \
|
|
mimic the original game as closely as possible while extending it with new \
|
|
features."
|
|
HOMEPAGE="http://www.openttd.org"
|
|
COPYRIGHT="2005-2015 OpenTTD Team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="svn://svn.openttd.org#27472"
|
|
CHECKSUM_SHA256="d8b9a7aaca7c9f3ff69b1d210daf1e2658402941bb9b30cb2789a9df73d1ba63"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
openttd$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libsdl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:liblzo2$secondaryArchSuffix
|
|
openttd_gfx
|
|
openttd_sfx
|
|
openttd_msx
|
|
timgmsoundfont
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsdl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:liblzo2$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:git
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export includeDir=/system/$relativeIncludeDir
|
|
export CFLAGS=-O1
|
|
# Non-autotools script, can't use runConfigure.
|
|
./configure --prefix=$prefix --binary-dir=$relativeAppsDir \
|
|
--data-dir=$relativeDataDir/openttd --doc-dir=$relativeDocDir/openttd \
|
|
--man-dir=$relativeManDir --icon-dir=trash --menu-dir=trash
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
# The install script leaves some mess all around, let's clean it up...
|
|
rm -r $prefix/trash
|
|
rm -r $prefix/16x16
|
|
rm -r $prefix/32x32
|
|
rm -r $prefix/48x48
|
|
rm -r $prefix/64x64
|
|
rm -r $prefix/128x128
|
|
rm -r $prefix/256x256
|
|
|
|
addResourcesToBinaries $portDir/additional-files/openttd.rdef $appsDir/openttd
|
|
addAppDeskbarSymlink $appsDir/openttd "OpenTTD"
|
|
}
|