pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/tuxracer Convert to buildlink3 and fix build wit...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9b0ac93b8b67
branches: trunk
changeset: 472708:9b0ac93b8b67
user: snj <snj%pkgsrc.org@localhost>
date: Sun Apr 11 23:16:27 2004 +0000
description:
Convert to buildlink3 and fix build with gcc3. Patch stolen from FreeBSD.
diffstat:
games/tuxracer/Makefile | 12 ++++----
games/tuxracer/distinfo | 3 +-
games/tuxracer/patches/patch-aa | 57 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 65 insertions(+), 7 deletions(-)
diffs (105 lines):
diff -r 5da9bbe8502c -r 9b0ac93b8b67 games/tuxracer/Makefile
--- a/games/tuxracer/Makefile Sun Apr 11 23:06:49 2004 +0000
+++ b/games/tuxracer/Makefile Sun Apr 11 23:16:27 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2004/03/08 19:52:51 minskim Exp $
+# $NetBSD: Makefile,v 1.11 2004/04/11 23:16:27 snj Exp $
#
DISTNAME= tuxracer-0.61
@@ -12,7 +12,7 @@
HOMEPAGE= http://tuxracer.sourceforge.net/
COMMENT= 3D penguin racing game using OpenGL
-USE_BUILDLINK2= YES
+USE_BUILDLINK3= YES
GNU_CONFIGURE= YES
CFLAGS+= -DGLX_GLXEXT_PROTOTYPES
@@ -30,9 +30,9 @@
cd ${PREFIX}/share/tuxracer && \
${FIND} . -type f -exec ${CHMOD} 444 {} \;
-.include "../../audio/SDL_mixer/buildlink2.mk"
-.include "../../graphics/glu/buildlink2.mk"
-.include "../../lang/tcl83/buildlink2.mk"
+.include "../../audio/SDL_mixer/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../lang/tcl83/buildlink3.mk"
-.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 5da9bbe8502c -r 9b0ac93b8b67 games/tuxracer/distinfo
--- a/games/tuxracer/distinfo Sun Apr 11 23:06:49 2004 +0000
+++ b/games/tuxracer/distinfo Sun Apr 11 23:16:27 2004 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/03/25 01:32:55 salo Exp $
+$NetBSD: distinfo,v 1.2 2004/04/11 23:16:27 snj Exp $
SHA1 (tuxracer-0.61.tar.gz) = e1b98209f99400cd6aa660f6c1c8bd2ab17d5cea
Size (tuxracer-0.61.tar.gz) = 636628 bytes
SHA1 (tuxracer-data-0.61.tar.gz) = f8476530106bfc343e9196e2a8285b5a57f75d65
Size (tuxracer-data-0.61.tar.gz) = 7402317 bytes
+SHA1 (patch-aa) = 834c16cb60690a2b3199dbe10e3350f67860e924
diff -r 5da9bbe8502c -r 9b0ac93b8b67 games/tuxracer/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/tuxracer/patches/patch-aa Sun Apr 11 23:16:27 2004 +0000
@@ -0,0 +1,57 @@
+$NetBSD: patch-aa,v 1.1 2004/04/11 23:16:27 snj Exp $
+
+--- src/game_config.c.orig Sun Aug 17 17:59:46 2003
++++ src/game_config.c Sun Aug 17 18:02:15 2003
+@@ -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* )
Home |
Main Index |
Thread Index |
Old Index