SUMMARY="Open Source remake of The Settlers II game" DESCRIPTION="Return To The Roots is a fan-project, which aims to renew the \ original The Settlers 2. To play this game the original game data should be placed in the /boot/home/config/non-packaged/data/s25rttr/S2 folder!" HOMEPAGE="https://www.siedler25.org/" COPYRIGHT="2005-2022 Settlers Freaks" LICENSE="GNU GPL v3" REVISION="3" SOURCE_URI="https://github.com/Return-To-The-Roots/s25client/releases/download/v${portVersion}/s25client_src_v${portVersion}.tar.gz" CHECKSUM_SHA256="c6a9ef5b90943b5f2e81543f1e3290ff773663a45ebbbcc5a786bb5f5495fbec" SOURCE_DIR="s25client_v${portVersion}" PATCHES="s25rttr-$portVersion.patchset" ARCHITECTURES="?x86_gcc2 ?x86 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" s25rttr$secondaryArchSuffix = $portVersion app:s25client = $portVersion app:s25edit = $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:libboost_chrono$secondaryArchSuffix lib:libboost_filesystem$secondaryArchSuffix lib:libboost_iostreams$secondaryArchSuffix lib:libboost_locale$secondaryArchSuffix lib:libboost_program_options$secondaryArchSuffix lib:libboost_random$secondaryArchSuffix lib:libboost_regex$secondaryArchSuffix lib:libboost_system$secondaryArchSuffix lib:libbz2$secondaryArchSuffix lib:libcurl$secondaryArchSuffix lib:libexecinfo$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:libiconv$secondaryArchSuffix lib:liblua$secondaryArchSuffix lib:libminiupnpc$secondaryArchSuffix lib:libSDL_1.2$secondaryArchSuffix lib:libSDL_mixer_1.2$secondaryArchSuffix lib:libSDL2_2.0$secondaryArchSuffix lib:libSDL2_mixer_2.0$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libboost_chrono$secondaryArchSuffix >= 1.69.0 devel:libboost_filesystem$secondaryArchSuffix >= 1.69.0 devel:libboost_iostreams$secondaryArchSuffix >= 1.69.0 devel:libboost_locale$secondaryArchSuffix >= 1.69.0 devel:libboost_program_options$secondaryArchSuffix >= 1.69.0 devel:libboost_random$secondaryArchSuffix >= 1.69.0 devel:libboost_regex$secondaryArchSuffix >= 1.69.0 devel:libboost_system$secondaryArchSuffix >= 1.69.0 devel:libbz2$secondaryArchSuffix devel:libcurl$secondaryArchSuffix devel:libexecinfo$secondaryArchSuffix devel:libGL$secondaryArchSuffix devel:libiconv$secondaryArchSuffix devel:liblua$secondaryArchSuffix >= 5.2 devel:libminiupnpc$secondaryArchSuffix devel:libSDL_1.2$secondaryArchSuffix devel:libSDL_mixer_1.2$secondaryArchSuffix devel:libSDL2_2.0$secondaryArchSuffix devel:libSDL2_mixer$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:awk cmd:cmake cmd:gcc$secondaryArchSuffix cmd:git cmd:gettext cmd:libtoolize$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix " defineDebugInfoPackage s25rttr$secondaryArchSuffix \ "$appsDir"/RTTR/s25client \ "$appsDir"/RTTR/s25edit BUILD() { mkdir -p haiku_build && cd haiku_build cmake .. \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DBUILD_TESTING=OFF \ -DCMAKE_INSTALL_PREFIX="$appsDir/RTTR" \ -DCMAKE_INSTALL_BINDIR="$appsDir/RTTR" \ -DCMAKE_INSTALL_DOCDIR="$docDir" \ -DRTTR_DOCDIR="$docDir" \ -DCMAKE_INSTALL_DATADIR="$dataDir" \ -DRTTR_DATADIR="s25rttr" \ -DRTTR_GAMEDIR="`finddir B_USER_NONPACKAGED_DATA_DIRECTORY`/s25rttr/S2" \ -DCMAKE_EXE_LINKER_FLAGS="-lnetwork -lexecinfo" make $jobArgs } INSTALL() { cd haiku_build make install addAppDeskbarSymlink "$appsDir"/RTTR/s25client addAppDeskbarSymlink "$appsDir"/RTTR/s25edit } TEST() { cd haiku_build make test }