From ecbaf82e10cfb4ff66539d87a570845b66ca4124 Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 9 Mar 2006 14:08:44 +0000 Subject: [PATCH] Imported spaceracer-0.2.4. Space Racer is a 3D car racing game. The circuit is a road in a galactic environment. It aims to be a clone of the well known Stunt Car Racer developped by Geff Crammond, author of Grand Prix I and II. --- games/spaceracer/DESCR | 3 + games/spaceracer/Makefile | 24 ++++ games/spaceracer/PLIST | 35 ++++++ games/spaceracer/distinfo | 9 ++ games/spaceracer/patches/patch-acinclude | 22 ++++ games/spaceracer/patches/patch-configurein | 121 +++++++++++++++++++++ games/spaceracer/patches/patch-loopercpp | 15 +++ games/spaceracer/patches/patch-soundcpp | 15 +++ 8 files changed, 244 insertions(+) create mode 100644 games/spaceracer/DESCR create mode 100644 games/spaceracer/Makefile create mode 100644 games/spaceracer/PLIST create mode 100644 games/spaceracer/distinfo create mode 100644 games/spaceracer/patches/patch-acinclude create mode 100644 games/spaceracer/patches/patch-configurein create mode 100644 games/spaceracer/patches/patch-loopercpp create mode 100644 games/spaceracer/patches/patch-soundcpp diff --git a/games/spaceracer/DESCR b/games/spaceracer/DESCR new file mode 100644 index 000000000000..5c9740c192b8 --- /dev/null +++ b/games/spaceracer/DESCR @@ -0,0 +1,3 @@ +Space Racer is a 3D car racing game. The circuit is a road in a galactic +environment. It aims to be a clone of the well known Stunt Car Racer +developped by Geff Crammond, author of Grand Prix I and II. diff --git a/games/spaceracer/Makefile b/games/spaceracer/Makefile new file mode 100644 index 000000000000..862f86320e1b --- /dev/null +++ b/games/spaceracer/Makefile @@ -0,0 +1,24 @@ +# $NetBSD$ +# + +DISTNAME= spaceracer-0.2.4 +CATEGORIES= games +MASTER_SITES= http://spaceracer.sourceforge.net/ +EXTRACT_SUFX= .tgz + +MAINTAINER= rillig@NetBSD.org +HOMEPAGE= http://spaceracer.sourceforge.net/ +COMMENT= 3D car racing game + +USE_PKGLOCALEDIR= yes +GNU_CONFIGURE= yes +USE_TOOLS+= automake autoconf + +pre-configure: + cd ${WRKSRC:Q} && autoreconf -i + +.include "../../audio/SDL_mixer/buildlink3.mk" +.include "../../graphics/MesaLib/buildlink3.mk" +.include "../../multimedia/smpeg/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/games/spaceracer/PLIST b/games/spaceracer/PLIST new file mode 100644 index 000000000000..a7fd4fdee4ed --- /dev/null +++ b/games/spaceracer/PLIST @@ -0,0 +1,35 @@ +@comment $NetBSD$ +bin/spaceracer +include/stk_admctrl.h +include/stk_control.h +include/stk_file.h +include/stk_fnt.h +include/stk_joy.h +include/stk_keyboard.h +include/stk_looper.h +include/stk_message.h +include/stk_sdl.h +include/stk_sound.h +include/stk_text.h +include/stk_thread.h +include/stk_time.h +include/stk_window.h +share/spaceracer/default.txf +share/spaceracer/earth.png +share/spaceracer/earth2.png +share/spaceracer/jupiter.png +share/spaceracer/logo.png +share/spaceracer/mars.png +share/spaceracer/mercury.png +share/spaceracer/neptune.png +share/spaceracer/orion-a_taste_of_ecstacy.mp3 +share/spaceracer/orion-enter_the_trance.mp3 +share/spaceracer/saturn.png +share/spaceracer/sracer2006.gl +share/spaceracer/stars.dat +share/spaceracer/texture1.png +share/spaceracer/texture2.png +share/spaceracer/texture3.png +share/spaceracer/texture4.png +share/spaceracer/uranus.png +share/spaceracer/venus.png diff --git a/games/spaceracer/distinfo b/games/spaceracer/distinfo new file mode 100644 index 000000000000..4b5ce650e382 --- /dev/null +++ b/games/spaceracer/distinfo @@ -0,0 +1,9 @@ +$NetBSD$ + +SHA1 (spaceracer-0.2.4.tgz) = 57fea82636c2d1c9b77b81db5b8828c385b31c98 +RMD160 (spaceracer-0.2.4.tgz) = 610ed143324d815fc5066eb33c8625d7f4f80b2e +Size (spaceracer-0.2.4.tgz) = 992616 bytes +SHA1 (patch-acinclude) = b3126a339641f984a35f544653c8528a630902b0 +SHA1 (patch-configurein) = 6bc5f82b42fd7edad062271d1689196ece4126df +SHA1 (patch-loopercpp) = a81f8570cb9ebb2de80b03f4093fc028179b82af +SHA1 (patch-soundcpp) = 679d9442bc533ae3923f47fba6e8c1f712190df7 diff --git a/games/spaceracer/patches/patch-acinclude b/games/spaceracer/patches/patch-acinclude new file mode 100644 index 000000000000..7686bdf59974 --- /dev/null +++ b/games/spaceracer/patches/patch-acinclude @@ -0,0 +1,22 @@ +$NetBSD$ + +Added the necessary quoting for m4 macros. + +--- acinclude.m4.orig 2001-07-15 23:25:20.000000000 +0200 ++++ acinclude.m4 2006-03-09 14:44:04.000000000 +0100 +@@ -191,11 +191,11 @@ AC_ARG_ENABLE(smpegtest, [ --disable-sm + , enable_smpegtest=yes) + AC_CHECK_LIB(smpeg, + SMPEG_new, +- AC_CHECK_HEADER(smpeg/smpeg.h, ++ [AC_CHECK_HEADER(smpeg/smpeg.h, + SMPEG_LIBS="-lsmpeg", +- AC_MSG_WARN(header of smpeg not found)) +- SMPEG_LIBS="-lsmpeg", +- AC_MSG_ERROR(libsmpeg not found), ++ [AC_MSG_WARN(header of smpeg not found)]) ++ SMPEG_LIBS="-lsmpeg"], ++ [AC_MSG_ERROR(libsmpeg not found)], + $SPMEG_FLAGS) + AC_SUBST(SMPEG_CFLAGS) + AC_SUBST(SMPEG_LIBS) diff --git a/games/spaceracer/patches/patch-configurein b/games/spaceracer/patches/patch-configurein new file mode 100644 index 000000000000..d68f9867868f --- /dev/null +++ b/games/spaceracer/patches/patch-configurein @@ -0,0 +1,121 @@ +$NetBSD$ + +Added the necessary quoting for m4 macros. + +--- configure.in.orig 2001-07-15 23:25:20.000000000 +0200 ++++ configure.in 2006-03-09 14:54:16.000000000 +0100 +@@ -103,15 +103,6 @@ CXXFLAGS="$CFLAGS" + + + +-dnl ========================================== +-dnl Doit-t\'on afficher les info de debug ? +-dnl ========================================== +-AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl +- debug_default=no +- profile_default=no +- profile_debug=no +-AC_DIVERT_POP()dnl +- + AC_ARG_ENABLE(debug, [ --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]],,enable_debug=$debug_default) + AC_ARG_ENABLE(debug, [ --enable-profile=[no/yes] turn on profiling [default=$profile_default]],,profile_debug=$profile_default) + +@@ -151,23 +142,6 @@ if eval "test x$enable_spaceracerdir != + fi + fi) + +- +- +- +- +- +-dnl si c\'est Gcc, on rajoute l\'option -Wall que si il n\'y si trouve pas déjà +-changequote(,)dnl +-if test "x$GCC" = "xyes"; then +- case " $CXXFLAGS " in +- *[\ \ ]-Wall[\ \ ]*) ;; +- *) CXXFLAGS="$CXXFLAGS -Wall" ;; +- esac +-fi +-changequote([,])dnl +- +- +- + dnl ====================================== + dnl Détection des headers standart + dnl ====================================== +@@ -180,26 +154,26 @@ dnl ==================================== + + AC_CHECK_LIB(jpeg, + jpeg_start_decompress, +- AC_CHECK_HEADERS(jpeglib.h, ++ [AC_CHECK_HEADERS(jpeglib.h, + JPEGLIB="-ljpeg", +- AC_MSG_WARN(jpeg header not found)), ++ AC_MSG_WARN(jpeg header not found))], + , + -lm) + + AC_CHECK_LIB(z, + gzopen, +- AC_CHECK_HEADERS(zlib.h, ++ [AC_CHECK_HEADERS(zlib.h, + ZLIB="-lz", +- AC_MSG_WARN(zlib header not found)), ++ AC_MSG_WARN(zlib header not found))], + , + -lm) + if test "$ac_cv_header_zlib_h" = "yes" + then + AC_CHECK_LIB(png, + png_get_IHDR, +- AC_CHECK_HEADERS(png.h, ++ [AC_CHECK_HEADERS(png.h, + PNGLIB="-lpng $ZLIB", +- AC_MSG_WARN(png header not found)), ++ AC_MSG_WARN(png header not found))], + , + $ZLIB -lm) + fi +@@ -223,31 +197,31 @@ XLIBS="$X_EXTRA_LIBS -lX11" + + AC_CHECK_LIB(Xext, + XShmQueryExtension, +- AC_CHECK_HEADERS(X11/extensions/XShm.h, ++ [AC_CHECK_HEADERS(X11/extensions/XShm.h, + XLIBS="-lXext $XLIBS", +- AC_MSG_WARN(libXext Not found)), ++ AC_MSG_WARN(libXext Not found))], + , + $XLFLAGS $X_PRE_LIBS $XLIBS) + + AC_CHECK_LIB(Xmu, + XmuLookupStandardColormap, +- AC_CHECK_HEADER(X11/Xmu/WinUtil.h, ++ [AC_CHECK_HEADER(X11/Xmu/WinUtil.h, + XLIBS="-lXmu $XLIBS", +- AC_MSG_WARN(libXmu Not found)), +- AC_CHECK_LIB(Xmu, ++ AC_MSG_WARN(libXmu Not found))], ++ [AC_CHECK_LIB(Xmu, + XmuUpdateMapHints, +- AC_CHECK_HEADER(X11/Xmu/WinUtil.h, ++ [AC_CHECK_HEADER(X11/Xmu/WinUtil.h, + XLIBS="-lXmu -lXt $XLIBS", +- AC_MSG_WARN(XMU library not found)), ++ AC_MSG_WARN(XMU library not found))], + AC_MSG_WARN(XMU library not found), +- $XLFLAGS $X_PRE_LIBS -lXt $XLIBS), ++ $XLFLAGS $X_PRE_LIBS -lXt $XLIBS)], + $XLFLAGS $X_PRE_LIBS $XLIBS) + + AC_CHECK_LIB(Xi, + XGetExtensionVersion, +- AC_CHECK_HEADERS(X11/extensions/XI.h, ++ [AC_CHECK_HEADERS(X11/extensions/XI.h, + XLIBS="-lXi $XLIBS", +- AC_MSG_WARN(libXi Not found)), ++ AC_MSG_WARN(libXi Not found))], + , + $XLFLAGS $X_PRE_LIBS $XLIBS) + diff --git a/games/spaceracer/patches/patch-loopercpp b/games/spaceracer/patches/patch-loopercpp new file mode 100644 index 000000000000..a404b91505c1 --- /dev/null +++ b/games/spaceracer/patches/patch-loopercpp @@ -0,0 +1,15 @@ +$NetBSD$ + +g++ does not like double definition of default parameters. + +--- src/stk/kernel/stk_looper.cpp.orig 2001-07-15 23:26:19.000000000 +0200 ++++ src/stk/kernel/stk_looper.cpp 2006-03-09 14:59:00.000000000 +0100 +@@ -39,7 +39,7 @@ int Stk2_Messages::PollMessage(Stk2_Mess + + /* ---------------------- Looper ----------------------------- */ + +-Stk2_Looper::Stk2_Looper(int freq=25) ++Stk2_Looper::Stk2_Looper(int freq) + :Stk_Thread() + { + frequency=freq; diff --git a/games/spaceracer/patches/patch-soundcpp b/games/spaceracer/patches/patch-soundcpp new file mode 100644 index 000000000000..b171bf5746a0 --- /dev/null +++ b/games/spaceracer/patches/patch-soundcpp @@ -0,0 +1,15 @@ +$NetBSD$ + +g++ does not like double definition of default parameters. + +--- src/stk/sound/stk_sound.cpp.orig 2001-07-15 23:26:19.000000000 +0200 ++++ src/stk/sound/stk_sound.cpp 2006-03-09 14:59:42.000000000 +0100 +@@ -145,7 +145,7 @@ void Stk_CSound::Play(char *filename) + + + /* Server class */ +-Stk_PSound::Stk_PSound(int freq=25) ++Stk_PSound::Stk_PSound(int freq) + :Stk2_Looper(freq) + { + // no last sing -- 2.41.0