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-2022 OpenTTD Team" LICENSE="GNU GPL v2" REVISION="1" SOURCE_URI="https://cdn.openttd.org/openttd-releases/$portVersion/openttd-$portVersion-source.tar.xz" CHECKSUM_SHA256="81508f0de93a0c264b216ef56a05f8381fff7bffa6d010121a21490b4dace95c" ADDITIONAL_FILES="openttd.rdef" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" openttd$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix openttd_gfx openttd_msx openttd_sfx timgmsoundfont lib:libfreetype$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:liblzma$secondaryArchSuffix lib:liblzo2$secondaryArchSuffix lib:libpng16$secondaryArchSuffix lib:libSDL_1.2$secondaryArchSuffix lib:libz$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libfreetype$secondaryArchSuffix devel:liblzma$secondaryArchSuffix devel:liblzo2$secondaryArchSuffix devel:libpng16$secondaryArchSuffix devel:libSDL_1.2$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:gawk cmd:gcc$secondaryArchSuffix cmd:git cmd:make cmd:cmake cmd:pkg_config$secondaryArchSuffix " BUILD() { cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \ $cmakeDirArgs \ -DCMAKE_INSTALL_BINDIR=$appsDir make -C build $jobArgs } INSTALL() { make -C build install rm -r $dataDir/{applications,icons,pixmaps} addResourcesToBinaries $portDir/additional-files/openttd.rdef $appsDir/openttd addAppDeskbarSymlink $appsDir/openttd "OpenTTD" }