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

67 lines
1.7 KiB
Bash

SUMMARY="A simple arcade game"
DESCRIPTION="BumpRace is a simple arcade game. You've to get from the start \
to the finish line without crashing into deadly blocks. This game has really \
simple rules!"
HOMEPAGE="http://www.linux-games.com/bumprace/"
COPYRIGHT="2016 Karl Bartel, Skaven"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://mirror.amdmi3.ru/distfiles/bumprace/$portVersion.tar.bz2"
CHECKSUM_SHA256="7ec7924982196a0c19a801cb32843ff0b0c76084a9712b1a8ba38002bae3b665"
SOURCE_FILENAME="bumprace-$portVersion.tar.bz2"
SOURCE_DIR="karlb-bumprace-047c7a593bcc"
PATCHES="karlb-bumprace-$portVersion.patch"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
bumprace$secondaryArchSuffix = $portVersion
app:BumpRace$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libsdl_image$secondaryArchSuffix
lib:libsdl_mixer$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjpeg$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libsdl_mixer$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:automake
cmd:autoconf
cmd:aclocal
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
aclocal
automake --add-missing
sed -i 's/-lm//g' configure
./configure --prefix=$appsDir/BumpRace
make $jobArgs
}
INSTALL()
{
mkdir -p $manDir/man6
make install
cp -f bumprace.6 $manDir/man6
mv $appsDir/BumpRace/bin/bumprace $appsDir/BumpRace/BumpRace
rm -r $appsDir/BumpRace/bin
addAppDeskbarSymlink $appsDir/BumpRace/BumpRace BumpRace
}