Files
haikuports/games-puzzle/sdllopan/sdllopan-10.recipe
Jerome Duval ac04f910d9 sdllopan: move binaries to additional-files.
the pcx files: a better tileset from kmahjonglib (also GPL
licensed)
icon: Haiku vector icon and resource file.

enable x86_64.
2018-09-17 21:33:42 +02:00

65 lines
1.5 KiB
Bash

SUMMARY="An SDL version of the Lopan (Mah Jongg solitaire) game"
DESCRIPTION="
The well known Lopan (Mah Jongg solitaire) game. Click on matching pairs and \
try to remove all 144 tiles.
Within the game, the ESC key exits, and RETURN reshuffles the board.
The arrow keys work as undo/redo.
F1 switches the tilesets, the data/tiles#.pcx files are used.
F2 switched the background, the data/bg#.pcx files are used.
In both cases, number files beginnging with 0."
HOMEPAGE="http://www.linuxmotors.com/sdllopan/"
COPYRIGHT="1999-2008 Dave Ashley"
LICENSE="GNU GPL v2"
REVISION="5"
SOURCE_URI="http://www.linuxmotors.com/sdllopan/downloads/sdllopan-10.tgz"
CHECKSUM_SHA256="386de065bc8c3449c3b0b5e5651cb035cb1bdc242b425c865dd387c54ce708c3"
PATCHES="sdllopan-10.patchset"
ADDITIONAL_FILES="
Lopan-icon
tiles0.pcx
tiles2.pcx
"
ARCHITECTURES="x86_gcc2 x86_64"
PROVIDES="
sdllopan = $portVersion
app:lopan = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libsdl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
haiku_devel
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cp $portDir/additional-files/Lopan-icon .
cp $portDir/additional-files/tiles0.pcx \
$portDir/additional-files/tiles2.pcx data/
make $jobArgs
rc -o lopan.rsrc lopan.rdef
xres -o lopan lopan.rsrc
}
INSTALL()
{
mkdir -p $appsDir/Lopan
cp lopan $appsDir/Lopan/Lopan
cp README $appsDir/Lopan/ReadMe
cp -r data $appsDir/Lopan
addAppDeskbarSymlink $appsDir/Lopan/Lopan
}