From 2cd563af567b989b04b305a8a1879ceb54ef4326 Mon Sep 17 00:00:00 2001 From: stenstorp Date: Sun, 25 Apr 2021 19:02:34 +0930 Subject: [PATCH] prboom-plus: new recipe (#3159) --- .../patches/prboom_plus-2.5.1.4.patch | 13 ++++ .../prboom-plus/prboom_plus-2.5.1.4.recipe | 65 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 games-fps/prboom-plus/patches/prboom_plus-2.5.1.4.patch create mode 100644 games-fps/prboom-plus/prboom_plus-2.5.1.4.recipe diff --git a/games-fps/prboom-plus/patches/prboom_plus-2.5.1.4.patch b/games-fps/prboom-plus/patches/prboom_plus-2.5.1.4.patch new file mode 100644 index 000000000..e34dee40e --- /dev/null +++ b/games-fps/prboom-plus/patches/prboom_plus-2.5.1.4.patch @@ -0,0 +1,13 @@ +diff --git a/src/SDL/i_system.c b/src/SDL/i_system.c +index bf8cbce..b7ea0fb 100644 +--- a/src/SDL/i_system.c ++++ b/src/SDL/i_system.c +@@ -396,7 +396,7 @@ const char* I_GetTempDir(void) + // cph - V.Aguilar (5/30/99) suggested return ~/.lxdoom/, creating + // if non-existant + // cph 2006/07/23 - give prboom+ its own dir +-static const char prboom_dir[] = {"/.prboom-plus"}; // Mead rem extra slash 8/21/03 ++static const char prboom_dir[] = {"/config/settings/prboom-plus"}; // Mead rem extra slash 8/21/03 + + const char *I_DoomExeDir(void) + { diff --git a/games-fps/prboom-plus/prboom_plus-2.5.1.4.recipe b/games-fps/prboom-plus/prboom_plus-2.5.1.4.recipe new file mode 100644 index 000000000..16e323089 --- /dev/null +++ b/games-fps/prboom-plus/prboom_plus-2.5.1.4.recipe @@ -0,0 +1,65 @@ +SUMMARY="Enhanced clone of the classic first-person shooter Doom" +DESCRIPTION="PrBoom+ is a Doom source port developed from the original PrBoom \ +project by Andrey Budko" +HOMEPAGE="http://prboom-plus.sourceforge.net/" +COPYRIGHT="2016 Andrey Budko et al." +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://downloads.sourceforge.net/prboom-plus/prboom-plus-$portVersion.tar.gz" +CHECKSUM_SHA256="e0e2241d174839b107f1a42b191aa9895dc6749e477cbc850ad520fba2353b94" +SOURCE_DIR="prboom-plus-$portVersion" +PATCHES="prboom_plus-$portVersion.patch" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" + +commandBinDir="$binDir" +if [ "$targetArchitecture" = "x86_gcc2" ]; then + SECONDARY_ARCHITECTURES="x86" + commandBinDir="$prefix/bin" +fi + +PROVIDES=" + prboom_plus$secondaryArchSuffix = $portVersion + cmd:prboom_plus = $portVersion + cmd:prboom_plus_game_server = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libSDL_1.2$secondaryArchSuffix + lib:libSDL_net_1.2$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libSDL_1.2$secondaryArchSuffix + devel:libSDL_net_1.2$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -fi + runConfigure ./configure \ + --without-mixer \ + --disable-gl \ + --with-waddir=$dataDir/prboom-plus/ + make $jobArgs +} + +INSTALL() +{ + cd src + mkdir -p $commandBinDir + cp -t $commandBinDir prboom-plus{,-game-server} + cd ../data + mkdir -p $dataDir/prboom-plus + cp prboom-plus.wad $dataDir/prboom-plus/ +}