mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
66 lines
1.6 KiB
Bash
66 lines
1.6 KiB
Bash
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/
|
|
}
|