summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 19:29:22 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 19:29:22 +0000
commitf0759f77429dfcff11fdeb040d0553dd1e8e0bd8 (patch)
treebc451cfc4f19d245b0c6a7f10e547fdc2006db52 /games-arcade/tuxracer
parentaction games ! (diff)
downloadgentoo-2-f0759f77429dfcff11fdeb040d0553dd1e8e0bd8.tar.gz
gentoo-2-f0759f77429dfcff11fdeb040d0553dd1e8e0bd8.tar.bz2
gentoo-2-f0759f77429dfcff11fdeb040d0553dd1e8e0bd8.zip
arcade games !
Diffstat (limited to 'games-arcade/tuxracer')
-rw-r--r--games-arcade/tuxracer/ChangeLog57
-rw-r--r--games-arcade/tuxracer/Manifest5
-rw-r--r--games-arcade/tuxracer/files/0.61-configure.in.patch37
-rw-r--r--games-arcade/tuxracer/files/0.61-gcc3.patch57
-rw-r--r--games-arcade/tuxracer/files/digest-tuxracer-0.61-r32
-rw-r--r--games-arcade/tuxracer/tuxracer-0.61-r3.ebuild58
6 files changed, 216 insertions, 0 deletions
diff --git a/games-arcade/tuxracer/ChangeLog b/games-arcade/tuxracer/ChangeLog
new file mode 100644
index 000000000000..4f9f93aca699
--- /dev/null
+++ b/games-arcade/tuxracer/ChangeLog
@@ -0,0 +1,57 @@
+# ChangeLog for app-games/tuxracer
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxracer/ChangeLog,v 1.1 2003/09/10 19:29:22 vapier Exp $
+
+*tuxracer-0.61-r3 (19 Aug 2003)
+
+ 19 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Add games.eclass support, add gcc3 patch #26851, and clean up configure patch.
+
+*tuxracer-0.61-r2 (04 Oct 2002)
+
+ 10 Jul 2003; Michael Sterrett <msterret@gentoo.org> tuxracer-0.61-r1.ebuild,
+ tuxracer-0.61-r2.ebuild:
+ fix DESCRIPTION
+
+ 02 Mar 2003; Hanno Boeck <hanno@gentoo.org> tuxracer-0.61-r2.ebuild :
+ Let tuxracer-ppc-glxfix also apply on other archs, since it's not
+ a ppc-specific problem.
+
+ 23 Feb 2003; Aron Griffis <agriffis@gentoo.org> tuxracer-0.61-r2.ebuild :
+ Fix minor error in the ebuild where "die" could be called from within
+ a subshell.
+
+ 13 Feb 2003; Mark Guertin <gerk@gentoo.org> tuxracer-0.61-r2.ebuild :
+ Added patch for braindead configure option that doesnt like new xfree
+
+ 18 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> tuxracer-0.61-r2.ebuild :
+ Updated to mirror://sourceforge in SRC_URI.
+
+ 05 Oct 2002; Mike Frysinger <vapier@gentoo.org> tuxracer-0.61-r2.ebuild :
+ The changing of -m<optimization> to -f<optimization> is invalid for gcc2.x #8770
+
+ 04 Oct 2002; Mike Frysinger <vapier@gentoo.org> tuxracer-0.61-r2.ebuild :
+ Fixed directory permissions ... directories have to be +rx to be accessible
+
+*tuxracer-0.61-r1 (1 Feb 2002)
+
+ 18 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> tuxracer-0.61-r1.ebuild :
+ Updated to mirror://sourceforge in SRC_URI.
+
+ 28 Sep 2002; Nick Hadaway <raker@gentoo.org> tuxracer-0.61-r1.ebuild :
+ Changed -m* flags to -f* flags to squash gcc3 warnings and updated
+ install to fix html location.
+
+ 02 Aug 2002; mark Guertin <gerk@gentoo.org> tuxracer-0.61-r1.ebuild :
+ Added ppc to keywords
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> tuxracer-0.61-r1.ebuild :
+ Added LICENSE, KEYWORDS.
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/games-arcade/tuxracer/Manifest b/games-arcade/tuxracer/Manifest
new file mode 100644
index 000000000000..386cade43c59
--- /dev/null
+++ b/games-arcade/tuxracer/Manifest
@@ -0,0 +1,5 @@
+MD5 3ea30203986dcef8a5f7cfa08d8399cb ChangeLog 2425
+MD5 38939c1d511e6684055bdf0e80b738f5 tuxracer-0.61-r3.ebuild 1436
+MD5 21d4db03916968fd60f797267fbd58c3 files/digest-tuxracer-0.61-r3 136
+MD5 8d89a0df0da6219cac8499c181b9e987 files/0.61-configure.in.patch 1690
+MD5 23587bbd063a7f5f6dcb6979e0347e01 files/0.61-gcc3.patch 2027
diff --git a/games-arcade/tuxracer/files/0.61-configure.in.patch b/games-arcade/tuxracer/files/0.61-configure.in.patch
new file mode 100644
index 000000000000..52c0ed9dac08
--- /dev/null
+++ b/games-arcade/tuxracer/files/0.61-configure.in.patch
@@ -0,0 +1,37 @@
+--- configure.in.orig 2003-08-18 23:19:45.174427928 -0400
++++ configure.in 2003-08-18 23:22:48.107617856 -0400
+@@ -47,11 +47,6 @@
+ TR_CXXFLAGS="-O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
+ TR_LIBS=""
+
+-case "$host" in
+-i*86-*-*) TR_CFLAGS="$TR_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";
+- TR_CXXFLAGS="$TR_CXXFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+-alpha*-*-linux-*) TR_CFLAGS="$TR_CFLAGS -mieee";;
+-esac
+
+ AC_ARG_ENABLE(debug, [ --enable-debug Produce an executable with debugging symbols],
+ [TR_CFLAGS="-g -Wall"; TR_CXXFLAGS="-g -Wall"],
+@@ -468,9 +468,6 @@
+ glx_h_up_to_date=yes, glx_h_up_to_date=no )
+ AC_MSG_RESULT([$glx_h_up_to_date])
+
+- if test "x$glx_h_up_to_date" = "xno" ; then
+- AC_MSG_ERROR([Your copy of glx.h is out of date. You can get a more recent copy from the latest Mesa distribution (http://mesa3d.sourceforge.net).])
+- fi
+ fi
+
+ dnl Check for glext.h
+@@ -592,7 +584,11 @@
+ dnl --------------------------------------------------------------------------
+
+ dnl Turn use of stencil buffer on/off
+-AC_ARG_ENABLE(stencil-buffer,[ --enable-stencil-buffer Use if your hardware has a stencil buffer],TR_CPPFLAGS="$TR_CPPFLAGS -DUSE_STENCIL_BUFFER")
++AC_ARG_ENABLE(stencil-buffer,[ --enable-stencil-buffer Use if your hardware has a stencil buffer],
++use_stencil=$enableval)
++if test "x$use_stencil" = "xyes" ; then
++ TR_CPPFLAGS="$TR_CPPFLAGS -DUSE_STENCIL_BUFFER"
++fi
+
+ dnl Specify data directory
+ AC_ARG_WITH(data-dir,[ --with-data-dir=PATH Default tuxracer data directory],TR_CPPFLAGS="$TR_CPPFLAGS -DDATA_DIR=\\\"$withval\\\"")
diff --git a/games-arcade/tuxracer/files/0.61-gcc3.patch b/games-arcade/tuxracer/files/0.61-gcc3.patch
new file mode 100644
index 000000000000..5bf32ca281af
--- /dev/null
+++ b/games-arcade/tuxracer/files/0.61-gcc3.patch
@@ -0,0 +1,57 @@
+diff -ru tuxracer-0.61.old/src/game_config.c tuxracer-0.61.new/src/game_config.c
+--- tuxracer-0.61.old/src/game_config.c 2001-01-30 21:04:43.000000000 +0100
++++ tuxracer-0.61.new/src/game_config.c 2003-07-08 01:15:09.000000000 +0200
+@@ -114,26 +114,26 @@
+ */
+
+ #define INIT_PARAM( nam, val, typename, commnt ) \
+- Params. ## nam ## .loaded = False; \
+- Params. ## nam ## .name = #nam; \
+- Params. ## nam ## .deflt. ## typename ## _val = val; \
+- Params. ## nam ## .comment = commnt;
++ Params.nam.loaded = False; \
++ Params.nam.name = #nam; \
++ Params.nam.deflt.typename ## _val = val; \
++ Params.nam.comment = commnt;
+
+ #define INIT_PARAM_STRING( nam, val, commnt ) \
+ INIT_PARAM( nam, val, string, commnt ); \
+- Params. ## nam ## .type = PARAM_STRING;
++ Params.nam.type = PARAM_STRING;
+
+ #define INIT_PARAM_CHAR( nam, val, commnt ) \
+ INIT_PARAM( nam, val, char, commnt ); \
+- Params. ## nam ## .type = PARAM_CHAR;
++ Params.nam.type = PARAM_CHAR;
+
+ #define INIT_PARAM_INT( nam, val, commnt ) \
+ INIT_PARAM( nam, val, int, commnt ); \
+- Params. ## nam ## .type = PARAM_INT;
++ Params.nam.type = PARAM_INT;
+
+ #define INIT_PARAM_BOOL( nam, val, commnt ) \
+ INIT_PARAM( nam, val, bool, commnt ); \
+- Params. ## nam ## .type = PARAM_BOOL;
++ Params.nam.type = PARAM_BOOL;
+
+
+ /*
+@@ -310,13 +310,13 @@
+ */
+ #define FN_PARAM( name, typename, type ) \
+ type getparam_ ## name() { \
+- if ( !Params. ## name ## .loaded ) { \
+- fetch_param_ ## typename( &( Params. ## name ) ); \
++ if ( !Params.name.loaded ) { \
++ fetch_param_ ## typename( &( Params.name ) ); \
+ } \
+- return Params. ## name ## .val. ## typename ## _val; \
++ return Params.name.val.typename ## _val; \
+ } \
+ void setparam_ ## name( type val) { \
+- set_param_ ## typename( &( Params. ## name ), val ); }
++ set_param_ ## typename( &( Params.name ), val ); }
+
+ #define FN_PARAM_STRING( name ) \
+ FN_PARAM( name, string, char* )
+
diff --git a/games-arcade/tuxracer/files/digest-tuxracer-0.61-r3 b/games-arcade/tuxracer/files/digest-tuxracer-0.61-r3
new file mode 100644
index 000000000000..19a70fd944bc
--- /dev/null
+++ b/games-arcade/tuxracer/files/digest-tuxracer-0.61-r3
@@ -0,0 +1,2 @@
+MD5 aef877fee9e1a56483ff01fbdfb1e4b3 tuxracer-data-0.61.tar.gz 7402317
+MD5 206e8197ceaf0f00b25d4e2b4156e563 tuxracer-0.61.tar.gz 636628
diff --git a/games-arcade/tuxracer/tuxracer-0.61-r3.ebuild b/games-arcade/tuxracer/tuxracer-0.61-r3.ebuild
new file mode 100644
index 000000000000..4a51b375dfb3
--- /dev/null
+++ b/games-arcade/tuxracer/tuxracer-0.61-r3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxracer/tuxracer-0.61-r3.ebuild,v 1.1 2003/09/10 19:29:22 vapier Exp $
+
+inherit games eutils gcc
+
+DESCRIPTION="take on the role of Tux, the Linux Penguin, as he races down steep, snow-covered mountains"
+HOMEPAGE="http://tuxracer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tuxracer/${PN}-data-${PV}.tar.gz
+ mirror://sourceforge/tuxracer/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc"
+IUSE="stencil-buffer"
+
+DEPEND="virtual/opengl
+ virtual/glu
+ >=dev-lang/tk-8.0.5-r2
+ media-libs/sdl-mixer"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+ unpack ${PN}-data-${PV}.tar.gz
+
+ # braindead check in configure fails - hack approach
+ epatch ${FILESDIR}/${PV}-configure.in.patch
+ epatch ${FILESDIR}/${PV}-gcc3.patch
+
+ autoconf || die "autoconf failed"
+}
+
+src_compile() {
+ egamesconf \
+ `use_enable stencil-buffer` \
+ --with-data-dir=${GAMES_DATADIR}/${PN} \
+ || die
+ make || die "make failed"
+}
+
+src_install() {
+ make install DESTDIR=${D} || die "install failed"
+
+ dodir ${GAMES_DATADIR}/${PN}
+ cp -r ${PN}-data-${PV}/* ${D}/${GAMES_DATADIR}/${PN}/
+
+ dodoc README AUTHORS NEWS
+ dohtml -r html/*
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "If you had the game installed before please reset"
+ ewarn "the data_dir variable in ~/.tuxracer/options"
+}