prboom-plus: new recipe (#3159)

This commit is contained in:
stenstorp
2021-04-25 19:02:34 +09:30
committed by GitHub
parent 666eddf913
commit 2cd563af56
2 changed files with 78 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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/
}