mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Another World (NEO-RAW): new recipe (#9426)
* Another World (NEO-RAW): new recipe * Another World (NEO-RAW): applied proposed changes * Another World (NEO-RAW): applied proposed changes (2nd patchset) * Another World (NEO-RAW): applied proposed changes (3rd patchset)
This commit is contained in:
35
games-action/another_world/additional-files/another_world.sh
Normal file
35
games-action/another_world/additional-files/another_world.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
REQ_FILES=('BANK01' 'BANK02' 'BANK03' 'BANK04' 'BANK05' 'BANK06' 'BANK07'
|
||||
'BANK08' 'BANK09' 'BANK0A' 'BANK0B' 'BANK0C' 'BANK0D' 'MEMLIST.BIN')
|
||||
DATA_PATH=`findpaths -e B_FIND_PATH_DATA_DIRECTORY another_world | head -n 1`
|
||||
SAVE_PATH=`/bin/finddir B_USER_NONPACKAGED_DATA_DIRECTORY`/another_world/save
|
||||
|
||||
if [ -z $DATA_PATH ];
|
||||
then
|
||||
DATA_PATH=`/bin/finddir B_USER_NONPACKAGED_DATA_DIRECTORY`/another_world
|
||||
mkdir -p $DATA_PATH # create data directory if it does not exist
|
||||
fi
|
||||
|
||||
mkdir -p $SAVE_PATH # create save directory if it does not exist
|
||||
|
||||
# Check if all files are present
|
||||
for file in ${REQ_FILES[@]};
|
||||
do
|
||||
if [ ! -f $DATA_PATH/$file ];
|
||||
then
|
||||
if [ $TERM == "dumb" ];
|
||||
then
|
||||
if [ "$(alert --warning "Missing file: $file. Please copy original 'Another World' files (DOS version) to $DATA_PATH (BANK* and MEMLIST.BIN)." "Open data folder" "Cancel")" == "Open data folder" ];
|
||||
then
|
||||
open $DATA_PATH
|
||||
fi
|
||||
else
|
||||
echo "Missing file: $file. Please copy original 'Another World' files (DOS version) to $DATA_PATH (BANK* and MEMLIST.BIN)."
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
done
|
||||
|
||||
# all files are present, launch the game
|
||||
exec neo-raw --datapath=$DATA_PATH --savepath=$SAVE_PATH $@
|
||||
57
games-action/another_world/another_world-0.0.1.recipe
Normal file
57
games-action/another_world/another_world-0.0.1.recipe
Normal file
@@ -0,0 +1,57 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://github.com/fabiensanglard/Another-World-Bytecode-Interpreter/archive/dea6914a82f493cb329188bcffa46b9d0b234ea6.zip"
|
||||
CHECKSUM_SHA256="f75d33acc822de4a33bce5fc8781839c8e66f2a62720a1290f3968f8c12e0439"
|
||||
SOURCE_DIR="Another-World-Bytecode-Interpreter-dea6914a82f493cb329188bcffa46b9d0b234ea6"
|
||||
ADDITIONAL_FILES="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: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 -DCMAKE_BUILD_TYPE=Release .
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir $appsDir
|
||||
cp raw $binDir/neo-raw
|
||||
cp $portDir/additional-files/another_world.sh "$appsDir/Another World"
|
||||
chmod +x "$appsDir/Another World"
|
||||
addAppDeskbarSymlink "$appsDir/Another World" "Another World"
|
||||
}
|
||||
Reference in New Issue
Block a user