From fa5f3e56e73a07cacab8fdb169e669859a00b16a Mon Sep 17 00:00:00 2001 From: Begasus Date: Sat, 30 Apr 2016 12:42:45 +0200 Subject: [PATCH] new recipes for TuxRacer (#572) --- .../tuxracer/patches/tuxracer-0.61.patch | 33 +++++++++++ games-action/tuxracer/tuxracer-0.61.recipe | 59 +++++++++++++++++++ .../tuxracer_data/tuxracer_data-0.61.recipe | 39 ++++++++++++ 3 files changed, 131 insertions(+) create mode 100644 games-action/tuxracer/patches/tuxracer-0.61.patch create mode 100644 games-action/tuxracer/tuxracer-0.61.recipe create mode 100644 games-action/tuxracer_data/tuxracer_data-0.61.recipe diff --git a/games-action/tuxracer/patches/tuxracer-0.61.patch b/games-action/tuxracer/patches/tuxracer-0.61.patch new file mode 100644 index 000000000..d7987ef23 --- /dev/null +++ b/games-action/tuxracer/patches/tuxracer-0.61.patch @@ -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 ++#include ++#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" diff --git a/games-action/tuxracer/tuxracer-0.61.recipe b/games-action/tuxracer/tuxracer-0.61.recipe new file mode 100644 index 000000000..2010eae8e --- /dev/null +++ b/games-action/tuxracer/tuxracer-0.61.recipe @@ -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 +} diff --git a/games-action/tuxracer_data/tuxracer_data-0.61.recipe b/games-action/tuxracer_data/tuxracer_data-0.61.recipe new file mode 100644 index 000000000..acbcf0c7d --- /dev/null +++ b/games-action/tuxracer_data/tuxracer_data-0.61.recipe @@ -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 +}