Files
haikuports/games-board/54321/54321-1.0.2001.11.16.recipe
OscarL 85ede669ec 54321: fine tunning. (#8649)
- Fix black-screen when starting up from Deskbar link.
- Simplified directory structure a bit.
- Enable build on 64 bits.
2023-05-16 11:33:57 +02:00

60 lines
1.1 KiB
Bash

SUMMARY="5 games in 1"
DESCRIPTION="54321 is five games in four-, three-, or two- dimensions for \
one player. 54321 takes five classic two-dimensional puzzle games and \
extends them into three and four dimensions."
HOMEPAGE="https://old.nklein.com/products/54321/"
COPYRIGHT="2001 Patrick Stein"
LICENSE="nklein"
REVISION="2"
SOURCE_URI="$HOMEPAGE/1.0.2001.11.16/54321.tgz"
CHECKSUM_SHA256="ff2bd7afec6d85d29fcf235875285520a4aa5b009c6a0dd7a56619821d79fddb"
SOURCE_DIR="54321"
PATCHES="54321-$portVersion.patchset"
ARCHITECTURES="all"
PROVIDES="
54321 = $portVersion
app:54321 = $portVersion
"
REQUIRES="
haiku
lib:libpng16
lib:libSDL_1.2
lib:libSDL_image_1.2
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libpng16
devel:libSDL_1.2
devel:libSDL_image_1.2
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
"
PATCH()
{
# Patch "data" dir location.
sed -i 's|../../data|./data|g' code/*
}
BUILD()
{
make -f GNUmakefile ARCH=BeOS
}
INSTALL()
{
mkdir -p $appsDir/54321
cp -R Release/data $appsDir/54321
cp Release/bin/BeOS/54321 $appsDir/54321
cp Release/README $appsDir/54321
addAppDeskbarSymlink $appsDir/54321/54321
}