Files
haikuports/games-action/another_world/another_world-0.0.1.recipe
2023-11-19 19:45:04 +01:00

63 lines
1.7 KiB
Bash

SUMMARY="Another World (NEO-RAW)"
DESCRIPTION="RAW is a re-implementation of the engine used \
in the game 'Another World'. This game, released \
under the name 'Out Of This World' in non-European \
countries, was written by Eric Chahi at the beginning of the '90s.
YOU NEED ORIGINAL GAME FILES!
Put the DOS version of 'BANK*' and 'MEMLIST.BIN' in ~/config/non-packaged/data/another_world."
HOMEPAGE="https://github.com/fabiensanglard/Another-World-Bytecode-Interpreter"
COPYRIGHT="2011-2020 Fabien Sanglard"
LICENSE="GNU GPL v2"
REVISION="4"
srcGitRev="dea6914a82f493cb329188bcffa46b9d0b234ea6"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.zip"
CHECKSUM_SHA256="f75d33acc822de4a33bce5fc8781839c8e66f2a62720a1290f3968f8c12e0439"
SOURCE_DIR="Another-World-Bytecode-Interpreter-$srcGitRev"
ADDITIONAL_FILES="another_world.hvif
another_world.sh"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
another_world$secondaryArchSuffix = $portVersion
app:AnotherWorld = $portVersion
cmd:neo_raw
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libSDL2_2.0$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release .
make -C build
}
INSTALL()
{
mkdir -p $prefix/bin $appsDir
cp build/raw $prefix/bin/neo-raw
cp $portDir/additional-files/another_world.sh "$appsDir/Another World"
chmod +x "$appsDir/Another World"
addattr -t icon -f $portDir/additional-files/another_world.hvif \
"BEOS:ICON" "$appsDir/Another World"
addAppDeskbarSymlink "$appsDir/Another World" "Another World"
}