diff --git a/games-arcade/sdl-sopwith/sdl_sopwith-2.3.0.recipe b/games-arcade/sdl-sopwith/sdl_sopwith-2.3.0.recipe new file mode 100644 index 000000000..74d120c45 --- /dev/null +++ b/games-arcade/sdl-sopwith/sdl_sopwith-2.3.0.recipe @@ -0,0 +1,64 @@ +SUMMARY="Classic bi-plane shoot-'em up" +DESCRIPTION="SDL Sopwith is a port of the game 'Sopwith', which was \ +originally by BMB Compuscience Canada. The original author David L. Clark \ +has kindly released the sourcecode under the GNU GPL. + +Features: + +* Uses LibSDL, so will run on most modern operating systems +* Pseudo-functional networking +* PC speaker emulation!" +HOMEPAGE="https://fragglet.github.io/sdl-sopwith" +COPYRIGHT="2001-2023 Simon Howard and contributors" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/fragglet/sdl-sopwith/archive/sdl-sopwith-$portVersion.tar.gz" +CHECKSUM_SHA256="de322507d03259b7afb5818400894d1fa18850abad10c46d4736b2dfd07231d8" +SOURCE_DIR="sdl-sopwith-sdl-sopwith-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + sopwith$secondaryArchSuffix = $portVersion + app:sopwith = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libSDL2_2.0$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoheader + cmd:autoreconf + cmd:automake + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -fi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + mkdir -p $appsDir $docDir + mv $binDir/sopwith $appsDir/Sopwith + rm -rf $binDir + mv $prefix/share/doc/* $docDir + rm -rf $prefix/share + + addAppDeskbarSymlink $appsDir/Sopwith +}