mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
prboom-plus: bump version
this switches to SDL2 and cmake
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
diff --git a/src/SDL/i_system.c b/src/SDL/i_system.c
|
||||
diff --git a/prboom2/src/SDL/i_system.c b/prboom2/src/SDL/i_system.c
|
||||
index bf8cbce..b7ea0fb 100644
|
||||
--- a/src/SDL/i_system.c
|
||||
+++ b/src/SDL/i_system.c
|
||||
--- a/prboom2/src/SDL/i_system.c
|
||||
+++ b/prboom2/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
|
||||
@@ -1,65 +0,0 @@
|
||||
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/
|
||||
}
|
||||
70
games-fps/prboom-plus/prboom_plus-2.6um.recipe
Normal file
70
games-fps/prboom-plus/prboom_plus-2.6um.recipe
Normal file
@@ -0,0 +1,70 @@
|
||||
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://github.com/coelckers/prboom-plus/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="fed5553509c5e7211a02d159c212c61030dbc7e8bb1ed0adfecfad573074191b"
|
||||
SOURCE_DIR="prboom-plus-$portVersion"
|
||||
PATCHES="prboom_plus-$portVersion.patch"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
|
||||
commandBinDir="$binDir/toto"
|
||||
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:libmad$secondaryArchSuffix
|
||||
lib:libpcreposix$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_image_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_net_2.0$secondaryArchSuffix
|
||||
lib:libvorbisfile$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libmad$secondaryArchSuffix
|
||||
devel:libpcreposix$secondaryArchSuffix
|
||||
devel:libSDL2$secondaryArchSuffix
|
||||
devel:libSDL2_image$secondaryArchSuffix
|
||||
devel:libSDL2_mixer$secondaryArchSuffix
|
||||
devel:libSDL2_net$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake ../prboom2 $cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_BIN=$commandBinDir \
|
||||
-DDOOMWADDIR="$dataDir/prboom-plus"
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
}
|
||||
Reference in New Issue
Block a user