Files
haikuports/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.recipe
Jerome Duval dedc2c6324 code style.
2018-08-06 15:08:49 +02:00

80 lines
2.3 KiB
Bash

SUMMARY="Arcade style game in the style of Boulder Dash"
DESCRIPTION="
- network multiplayer games (upto 4 players)
- local multiplayer games (upto 4 players)
- soft scrolling with 50 frames per second
- freely customizable keyboard and joystick support
- stereo sound effects and music
- music modules and fullscreen in SDL version
- contains levels to play Boulder Dash, Emerald Mine and Sokoban
- lots of additional levels available (over 10.000)"
HOMEPAGE="http://www.artsoft.org/rocksndiamonds/"
COPYRIGHT="2001-2013 Artsoft Entertainment"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-3.3.1.2.tar.gz"
CHECKSUM_SHA256="c117c20026299c6c935bd531ef9b0dc767731f600881d12ceb80c831483755f3"
PATCHES="rocksndiamonds-$portVersion.patchset"
ADDITIONAL_FILES="rocksndiamonds.rdef.in"
ARCHITECTURES="!x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
rocksndiamonds$secondaryArchSuffix = $portVersion
app:rocksndiamonds = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libsdl_image$secondaryArchSuffix
lib:libsdl_mixer$secondaryArchSuffix
lib:libsdl_net$secondaryArchSuffix
# lib:libz$secondaryArchSuffix
lib:libsmpeg$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libsdl$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libsdl_mixer$secondaryArchSuffix
devel:libsdl_net$secondaryArchSuffix
# devel:libz$secondaryArchSuffix
devel:libsmpeg$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
# Parallel build doesn't work.
PLATFORM=haiku make sdl
}
INSTALL()
{
destdir=$appsDir/"Rocks'n'Diamonds"
mkdir -p $destdir
cp -r rocksndiamonds sounds graphics levels music $destdir
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local INTERNAL="`echo "$portVersion" | cut -d. -f4`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@INTERNAL@|$INTERNAL|" \
$portDir/additional-files/rocksndiamonds.rdef.in > rocksndiamonds.rdef
addResourcesToBinaries rocksndiamonds.rdef \
$destdir/rocksndiamonds
addAppDeskbarSymlink $destdir/rocksndiamonds "Rocks'n'Diamonds"
}