Files
haikuports/games-action/tuxracer/tuxracer-0.61.recipe
Jerome Duval dedc2c6324 code style.
2018-08-06 15:08:49 +02:00

59 lines
1.5 KiB
Bash

SUMMARY="Race down mountainous terrain as quickly as possible"
DESCRIPTION="Tux Racer lets you take on the role of Tux the Linux Penguin \
as he races down steep, snow-covered mountains. Enter cups and compete to \
win the title! Tux Racer includes a variety of options for gameplay, including \
the ability to race courses in fog, at night, and under high winds."
HOMEPAGE="http://tuxracer.sourceforge.net"
COPYRIGHT="1999-2001 Jasmin F. Patry"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://download.sourceforge.net/tuxracer/tuxracer-$portVersion.tar.gz"
CHECKSUM_SHA256="a311d09080598fe556134d4b9faed7dc0c2ed956ebb10d062e5d4df022f91eff"
PATCHES="tuxracer-$portVersion.patch"
ARCHITECTURES="x86_gcc2 ?x86 !x86_64"
PROVIDES="
tuxracer = portVersion
app:TuxRacer = $portVersion
"
REQUIRES="
haiku
lib:libgl
lib:libglu
lib:libsdl
lib:libtcl8.5 #tcl version in the recipe has to be set to >=8.0 instead of >=8.5
tuxracer_data
"
BUILD_REQUIRES="
haiku_devel
devel:libgl
devel:libglu
devel:libsdl
devel:libtclstub8.5
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:libtoolize
cmd:make
"
BUILD()
{
libtoolize -fci
./configure --prefix=$appsDir/TuxRacer --datadir=$appsDir/TuxRacer/data \
--with-data-dir=$appsDir/TuxRacer/data --with-tcl-lib-name=tcl8.5
make $jobArgs
}
INSTALL()
{
#install the date files first before installing TuxRacer
mkdir -p $appsDir/TuxRacer
make install
mv $appsDir/TuxRacer/bin/tuxracer $appsDir/TuxRacer/TuxRacer
rm -r $appsDir/TuxRacer/bin
addAppDeskbarSymlink $appsDir/TuxRacer/TuxRacer TuxRacer
}