new recipes for TuxRacer (#572)

This commit is contained in:
Begasus
2016-04-30 12:42:45 +02:00
committed by Jérôme Duval
parent 45fa97790a
commit fa5f3e56e7
3 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
--- tuxracer-0.61/src/game_config.c.org 2016-04-26 17:44:17.903086080 +0200
+++ tuxracer-0.61/src/game_config.c 2016-04-26 17:44:05.612892672 +0200
@@ -505,7 +505,7 @@
"# decreasing this number, at the cost of lower image quality." );
INIT_PARAM_BOOL(
- fullscreen, True,
+ fullscreen, False,
"# If true then the game will run in full-screen mode." );
INIT_PARAM_INT(
--- tuxracer-0.61/src/main.c.org 2016-04-26 22:09:04.763887616 +0200
+++ tuxracer-0.61/src/main.c 2016-04-26 22:08:49.627572736 +0200
@@ -56,6 +56,11 @@
#include "loading.h"
#include "tcl_util.h"
+#ifdef __HAIKU__
+#include <unistd.h>
+#include <libgen.h>
+#endif
+
#define WINDOW_TITLE "Tux Racer " VERSION
#define GAME_INIT_SCRIPT "tuxracer_init.tcl"
@@ -122,6 +127,7 @@
int main( int argc, char **argv )
{
+ chdir(dirname(argv[0]));
/* Print copyright notice */
fprintf( stderr, "Tux Racer " VERSION " -- a Sunspire Studios Production "
"(http://www.sunspirestudios.com)\n"

View File

@@ -0,0 +1,59 @@
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
}

View File

@@ -0,0 +1,39 @@
SUMMARY="Data files for TuxRacer"
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-data-0.61.tar.gz"
CHECKSUM_SHA256="3783d204b7bb1ed16aa5e5a1d5944de10fbee05bc7cebb8f616fce84301f3651"
SOURCE_DIR="tuxracer-data-$portVersion"
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"
PROVIDES="
tuxracer_data = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
"
BUILD()
{
true
}
INSTALL()
{
mkdir -p $appsDir/TuxRacer/data
mv ./* $appsDir/TuxRacer/data
}