Files
haikuports/games-simulation/openttd/openttd-1.4.3.recipe
Humdinger a38db25c39 Changes in SUMMARY, DESCRIPTION and whitespace.
Removed the full-stop and repeating package name in SUMMARY.
Removed hard line breaks, broke up some very long paragraphs and
use bullet lists where possible.
All done by browsing through HaikuDepot. There may be (many) more left
in the whole haikuports repo...

Included 10 extended desriptions done by soyoye14 for GCI 2014
(https://www.google-melange.com/gci/task/view/google/gci2014/5240373098053632)

Removed/insert whitespace where it seems to be the custom in recipes.
Sometimes rearranged elements of a recipe (moving license and copyright
up, for example).
2015-01-12 19:23:51 +01:00

79 lines
2.1 KiB
Plaintext

SUMMARY="OpenTTD is 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"
SRC_URI="http://binaries.openttd.org/releases/$portVersion/openttd-$portVersion-source.tar.xz"
CHECKSUM_SHA256="11bcbbddb9864d69f1bca11966ece9abfc28973151e6dd73ceadff89ebdf63dd"
COPYRIGHT="2005-2013 OpenTTD Team"
LICENSE="GNU GPL v2"
REVISION="2"
ARCHITECTURES="x86"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
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
"
PATCHES="openttd-$portVersion.patchset"
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
addAppDeskbarSymlink $appsDir/openttd "OpenTTD"
}
# no TEST script available