diff --git a/games-fps/prboom-plus/patches/prboom_plus-2.5.1.4.patch b/games-fps/prboom-plus/patches/prboom_plus-2.6um.patch similarity index 76% rename from games-fps/prboom-plus/patches/prboom_plus-2.5.1.4.patch rename to games-fps/prboom-plus/patches/prboom_plus-2.6um.patch index e34dee40e..f60664666 100644 --- a/games-fps/prboom-plus/patches/prboom_plus-2.5.1.4.patch +++ b/games-fps/prboom-plus/patches/prboom_plus-2.6um.patch @@ -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 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 deleted file mode 100644 index 16e323089..000000000 --- a/games-fps/prboom-plus/prboom_plus-2.5.1.4.recipe +++ /dev/null @@ -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/ -} diff --git a/games-fps/prboom-plus/prboom_plus-2.6um.recipe b/games-fps/prboom-plus/prboom_plus-2.6um.recipe new file mode 100644 index 000000000..b0d60cd78 --- /dev/null +++ b/games-fps/prboom-plus/prboom_plus-2.6um.recipe @@ -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 +}