diff --git a/games-simulation/freerct/freerct-0.2~git.recipe b/games-simulation/freerct/freerct-0.2~git.recipe new file mode 100644 index 000000000..6ae3035fe --- /dev/null +++ b/games-simulation/freerct/freerct-0.2~git.recipe @@ -0,0 +1,61 @@ +SUMMARY="Open source recreation of RollerCoaster Tycoon 1 and 2" +DESCRIPTION="FreeRCT is a free and open-source theme park simulation game \ +that aims to capture the look, feel, and gameplay of the renowned classic \ +games RollerCoaster Tycoon 1 and 2 with original assets. + +The game is still in an early alpha state, but it is already playable and \ +offers a variety of features." +HOMEPAGE="https://freerct.net/" +COPYRIGHT="2011-2022 FreeRCT team" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="2befb5d518acf7f467e8dbf264b726f61583648d" +SOURCE_URI="https://github.com/FreeRCT/FreeRCT/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="57a69c22962f154bd776e4e005dfb9719beee018aa2028f5ea413ebe44bfdf54" +SOURCE_DIR="FreeRCT-$srcGitRev" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + freerct$secondaryArchSuffix = $portVersion + app:freerct = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix + lib:libSDL2_ttf_2.0$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libpng16$secondaryArchSuffix + devel:libSDL2_2.0$secondaryArchSuffix + devel:libSDL2_ttf_2.0$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + mkdir -p build && cd build + cmake .. \ + -DRELEASE=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DASAN=OFF \ + -DCMAKE_INSTALL_PREFIX=$appsDir/FreeRCT \ + -DUSERDATA_PREFIX=`finddir B_USER_SETTINGS_DIRECTORY`/freerct + make $jobArgs +} + +INSTALL() +{ + make -C build install + addAppDeskbarSymlink $appsDir/FreeRCT/bin/freerct "FreeRCT" +}