mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
Wizznic: fix recipe.
This commit is contained in:
@@ -1,31 +1,66 @@
|
||||
DESCRIPTION="Wizznic!"
|
||||
MESSAGE="Only compiles with gcc4, and only runs from terminal!"
|
||||
SUMMARY="brick-matching puzzle-game, an improved version of Puzznic."
|
||||
DESCRIPTION="
|
||||
Wizznic! is a brick-matching puzzle-game, an improved version of Puzznic.
|
||||
|
||||
The challenge is to clear each level of bricks by moving the bricks next to \
|
||||
each other, this sounds a lot easier than it is. The bricks are heavy, so you \
|
||||
can only push them, not lift them up
|
||||
"
|
||||
HOMEPAGE="http://wizznic.sourceforge.net/"
|
||||
SRC_URI="http://sourceforge.net/projects/wizznic/files/Source%20Releases/wizznic-0.9.9-src.tar.bz2/download"
|
||||
CHECKSUM_MD5="1b017cd84903f40f2a3ae7aef9951e8d"
|
||||
ARCHITECTURES=""
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="media-lib/libsdl >= 1.2.14
|
||||
media-lib/sdl-mixer >= 1.2.11
|
||||
media-lib/sdl-image >= 1.2.10"
|
||||
|
||||
SRC_URI="http://sourceforge.net/projects/wizznic/files/Source%20Releases/wizznic-0.9.9-src.tar.bz2"
|
||||
CHECKSUM_SHA256="2cf9462177474d7f5bfe95bbc21303ec7031ca86412b587b5e7d3ed531d5b16b"
|
||||
SOURCE_DIR="wizznic-$portVersion-src"
|
||||
PATCHES="wizznic-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
wizznic$secondaryArchSuffix = $portVersion
|
||||
cmd:wizznic$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libsdl_mixer$secondaryArchSuffix
|
||||
lib:libsdl_image$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:sdl_image$secondaryArchSuffix
|
||||
devel:sdl_mixer$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:sdl_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd wizznic-0.9.9-src
|
||||
make
|
||||
DATADIR=$dataDir/ BINDIR=$binDir/ WITH_OPENGL=false \
|
||||
CFLAGS=`sdl-config --cflags` make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd wizznic-0.9.9-src
|
||||
GAMEDIR=`finddir B_APPS_DIRECTORY`/"Wizznic"
|
||||
mkdir -p ${DESTDIR}/${GAMEDIR}
|
||||
cp -af wizznic ${DESTDIR}/${GAMEDIR}
|
||||
cp -af data ${DESTDIR}/${GAMEDIR}
|
||||
cp -af editorlevels ${DESTDIR}/${GAMEDIR}
|
||||
cp -af highscores ${DESTDIR}/${GAMEDIR}
|
||||
cp -af packs ${DESTDIR}/${GAMEDIR}
|
||||
|
||||
|
||||
DATADIR=$dataDir/ BINDIR=$binDir/ make install
|
||||
|
||||
|
||||
addAppDeskbarSymlink $binDir/wizznic "WizzNic!"
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v3"
|
||||
|
||||
Reference in New Issue
Block a user