Files
haikuports/games-arcade/nxengine/nxengine-1.0.0.4.recipe
2017-09-19 08:06:05 +02:00

62 lines
1.8 KiB
Bash

SUMMARY="An open-source rewrite engine of the Cave Story"
DESCRIPTION="The platform-adventure game focuses on an amnesiac protagonist \
who awakens in a cave. Through his explorations, he discovers a plot by the \
Doctor, a megalomaniac who intends to force the inhabitants of the cave to \
fight for him in his bid to conquer the world. The protagonist is thrust \
into the position of savior as he endeavors to defeat the Doctor."
HOMEPAGE="https://github.com/EXL/NXEngine/"
COPYRIGHT="2017 Retroguru"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/EXL/NXEngine/archive/v$portVersion-Rev4.tar.gz"
SOURCE_URI_2="http://www.cavestory.org/downloads/LIN64-NXEngine-$portVersion-Rev-4.tar.gz" # Game Data
CHECKSUM_SHA256="d467c112e81d4c56337ebf6968bd8bd781bce9140f674e72009a5274d2c15784"
CHECKSUM_SHA256_2="ddc1f69349bd4239adc6485e0377b503425a7960bbd6696c1b30ea6ed11e1851"
SOURCE_DIR="NXEngine-$portVersion-Rev4"
SOURCE_DIR_2="NXEngine"
PATCHES="nxengine-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
PROVIDES="
nxengine = $portVersion
app:nxengine = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libSDL_mixer$secondaryArchSuffix
lib:libSDL_ttf$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= r1~alpha4_pm_hrev51410-1
devel:libfreetype$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libSDL_mixer$secondaryArchSuffix
devel:libSDL_ttf$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:qmake >= 5
"
BUILD()
{
mkdir -p build_haiku && cd build_haiku
qmake ..
make $jobArgs
}
INSTALL()
{
cd build_haiku
mkdir -p $appsDir/NXEngine
cp NXEngine $appsDir/NXEngine
cp -r $sourceDir2/* $appsDir/NXEngine
rm -rf $appsDir/NXEngine/nx
addAppDeskbarSymlink $appsDir/NXEngine/NXEngine
}