0
0
Fork 0
haikuports/games-puzzle/sdllopan/sdllopan-10.recipe

61 lines
1.3 KiB
Bash

SUMMARY="A version of the Lopan (Mah Jongg solitaire) game"
DESCRIPTION="The well known Lopan (Mah Jong 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 tilesets.
F2 switches backgrounds."
HOMEPAGE="http://www.linuxmotors.com/sdllopan/"
COPYRIGHT="1999-2008 Dave Ashley"
LICENSE="GNU GPL v2"
REVISION="7"
SOURCE_URI="http://www.linuxmotors.com/sdllopan/downloads/sdllopan-$portVersion.tgz"
CHECKSUM_SHA256="386de065bc8c3449c3b0b5e5651cb035cb1bdc242b425c865dd387c54ce708c3"
PATCHES="sdllopan-$portVersion.patchset"
ADDITIONAL_FILES="
Lopan-icon
tiles0.pcx
tiles2.pcx
"
ARCHITECTURES="all"
PROVIDES="
sdllopan = $portVersion
app:Lopan = $portVersion
"
REQUIRES="
haiku
lib:libSDL_1.2
"
BUILD_REQUIRES="
haiku_devel
devel:libSDL
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:ld
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
}