pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

f1spirit: importing remake of f1spirit for the MSX and fixing up roadfighter



Module Name:	pkgsrc-wip
Committed By:	i3enedek <pkgsrc%xn--rvztrtkrfrgp-bbb7j2b8f0b9d7a21oft.com@localhost>
Pushed By:	i3enedek
Date:		Tue Dec 26 02:38:08 2017 +0000
Changeset:	0abccec459757fcc18e7e221229b4b904b5afd48

Modified Files:
	roadfighter/Makefile
	roadfighter/PLIST
Added Files:
	f1spirit/DESCR
	f1spirit/Makefile
	f1spirit/PLIST
	f1spirit/distinfo
	f1spirit/files/f1spirit
	f1spirit/patches/patch-build_linux_Makefile
	f1spirit/patches/patch-sources_F1Shttp.cpp
	roadfighter/files/roadfighter

Log Message:
f1spirit: importing remake of f1spirit for the MSX and fixing up roadfighter

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0abccec459757fcc18e7e221229b4b904b5afd48

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 f1spirit/DESCR                              |  31 ++++
 f1spirit/Makefile                           |  56 ++++++
 f1spirit/PLIST                              | 254 ++++++++++++++++++++++++++++
 f1spirit/distinfo                           |   8 +
 f1spirit/files/f1spirit                     |   3 +
 f1spirit/patches/patch-build_linux_Makefile |  24 +++
 f1spirit/patches/patch-sources_F1Shttp.cpp  |  12 ++
 roadfighter/Makefile                        |  16 +-
 roadfighter/PLIST                           |  74 +++++++-
 roadfighter/files/roadfighter               |   3 +
 10 files changed, 478 insertions(+), 3 deletions(-)

diffs:
diff --git a/f1spirit/DESCR b/f1spirit/DESCR
new file mode 100644
index 0000000000..fcbd3385e6
--- /dev/null
+++ b/f1spirit/DESCR
@@ -0,0 +1,31 @@
+F-1 Spirit is a racing game. You will race with many different types of cars.
+Everything starts with stock cars, moving up to rally cars and Formula 3.
+The main goal is to finish at first place with Formula 1,
+the king class of racing. There are 6 types of races:
+
+    Stock race
+    Rally
+    F3 race
+    F3000 race
+    Endurance race
+    F1 races (16 tracks)
+
+Initially, you can only race in the stock, rally and F3 races.
+As you win races, you will accumulate points that will allow you to play
+new races. If you finish a race at first place you will receive 9 points, you
+get 8 points if you finish second, etc. If you finish 10th or later, you will
+not score any points.
+
+There are 16 different tracks for F1 cars. As you win races, you will be able
+to play more tracks in the F1 car category. To complete the game, you have to
+win all of the 16 F1 tracks. There's a grand total of 21 tracks. The first
+races are the easiest: the cars are slow and the enemies do not drive very
+well. But as you classify for new tracks the difficulty will increase: F1
+cars are insanely fast! You will need a great agility to win in F1 tracks.
+Even though they look impossible to control at first, with some practice you
+can master the Formula 1 cars and win races. And if that's not enough, you can
+always show off your skills in multi player mode.
+
+During a race, you can bump into other cars and into the side boards and other
+obstacles. This will damage your car. In every track, there is a pit lane
+(labeled with the letters "PIT") where you can fuel up and repair your car.
diff --git a/f1spirit/Makefile b/f1spirit/Makefile
new file mode 100644
index 0000000000..9adbfb4b4e
--- /dev/null
+++ b/f1spirit/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD$
+
+DISTNAME=	f1spirit.src_0.rc9-1615
+PKGNAME=	f1spirit-1.0
+CATEGORIES=	games
+MASTER_SITES=	http://braingames.jorito.net/f1spirit/
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://f1spirit.jorito.net/
+COMMENT=	Remake the Konami MSX1 classic F-1 Spirit
+LICENSE=	unlicense
+
+WRKSRC=		${WRKDIR}/f1spirit-0.rc9.1615
+USE_TOOLS+=	gmake
+USE_LANGUAGES=	c++ c
+
+#LDFLAGS+=	-nostartfiles
+CFLAGS+=	-Wno-write-strings
+
+SHAREDIR=		${PREFIX}/share/f1spirit
+INSTALLATION_DIRS=	bin ${SHAREDIR}
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-install
+SUBST_FILES.prefix=	f1spirit.sh
+SUBST_MESSAGE.prefix=	Fixing PREFIX.
+SUBST_SED.prefix=	-e "s|@PREFIX@|${PREFIX}|g"
+
+pre-patch:
+	${CP} ${FILESDIR}/f1spirit ${WRKSRC}/f1spirit.sh
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/f1spirit.sh \
+	                ${DESTDIR}${PREFIX}/bin/f1spirit
+	${INSTALL_PROGRAM} ${WRKSRC}/f1spirit \
+	                ${DESTDIR}${SHAREDIR}
+	${INSTALL_DATA_DIR} ${WRKSRC}/sound ${DESTDIR}${SHAREDIR}
+	${INSTALL_DATA_DIR} ${WRKSRC}/tracks ${DESTDIR}${SHAREDIR}
+	${INSTALL_DATA_DIR} ${WRKSRC}/demos ${DESTDIR}${SHAREDIR}
+	${INSTALL_DATA_DIR} ${WRKSRC}/graphics ${DESTDIR}${SHAREDIR}
+	${CP} -r ${WRKSRC}/sound/ ${WRKSRC}/tracks/ ${WRKSRC}/demos/ ${WRKSRC}/graphics/ ${DESTDIR}${SHAREDIR}
+
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../graphics/SDL_image/buildlink3.mk"
+.include "../../devel/SDL_ttf/buildlink3.mk"
+.include "../../audio/SDL_sound/buildlink3.mk"
+.include "../../audio/SDL_mixer/buildlink3.mk"
+.include "../../net/SDL_net/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/glut/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/x11.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/f1spirit/PLIST b/f1spirit/PLIST
new file mode 100644
index 0000000000..eaf59428e4
--- /dev/null
+++ b/f1spirit/PLIST
@@ -0,0 +1,254 @@
+@comment $NetBSD$
+bin/f1spirit
+share/f1spirit/demos/demo1.rpl
+share/f1spirit/demos/demo2.rpl
+share/f1spirit/demos/demo3.rpl
+share/f1spirit/demos/demo4.rpl
+share/f1spirit/demos/demo5.rpl
+share/f1spirit/demos/demo6.rpl
+share/f1spirit/f1spirit
+share/f1spirit/graphics/brake-1.png
+share/f1spirit/graphics/brake-2.png
+share/f1spirit/graphics/brake-3.png
+share/f1spirit/graphics/car-endurance-1-side.png
+share/f1spirit/graphics/car-endurance-1-top.png
+share/f1spirit/graphics/car-endurance-2-side.png
+share/f1spirit/graphics/car-endurance-2-top.png
+share/f1spirit/graphics/car-endurance-3-side.png
+share/f1spirit/graphics/car-endurance-3-top.png
+share/f1spirit/graphics/car-f1-1-side.png
+share/f1spirit/graphics/car-f1-1-top.png
+share/f1spirit/graphics/car-f1-2-side.png
+share/f1spirit/graphics/car-f1-2-top.png
+share/f1spirit/graphics/car-f1-3-side.png
+share/f1spirit/graphics/car-f1-3-top.png
+share/f1spirit/graphics/car-f3-1-side.png
+share/f1spirit/graphics/car-f3-1-top.png
+share/f1spirit/graphics/car-f3-2-side.png
+share/f1spirit/graphics/car-f3-2-top.png
+share/f1spirit/graphics/car-f3-3-side.png
+share/f1spirit/graphics/car-f3-3-top.png
+share/f1spirit/graphics/car-f3000-1-side.png
+share/f1spirit/graphics/car-f3000-1-top.png
+share/f1spirit/graphics/car-f3000-2-side.png
+share/f1spirit/graphics/car-f3000-2-top.png
+share/f1spirit/graphics/car-f3000-3-side.png
+share/f1spirit/graphics/car-f3000-3-top.png
+share/f1spirit/graphics/car-rally-1-side.png
+share/f1spirit/graphics/car-rally-1-top.png
+share/f1spirit/graphics/car-rally-2-side.png
+share/f1spirit/graphics/car-rally-2-top.png
+share/f1spirit/graphics/car-rally-3-side.png
+share/f1spirit/graphics/car-rally-3-top.png
+share/f1spirit/graphics/car-stock-1-side.png
+share/f1spirit/graphics/car-stock-1-top.png
+share/f1spirit/graphics/car-stock-2-side.png
+share/f1spirit/graphics/car-stock-2-top.png
+share/f1spirit/graphics/car-stock-3-side.png
+share/f1spirit/graphics/car-stock-3-top.png
+share/f1spirit/graphics/cars-endurance.png
+share/f1spirit/graphics/cars-f1.png
+share/f1spirit/graphics/cars-f3.png
+share/f1spirit/graphics/cars-f3000.png
+share/f1spirit/graphics/cars-rally.png
+share/f1spirit/graphics/cars-stock.png
+share/f1spirit/graphics/cloud1.png
+share/f1spirit/graphics/cloud2.png
+share/f1spirit/graphics/cloud3.png
+share/f1spirit/graphics/damage.png
+share/f1spirit/graphics/disclaimer.jpg
+share/f1spirit/graphics/end.png
+share/f1spirit/graphics/endurance/extras.png
+share/f1spirit/graphics/endurance/lroad-chicane.png
+share/f1spirit/graphics/endurance/rroad-chicane.png
+share/f1spirit/graphics/engine-1.png
+share/f1spirit/graphics/engine-2.png
+share/f1spirit/graphics/engine-3.png
+share/f1spirit/graphics/engine-4.png
+share/f1spirit/graphics/engine-5.png
+share/f1spirit/graphics/engine-6.png
+share/f1spirit/graphics/extras.png
+share/f1spirit/graphics/f1-brazil/grass.png
+share/f1spirit/graphics/f1-france/isle.png
+share/f1spirit/graphics/f1-france/lroad-chicane.png
+share/f1spirit/graphics/f1-france/road3.png
+share/f1spirit/graphics/f1-france/rroad-chicane.png
+share/f1spirit/graphics/f1-portugal/extras.png
+share/f1spirit/graphics/f1-sanmarino/grass.png
+share/f1spirit/graphics/f1-westgermany/isle.png
+share/f1spirit/graphics/f1-westgermany/lroad-chicane.png
+share/f1spirit/graphics/f1-westgermany/rroad-chicane.png
+share/f1spirit/graphics/f3/extras.png
+share/f1spirit/graphics/f3/isle.png
+share/f1spirit/graphics/f3/lfences.png
+share/f1spirit/graphics/f3/rfences.png
+share/f1spirit/graphics/flag0.png
+share/f1spirit/graphics/flag1.png
+share/f1spirit/graphics/font-unicode-alpha.png
+share/f1spirit/graphics/gamestart1.png
+share/f1spirit/graphics/gamestart2.png
+share/f1spirit/graphics/gear-1.png
+share/f1spirit/graphics/gear-2.png
+share/f1spirit/graphics/gear-3.png
+share/f1spirit/graphics/hud/fuel.png
+share/f1spirit/graphics/hud/hud_damage.png
+share/f1spirit/graphics/hud/hud_fixed_1.png
+share/f1spirit/graphics/hud/hud_fixed_2.png
+share/f1spirit/graphics/hud/hud_fixed_3.png
+share/f1spirit/graphics/hud/hud_fixed_3_sidefuel.png
+share/f1spirit/graphics/hud/hud_fixed_4.png
+share/f1spirit/graphics/hud/hud_gears.png
+share/f1spirit/graphics/hud/hud_rpm_1.png
+share/f1spirit/graphics/hud/hud_rpm_10.png
+share/f1spirit/graphics/hud/hud_rpm_11.png
+share/f1spirit/graphics/hud/hud_rpm_2.png
+share/f1spirit/graphics/hud/hud_rpm_3.png
+share/f1spirit/graphics/hud/hud_rpm_4.png
+share/f1spirit/graphics/hud/hud_rpm_5.png
+share/f1spirit/graphics/hud/hud_rpm_6.png
+share/f1spirit/graphics/hud/hud_rpm_7.png
+share/f1spirit/graphics/hud/hud_rpm_8.png
+share/f1spirit/graphics/hud/hud_rpm_9.png
+share/f1spirit/graphics/hud/hud_speed_font.png
+share/f1spirit/graphics/hud/hud_time_font.png
+share/f1spirit/graphics/hud/minihud_fuel.png
+share/f1spirit/graphics/konami1.jpg
+share/f1spirit/graphics/konami2.png
+share/f1spirit/graphics/laps.png
+share/f1spirit/graphics/locked.png
+share/f1spirit/graphics/menu_background.jpg
+share/f1spirit/graphics/minimap-car.png
+share/f1spirit/graphics/minimap-enemycar.png
+share/f1spirit/graphics/rally/crowd.png
+share/f1spirit/graphics/rally/extras.png
+share/f1spirit/graphics/rally/lroad-chicane.png
+share/f1spirit/graphics/rally/road1.png
+share/f1spirit/graphics/rally/road3.png
+share/f1spirit/graphics/rally/rock.png
+share/f1spirit/graphics/rally/rroad-chicane.png
+share/f1spirit/graphics/rally/tiles.png
+share/f1spirit/graphics/rally/walls.png
+share/f1spirit/graphics/rpm.png
+share/f1spirit/graphics/semaphore.png
+share/f1spirit/graphics/signs.png
+share/f1spirit/graphics/smallfont-unicode-alpha.png
+share/f1spirit/graphics/stock/arrows.png
+share/f1spirit/graphics/stock/crowd.png
+share/f1spirit/graphics/stock/fences.png
+share/f1spirit/graphics/stock/lroad-chicane.png
+share/f1spirit/graphics/stock/lroad.png
+share/f1spirit/graphics/stock/pit.png
+share/f1spirit/graphics/stock/road-lines.png
+share/f1spirit/graphics/stock/road1.png
+share/f1spirit/graphics/stock/road2.png
+share/f1spirit/graphics/stock/road3.png
+share/f1spirit/graphics/stock/rroad-chicane.png
+share/f1spirit/graphics/stock/rroad.png
+share/f1spirit/graphics/stock/tiles.png
+share/f1spirit/graphics/suspension-1.png
+share/f1spirit/graphics/suspension-2.png
+share/f1spirit/graphics/suspension-3.png
+share/f1spirit/graphics/title1-a-alpha.png
+share/f1spirit/graphics/title1-b-alpha.png
+share/f1spirit/graphics/title1-c-alpha.png
+share/f1spirit/graphics/title1-d-alpha.png
+share/f1spirit/graphics/title2-alpha.png
+share/f1spirit/graphics/track-previews/endurance.png
+share/f1spirit/graphics/track-previews/f1-1.png
+share/f1spirit/graphics/track-previews/f1-10.png
+share/f1spirit/graphics/track-previews/f1-11.png
+share/f1spirit/graphics/track-previews/f1-12.png
+share/f1spirit/graphics/track-previews/f1-13.png
+share/f1spirit/graphics/track-previews/f1-14.png
+share/f1spirit/graphics/track-previews/f1-15.png
+share/f1spirit/graphics/track-previews/f1-16.png
+share/f1spirit/graphics/track-previews/f1-2.png
+share/f1spirit/graphics/track-previews/f1-3.png
+share/f1spirit/graphics/track-previews/f1-4.png
+share/f1spirit/graphics/track-previews/f1-5.png
+share/f1spirit/graphics/track-previews/f1-6.png
+share/f1spirit/graphics/track-previews/f1-7.png
+share/f1spirit/graphics/track-previews/f1-8.png
+share/f1spirit/graphics/track-previews/f1-9.png
+share/f1spirit/graphics/track-previews/f3.png
+share/f1spirit/graphics/track-previews/f3000.png
+share/f1spirit/graphics/track-previews/micro.png
+share/f1spirit/graphics/track-previews/oval.png
+share/f1spirit/graphics/track-previews/rally.png
+share/f1spirit/graphics/track-previews/stock.png
+share/f1spirit/sound/braingames.ogg
+share/f1spirit/sound/endurance/car_brake.ogg
+share/f1spirit/sound/endurance/car_pass.ogg
+share/f1spirit/sound/endurance/car_running.ogg
+share/f1spirit/sound/endurance/music.ogg
+share/f1spirit/sound/endurance/tire_squeal.ogg
+share/f1spirit/sound/f1/car_brake.ogg
+share/f1spirit/sound/f1/car_idle.wav
+share/f1spirit/sound/f1/car_pass.ogg
+share/f1spirit/sound/f1/car_running.ogg
+share/f1spirit/sound/f1/car_running.wav
+share/f1spirit/sound/f1/car_shiftdown.wav
+share/f1spirit/sound/f1/car_shiftup.wav
+share/f1spirit/sound/f1/music.ogg
+share/f1spirit/sound/f1/tire_squeal.ogg
+share/f1spirit/sound/f3/car_brake.ogg
+share/f1spirit/sound/f3/car_pass.ogg
+share/f1spirit/sound/f3/car_running.ogg
+share/f1spirit/sound/f3/tire_squeal.ogg
+share/f1spirit/sound/f3000/car_brake.ogg
+share/f1spirit/sound/f3000/car_pass.ogg
+share/f1spirit/sound/f3000/car_running.ogg
+share/f1spirit/sound/f3000/music.ogg
+share/f1spirit/sound/f3000/tire_squeal.ogg
+share/f1spirit/sound/game_ending.ogg
+share/f1spirit/sound/game_menu.ogg
+share/f1spirit/sound/game_next.ogg
+share/f1spirit/sound/game_start.ogg
+share/f1spirit/sound/game_title.ogg
+share/f1spirit/sound/menu_cursor.ogg
+share/f1spirit/sound/menu_select.ogg
+share/f1spirit/sound/pause.ogg
+share/f1spirit/sound/rally/car_hit1.ogg
+share/f1spirit/sound/rally/car_pass.ogg
+share/f1spirit/sound/rally/car_running.ogg
+share/f1spirit/sound/rally/music.ogg
+share/f1spirit/sound/stock/car_brake.ogg
+share/f1spirit/sound/stock/car_finish.ogg
+share/f1spirit/sound/stock/car_fuel.ogg
+share/f1spirit/sound/stock/car_hit1.ogg
+share/f1spirit/sound/stock/car_hit2.ogg
+share/f1spirit/sound/stock/car_hit3.ogg
+share/f1spirit/sound/stock/car_hit4.ogg
+share/f1spirit/sound/stock/car_pass.ogg
+share/f1spirit/sound/stock/car_running.ogg
+share/f1spirit/sound/stock/curbs.ogg
+share/f1spirit/sound/stock/music.ogg
+share/f1spirit/sound/stock/rain.ogg
+share/f1spirit/sound/stock/semaphore_high.ogg
+share/f1spirit/sound/stock/semaphore_low.ogg
+share/f1spirit/sound/stock/tire_squeal.ogg
+share/f1spirit/sound/stock/water_splash.ogg
+share/f1spirit/sound/wrong.ogg
+share/f1spirit/tracks/endurance.f1t
+share/f1spirit/tracks/extras/micro.f1t
+share/f1spirit/tracks/extras/oval.f1t
+share/f1spirit/tracks/f1-australia.f1t
+share/f1spirit/tracks/f1-austria.f1t
+share/f1spirit/tracks/f1-belgium.f1t
+share/f1spirit/tracks/f1-brazil.f1t
+share/f1spirit/tracks/f1-france.f1t
+share/f1spirit/tracks/f1-greatbritain.f1t
+share/f1spirit/tracks/f1-hungary.f1t
+share/f1spirit/tracks/f1-italy.f1t
+share/f1spirit/tracks/f1-japan.f1t
+share/f1spirit/tracks/f1-mexico.f1t
+share/f1spirit/tracks/f1-monaco.f1t
+share/f1spirit/tracks/f1-portugal.f1t
+share/f1spirit/tracks/f1-sanmarino.f1t
+share/f1spirit/tracks/f1-spain.f1t
+share/f1spirit/tracks/f1-usa.f1t
+share/f1spirit/tracks/f1-westgermany.f1t
+share/f1spirit/tracks/f3.f1t
+share/f1spirit/tracks/f3000.f1t
+share/f1spirit/tracks/rally.f1t
+share/f1spirit/tracks/stock.f1t
diff --git a/f1spirit/distinfo b/f1spirit/distinfo
new file mode 100644
index 0000000000..e64cd15d64
--- /dev/null
+++ b/f1spirit/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (f1spirit.src_0.rc9-1615.tgz) = 90a6a0a3b5f7dc18a3497d32bb580bf47e688c95
+RMD160 (f1spirit.src_0.rc9-1615.tgz) = fa91ca937f9e12812376aa7571b4089b83a864a1
+SHA512 (f1spirit.src_0.rc9-1615.tgz) = 7eff68c5e33bb8ad07f8cf238ad1596b83dc5889828747d591b1e319cbef9359b6f134ad92e222ad7947c01278cfd692f6bf729de007dd91b03d12fd3d805335
+Size (f1spirit.src_0.rc9-1615.tgz) = 18522073 bytes
+SHA1 (patch-build_linux_Makefile) = 4407a77fca42e58b4f13a8b7a0781e70bd90c46a
+SHA1 (patch-sources_F1Shttp.cpp) = a94d7eaae754ef37cea83d675381be3ae2de516b
diff --git a/f1spirit/files/f1spirit b/f1spirit/files/f1spirit
new file mode 100644
index 0000000000..32950369ea
--- /dev/null
+++ b/f1spirit/files/f1spirit
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd @PREFIX@/share/f1spirit
+./f1spirit
diff --git a/f1spirit/patches/patch-build_linux_Makefile b/f1spirit/patches/patch-build_linux_Makefile
new file mode 100644
index 0000000000..1fd96a18ef
--- /dev/null
+++ b/f1spirit/patches/patch-build_linux_Makefile
@@ -0,0 +1,24 @@
+$NetBSD$
+
+--- build/linux/Makefile.orig	2009-02-06 10:12:51.000000000 +0000
++++ build/linux/Makefile
+@@ -1,6 +1,6 @@
+ EXE = f1spirit
+ SRC = sources
+-PREFIX = /usr
++#PREFIX = /usr
+ EXTRADIR = ./build/linux
+ 
+ GAMEDIR = $(PREFIX)/games
+@@ -40,8 +40,9 @@ OBJS = \
+ 
+ CC = gcc
+ #CFLAGS = -g3 -O3 -Wall `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include
+-CFLAGS = -g3 -O3 -Wno-write-strings `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include
+-LDFLAGS = `sdl-config --libs` `curl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_net -lGL -lGLU
++#CFLAGS = -g3 -O3 -Wno-write-strings `sdl-config --cflags` `curl-config --cflags` -I${X11BASE}/include
++CFLAGS += -g3 -O3 -Wno-write-strings `sdl-config --cflags` `curl-config --cflags` -I${X11BASE}/include -I${PREFIX}/include/curl
++LDFLAGS += `sdl-config --libs` `curl-config --libs` -L${X11BASE}/lib/ -lSDL_image -lSDL_mixer -lSDL_net -lGL -lGLU
+ RM = rm -f
+ CP = cp -r
+ MD = mkdir -p
diff --git a/f1spirit/patches/patch-sources_F1Shttp.cpp b/f1spirit/patches/patch-sources_F1Shttp.cpp
new file mode 100644
index 0000000000..4449183e20
--- /dev/null
+++ b/f1spirit/patches/patch-sources_F1Shttp.cpp
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- sources/F1Shttp.cpp.orig	2009-02-06 09:54:49.000000000 +0000
++++ sources/F1Shttp.cpp
+@@ -3,7 +3,6 @@
+ #include "string.h"
+ 
+ #include <curl/curl.h>
+-#include <curl/types.h>
+ #include <curl/easy.h>
+ 
+ #include "F1Shttp.h"
diff --git a/roadfighter/Makefile b/roadfighter/Makefile
index bab945ef3c..77d3c5f1d7 100644
--- a/roadfighter/Makefile
+++ b/roadfighter/Makefile
@@ -8,28 +8,40 @@ EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://roadfighter.jorito.net/
-COMMENT=	Remake of the MSX game Road Fighter
+COMMENT=	Remake the Konami MSX classic game Road Fighter
 LICENSE=	unlicense
 
 WRKSRC=		${WRKDIR}/roadfighter-1.0.1269
 #USE_TOOLS=	gmake
 USE_LANGUAGES=	c++ c
+CFLAGS+=        -Wno-write-strings
 
 SHAREDIR=		${PREFIX}/share/roadfighter
 INSTALLATION_DIRS=	bin ${SHAREDIR}
 
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-install
+SUBST_FILES.prefix=	roadfighter.sh
+SUBST_MESSAGE.prefix=	Fixing PREFIX.
+SUBST_SED.prefix=	-e "s|@PREFIX@|${PREFIX}|g"
+
 pre-patch:
 	${MV} ${WRKSRC}/src/sge/* ${WRKSRC}
 	${RMDIR} ${WRKSRC}/src/sge/
 	${MV} ${WRKSRC}/src/* ${WRKSRC}
+	${CP} ${FILESDIR}/roadfighter ${WRKSRC}/roadfighter.sh
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/roadfighter \
+	${INSTALL_SCRIPT} ${WRKSRC}/roadfighter.sh \
 	                ${DESTDIR}${PREFIX}/bin/roadfighter
+	${INSTALL_PROGRAM} ${WRKSRC}/roadfighter \
+	                ${DESTDIR}${SHAREDIR}
 	${INSTALL_DATA_DIR} ${WRKSRC}/sound ${DESTDIR}${SHAREDIR}
 	${INSTALL_DATA_DIR} ${WRKSRC}/fonts ${DESTDIR}${SHAREDIR}
 	${INSTALL_DATA_DIR} ${WRKSRC}/maps ${DESTDIR}${SHAREDIR}
 	${INSTALL_DATA_DIR} ${WRKSRC}/graphics ${DESTDIR}${SHAREDIR}
+	${CP} -r ${WRKSRC}/maps/ ${WRKSRC}/fonts/ ${WRKSRC}/sound/ ${WRKSRC}/graphics/ ${DESTDIR}${SHAREDIR}
 
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../graphics/SDL_image/buildlink3.mk"
diff --git a/roadfighter/PLIST b/roadfighter/PLIST
index a71c42f4fa..4103a18dad 100644
--- a/roadfighter/PLIST
+++ b/roadfighter/PLIST
@@ -1,3 +1,75 @@
 @comment $NetBSD$
 bin/roadfighter
-@pkgdir share/roadfighter
+share/roadfighter/fonts/comicbd.ttf
+share/roadfighter/fonts/tanglewo.ttf
+share/roadfighter/graphics/arrow.bmp
+share/roadfighter/graphics/car1.bmp
+share/roadfighter/graphics/car2.bmp
+share/roadfighter/graphics/checkpoint.bmp
+share/roadfighter/graphics/disclaimer.jpg
+share/roadfighter/graphics/empty.bmp
+share/roadfighter/graphics/enemycars.bmp
+share/roadfighter/graphics/explosion.bmp
+share/roadfighter/graphics/fuel.bmp
+share/roadfighter/graphics/fuel_scores.bmp
+share/roadfighter/graphics/gamemap.bmp
+share/roadfighter/graphics/gameover.jpg
+share/roadfighter/graphics/goal.bmp
+share/roadfighter/graphics/konami1.jpg
+share/roadfighter/graphics/konami2.jpg
+share/roadfighter/graphics/level1.bmp
+share/roadfighter/graphics/level2.bmp
+share/roadfighter/graphics/level3.bmp
+share/roadfighter/graphics/level4.bmp
+share/roadfighter/graphics/level5.bmp
+share/roadfighter/graphics/level6.bmp
+share/roadfighter/graphics/minicar1.bmp
+share/roadfighter/graphics/minicar2.bmp
+share/roadfighter/graphics/obstacles.bmp
+share/roadfighter/graphics/pause.bmp
+share/roadfighter/graphics/retroremakes.bmp
+share/roadfighter/graphics/road.bmp
+share/roadfighter/graphics/s_board11p.bmp
+share/roadfighter/graphics/s_board12p.bmp
+share/roadfighter/graphics/s_board21p.bmp
+share/roadfighter/graphics/s_board22p.bmp
+share/roadfighter/graphics/scoreboard.bmp
+share/roadfighter/graphics/scoreboard_left.bmp
+share/roadfighter/graphics/semaphore.bmp
+share/roadfighter/graphics/stage1.jpg
+share/roadfighter/graphics/stage2.jpg
+share/roadfighter/graphics/stage3.jpg
+share/roadfighter/graphics/stage4.jpg
+share/roadfighter/graphics/stage5.jpg
+share/roadfighter/graphics/stage6.jpg
+share/roadfighter/graphics/title.jpg
+share/roadfighter/maps/level1.mg2
+share/roadfighter/maps/level2.mg2
+share/roadfighter/maps/level3.mg2
+share/roadfighter/maps/level4.mg2
+share/roadfighter/maps/level5.mg2
+share/roadfighter/maps/level6.mg2
+share/roadfighter/roadfighter
+share/roadfighter/sound/car_brake.ogg
+share/roadfighter/sound/car_crash.ogg
+share/roadfighter/sound/car_pass.ogg
+share/roadfighter/sound/car_running.ogg
+share/roadfighter/sound/car_running.wav
+share/roadfighter/sound/car_start.ogg
+share/roadfighter/sound/collision.wav
+share/roadfighter/sound/fuelempty.ogg
+share/roadfighter/sound/game_theme.ogg
+share/roadfighter/sound/game_theme2.ogg
+share/roadfighter/sound/gameover.ogg
+share/roadfighter/sound/greenlight.ogg
+share/roadfighter/sound/levelcomplete.ogg
+share/roadfighter/sound/logo_in.ogg
+share/roadfighter/sound/logo_out.ogg
+share/roadfighter/sound/menu_move.wav
+share/roadfighter/sound/menu_select.ogg
+share/roadfighter/sound/menu_theme.ogg
+share/roadfighter/sound/redlight.ogg
+share/roadfighter/sound/start.ogg
+share/roadfighter/sound/takefuel.ogg
+share/roadfighter/sound/truck.ogg
+share/roadfighter/sound/water.wav
diff --git a/roadfighter/files/roadfighter b/roadfighter/files/roadfighter
new file mode 100644
index 0000000000..1f00871285
--- /dev/null
+++ b/roadfighter/files/roadfighter
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd @PREFIX@/share/roadfighter
+./roadfighter


Home | Main Index | Thread Index | Old Index