SpeedX is a clone of old racing games in rear-view for X with sound.

It can be played multiplayer over a network.
This commit is contained in:
Jeremy C. Reed 2003-06-02 15:45:28 +00:00
parent 44ce551729
commit b649d0dfca
7 changed files with 198 additions and 0 deletions

2
speedx/DESCR Normal file
View file

@ -0,0 +1,2 @@
SpeedX is a clone of old racing games in rear-view for X with sound.
It can be played multiplayer over a network.

39
speedx/Makefile Normal file
View file

@ -0,0 +1,39 @@
# $NetBSD: Makefile,v 1.1.1.1 2003/06/02 15:45:28 jeremy-c-reed Exp $
DISTNAME= SpeedX-0.1.4d
PKGNAME= speedx-0.1.4d
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=speedx/}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} mercrain.s3m.zip
SITES_mercrain.s3m.zip= http://www.modarchive.com/cgi-bin/download.cgi/M/
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://medernac.home.cern.ch/medernac/SpeedX/index_en.html
COMMENT= car racing game for X
GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_BUILDLINK2= YES
USE_X11BASE= YES
post-build:
# XXX should just use find and cpio instead, but cpio isn't on all systems
${MKDIR} ${WRKDIR}/share
${CP} -Rf ${WRKSRC}/src/background ${WRKDIR}/share
${CP} -Rf ${WRKSRC}/src/cars ${WRKDIR}/share
${CP} -Rf ${WRKSRC}/src/music ${WRKDIR}/share
${CP} -Rf ${WRKSRC}/src/num ${WRKDIR}/share
${CP} -Rf ${WRKSRC}/src/road ${WRKDIR}/share
${CP} -Rf ${WRKSRC}/src/scene ${WRKDIR}/share
${FIND} ${WRKDIR}/share -type f \! -name "*.png" | ${XARGS} ${RM}
post-install:
${CP} -Rf ${WRKDIR}/share/* ${PREFIX}/share/speedx
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/speedx
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/speedx
${INSTALL_DATA} ${WRKDIR}/mercrain.s3m ${PREFIX}/share/speedx/music/
.include "../../graphics/png/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../audio/libmikmod/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"

77
speedx/PLIST Normal file
View file

@ -0,0 +1,77 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/02 15:45:28 jeremy-c-reed Exp $
bin/speedx
share/doc/speedx/README
share/speedx/background/sky0.png
share/speedx/background/sky1.png
share/speedx/cars/camion/camion_0.png
share/speedx/cars/camion/camion_0_mask.png
share/speedx/cars/camion/camion_1.png
share/speedx/cars/camion/camion_1_mask.png
share/speedx/cars/camion/camion_1a.png
share/speedx/cars/camion/camion_1a_mask.png
share/speedx/cars/camion/camion_2.png
share/speedx/cars/camion/camion_2_mask.png
share/speedx/cars/camion/camion_2a.png
share/speedx/cars/camion/camion_2a_mask.png
share/speedx/cars/camion/camion_3.png
share/speedx/cars/camion/camion_3_mask.png
share/speedx/cars/camion/camion_3a.png
share/speedx/cars/camion/camion_3a_mask.png
share/speedx/cars/f1_1/f1_1_0.png
share/speedx/cars/f1_1/f1_1_0_mask.png
share/speedx/cars/f1_1/f1_1_1.png
share/speedx/cars/f1_1/f1_1_1_mask.png
share/speedx/cars/f1_1/f1_1_1a.png
share/speedx/cars/f1_1/f1_1_1a_mask.png
share/speedx/cars/f1_1/f1_1_2.png
share/speedx/cars/f1_1/f1_1_2_mask.png
share/speedx/cars/f1_1/f1_1_2a.png
share/speedx/cars/f1_1/f1_1_2a_mask.png
share/speedx/cars/f1_1/f1_1_3.png
share/speedx/cars/f1_1/f1_1_3_mask.png
share/speedx/cars/f1_1/f1_1_3a.png
share/speedx/cars/f1_1/f1_1_3a_mask.png
share/speedx/cars/jeep/jeep_0.png
share/speedx/cars/jeep/jeep_0_mask.png
share/speedx/cars/jeep/jeep_1.png
share/speedx/cars/jeep/jeep_1_mask.png
share/speedx/cars/jeep/jeep_1a.png
share/speedx/cars/jeep/jeep_1a_mask.png
share/speedx/cars/jeep/jeep_2.png
share/speedx/cars/jeep/jeep_2_mask.png
share/speedx/cars/jeep/jeep_2a.png
share/speedx/cars/jeep/jeep_2a_mask.png
share/speedx/cars/jeep/jeep_3.png
share/speedx/cars/jeep/jeep_3_mask.png
share/speedx/cars/jeep/jeep_3a.png
share/speedx/cars/jeep/jeep_3a_mask.png
share/speedx/music/mercrain.s3m
share/speedx/num/0.png
share/speedx/num/1.png
share/speedx/num/2.png
share/speedx/num/3.png
share/speedx/num/4.png
share/speedx/num/5.png
share/speedx/num/6.png
share/speedx/num/7.png
share/speedx/num/8.png
share/speedx/num/9.png
share/speedx/road/border.png
share/speedx/road/depart.png
share/speedx/road/menu.png
share/speedx/road/road1.png
share/speedx/road/road2.png
share/speedx/road/road3.png
share/speedx/scene/arrivee.png
@dirrm share/speedx/scene
@dirrm share/speedx/road
@dirrm share/speedx/num
@dirrm share/speedx/music
@dirrm share/speedx/cars/jeep
@dirrm share/speedx/cars/f1_1
@dirrm share/speedx/cars/camion
@dirrm share/speedx/cars/Panorama
@dirrm share/speedx/cars
@dirrm share/speedx/background
@dirrm share/speedx
@dirrm share/doc/speedx

22
speedx/TODO Normal file
View file

@ -0,0 +1,22 @@
test multiplayer:
Multiplayer on the same screen is deprecated ..: Undefined error: 0
pkglint complains:
FATAL: extra item "SITES_mercrain.s3m.zip" placed in the DISTNAME section.
post-install should just use cpio ??
but cpio may not exist? and no CPIO is defined
sometimes crashes at startup with:
. World Initialisation ...
speedx in free(): warning: junk pointer, too high to make sense.
Error (Bad Attached memory shared)
should honor USE_OSS
getopt (or whatever) is broken
speedx --help # doesn't work, but -h says it does
I am still trying to find out license for that sound file download
test over network

8
speedx/distinfo Normal file
View file

@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.1.1.1 2003/06/02 15:45:28 jeremy-c-reed Exp $
SHA1 (SpeedX-0.1.4d.tar.gz) = 73e89196ea0936db07f6aa9e4c5cc87c2a2005a5
Size (SpeedX-0.1.4d.tar.gz) = 813322 bytes
SHA1 (mercrain.s3m.zip) = 8fba6ea3e1fc2fd3233ce48cb9ddd51860dcf5ed
Size (mercrain.s3m.zip) = 134661 bytes
SHA1 (patch-aa) = 106cabe0bee28ce170a35494420b807f7426852a
SHA1 (patch-ab) = 41ffe893ed1e7d35e1097fdbd19d484b767d6d28

33
speedx/patches/patch-aa Normal file
View file

@ -0,0 +1,33 @@
$NetBSD: patch-aa,v 1.1.1.1 2003/06/02 15:45:28 jeremy-c-reed Exp $
--- src/Makefile.in.orig Sat Apr 21 06:09:22 2001
+++ src/Makefile.in
@@ -66,11 +66,11 @@ RANLIB = @RANLIB@
VERSION = @VERSION@
SUBDIRS = background cars num road scene
-pkgdatadir = $(datadir)/@PACKAGE@-@VERSION@
+pkgdatadir = $(datadir)/speedx
-CFLAGS = -Wall -Wunused -O3 -I/usr/local/include/ -I/usr/X11R6/include/
+CFLAGS = @CFLAGS@
DEFS = -DPKGDATADIR=\"$(pkgdatadir)/\" @DEFS@
-LDFLAGS = -L/usr/local/lib/ -L/usr/X11R6/lib/
+LDFLAGS = @LDFLAGS@
LDADD = -lz -lpng -lX11 -lXext -lm
bin_PROGRAMS = speedx
@@ -438,13 +438,6 @@ install-data-local:
$(INSTALL) -d $(pkgdatadir)/num/
$(INSTALL) -d $(pkgdatadir)/road/
$(INSTALL) -d $(pkgdatadir)/scene/
- cp -Rf $(srcdir)/background/* $(pkgdatadir)/background/
- cp -Rf $(srcdir)/cars/* $(pkgdatadir)/cars/
- cp -Rf $(srcdir)/music/* $(pkgdatadir)/music/
- cp -Rf $(srcdir)/num/* $(pkgdatadir)/num/
- cp -Rf $(srcdir)/road/* $(pkgdatadir)/road/
- cp -Rf $(srcdir)/scene/* $(pkgdatadir)/scene/
- rm -f $(pkgdatadir)/music/Makefile
maintainer-clean-hook:
rm -Rf .deps

17
speedx/patches/patch-ab Normal file
View file

@ -0,0 +1,17 @@
$NetBSD: patch-ab,v 1.1.1.1 2003/06/02 15:45:28 jeremy-c-reed Exp $
--- src/music.c.orig Sat Mar 24 01:54:50 2001
+++ src/music.c
@@ -64,9 +64,11 @@ void init_music(void)
MikMod_RegisterDriver(&drv_alsa);
MikMod_RegisterDriver(&drv_esd);
- */
MikMod_RegisterDriver(&drv_oss);
+ */
+
+ MikMod_RegisterDriver(&drv_sun);
MikMod_RegisterAllLoaders();