54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
SUMMARY="An unofficial clone of the original Namco's Pac-Man"
|
|
DESCRIPTION="This game is an unofficial clone of the original Pac-Man game \
|
|
and is not endorsed by the registered trademark owners Namco, Inc."
|
|
HOMEPAGE="https://github.com/patapizza/puckman"
|
|
COPYRIGHT="2009 Julien Odent
|
|
2009 Martin Meys"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
srcGitRev="f5b809cc843daa99808dcad53da87208e0b67ffe"
|
|
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="630d3f08a631d97a798b094789e04f9a89fb9460b5725a8fc4e39630634800a2"
|
|
SOURCE_FILENAME="puckman-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="puckman-$srcGitRev"
|
|
PATCHES="puckman-$portVersion.patch"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
puckman$secondaryArchSuffix = $portVersion
|
|
app:Puck_Man = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libSDL_1.2$secondaryArchSuffix
|
|
lib:libSDL_gfx$secondaryArchSuffix
|
|
lib:libSDL_image_1.2$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libSDL_1.2$secondaryArchSuffix
|
|
devel:libSDL_gfx$secondaryArchSuffix
|
|
devel:libSDL_image_1.2$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
includedir=$(finddir B_SYSTEM_HEADERS_DIRECTORY)$secondaryArchSubDir
|
|
gcc puckman.c -Wall -I"$includedir"/SDL -lSDL -lSDL_image -lSDL_gfx \
|
|
-o puckman
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -m 755 -d "$appsDir" "$dataDir/puckman/images"
|
|
install -m 755 puckman "$appsDir/Puck-Man"
|
|
install -m 644 images/* "$dataDir/puckman/images"
|
|
addAppDeskbarSymlink "$appsDir/Puck-Man"
|
|
}
|