Import f1spirit, a remake of Konami's original F1-Spirit from 1987.

F-1 Spirit is a racing game. You will race with many different types
of cars, starting by Stock or Rally cars, and finishing by driving F1
cars (once you have classified for it by passing for F3, F3000 and
Endurance cars).

Note that this requires DRI, the game is barely usable otherwise.
This commit is contained in:
landry 2009-03-19 18:30:30 +00:00
parent 9a3118167f
commit 46b9c5dbb7
7 changed files with 457 additions and 0 deletions

33
games/f1spirit/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/03/19 18:30:30 landry Exp $
COMMENT= remake of Konami's F1-Spirit
DISTNAME= f1spirit.src_0.rc9-1412
PKGNAME= ${DISTNAME:S/.src_0.rc9-/-0./}
WRKDIST= ${WRKDIR}/f1spirit-0.rc9
EXTRACT_SUFX= .tgz
CATEGORIES= games
HOMEPAGE= http://f1spirit.jorito.net/
MASTER_SITES= http://braingames.jorito.net/f1spirit/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
USE_X11= Yes
USE_GMAKE= Yes
RUN_DEPENDS= ::devel/desktop-file-utils
LIB_DEPENDS= SDL_image::devel/sdl-image \
SDL_net::devel/sdl-net \
SDL_mixer::devel/sdl-mixer \
curl::net/curl \
idn::devel/libidn
WANTLIB= GL GLU SDL c m crypto pthread ssl z
.include <bsd.port.mk>

5
games/f1spirit/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (f1spirit.src_0.rc9-1412.tgz) = ZTxhSWGyl4s4dTBv4Sj5JQ==
RMD160 (f1spirit.src_0.rc9-1412.tgz) = DQSIElqQUluum62BWiknlIfTHT8=
SHA1 (f1spirit.src_0.rc9-1412.tgz) = cQoQ5qC/vef7MUid/xLHjh8qQTo=
SHA256 (f1spirit.src_0.rc9-1412.tgz) = qBSl157jX1MApuXbd8gJmwFzZU2tT13nv4ooyHxz+00=
SIZE (f1spirit.src_0.rc9-1412.tgz) = 19875321

View File

@ -0,0 +1,41 @@
$OpenBSD: patch-build_linux_Makefile,v 1.1.1.1 2009/03/19 18:30:30 landry Exp $
--- build/linux/Makefile.orig Sun Aug 24 16:41:24 2008
+++ build/linux/Makefile Sat Mar 7 12:48:50 2009
@@ -1,11 +1,11 @@
EXE = f1spirit
SRC = sources
-PREFIX = /usr
+PREFIX ?= /usr
EXTRADIR = ./build/linux
-GAMEDIR = $(PREFIX)/games
+GAMEDIR = $(PREFIX)/bin
STARTUP = $(GAMEDIR)/$(EXE)
-BINDIR = $(PREFIX)/share/games/$(EXE)
+BINDIR = $(PREFIX)/share/$(EXE)
ICNDIR = $(PREFIX)/share/pixmaps
APPDIR = $(PREFIX)/share/applications
@@ -38,10 +38,10 @@ OBJS = \
$(SRC)/Vector.o $(SRC)/weather.o \
$(SRC)/filehandling.o $(SRC)/CarEngineSound.o
-CC = gcc
+CC ?= gcc
#CFLAGS = -g3 -O3 -Wall `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include
-CFLAGS = -g3 -O3 `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 += -g -O2 `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
RM = rm -f
CP = cp -r
MD = mkdir -p
@@ -70,7 +70,7 @@ install: all
@$(CP) "$(EXE)" $(DATA) "$(BINDIR)"
@$(ECHO) " o Creating startup script $(STARTUP)"
@$(MD) "$(GAMEDIR)"
- @$(ECHO) "cd \"$(BINDIR)\"; ./$(EXE); cd -" >"$(STARTUP)"
+ @$(ECHO) "cd \"${TRUEPREFIX}/share/${EXE}\"; ./$(EXE); cd -" >"$(STARTUP)"
@$(CHMOD) 755 "$(STARTUP)"
@$(ECHO) " o Creating application menu entry"
@$(MD) "$(ICNDIR)"

View File

@ -0,0 +1,71 @@
$OpenBSD: patch-sources_CPlayer_cpp,v 1.1.1.1 2009/03/19 18:30:30 landry Exp $
--- sources/CPlayer.cpp.orig Sat Mar 7 11:53:33 2009
+++ sources/CPlayer.cpp Sat Mar 7 12:30:45 2009
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
#include <time.h>
#include <SDL.h>
@@ -259,11 +260,12 @@ void CPlayerInfo::set_points(int i, int p)
#else
struct timeval ttime;
-
+ struct timespec ts;
struct tm *today;
gettimeofday(&ttime, NULL);
- today = localtime(&(ttime.tv_sec));
+ ts.tv_sec = ttime.tv_sec;
+ today = localtime(&(ts.tv_sec));
position_date[i].year = today->tm_year;
position_date[i].month = today->tm_mon;
@@ -289,11 +291,12 @@ void CPlayerInfo::set_time(int i, Uint32 p)
#else
struct timeval ttime;
-
+ struct timespec ts;
struct tm *today;
gettimeofday(&ttime, NULL);
- today = localtime(&(ttime.tv_sec));
+ ts.tv_sec = ttime.tv_sec;
+ today = localtime(&(ts.tv_sec));
time_date[i].year = today->tm_year;
time_date[i].month = today->tm_mon;
@@ -319,11 +322,12 @@ void CPlayerInfo::set_bestlap(int i, Uint32 p)
#else
struct timeval ttime;
-
+ struct timespec ts;
struct tm *today;
gettimeofday(&ttime, NULL);
- today = localtime(&(ttime.tv_sec));
+ ts.tv_sec = ttime.tv_sec;
+ today = localtime(&(ts.tv_sec));
lap_date[i].year = today->tm_year;
lap_date[i].month = today->tm_mon;
@@ -349,11 +353,12 @@ void CPlayerInfo::set_position(int i, int p)
#else
struct timeval ttime;
-
+ struct timespec ts;
struct tm *today;
gettimeofday(&ttime, NULL);
- today = localtime(&(ttime.tv_sec));
+ ts.tv_sec = ttime.tv_sec;
+ today = localtime(&(ts.tv_sec));
position_date[i].year = today->tm_year;
position_date[i].month = today->tm_mon;

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-sources_F1SpiritGame_cpp,v 1.1.1.1 2009/03/19 18:30:30 landry Exp $
--- sources/F1SpiritGame.cpp.orig Sat Mar 7 12:31:29 2009
+++ sources/F1SpiritGame.cpp Sat Mar 7 12:31:59 2009
@@ -2262,11 +2262,12 @@ bool F1SpiritGame::cycle(KEYBOARDSTATE *k)
#else
struct timeval ttime;
-
+ struct timespec ts;
struct tm *today;
gettimeofday(&ttime, NULL);
- today = localtime(&(ttime.tv_sec));
+ ts.tv_sec = ttime.tv_sec;
+ today = localtime(&(ts.tv_sec));
fputc(today->tm_year, replay_fp);
fputc(today->tm_mon, replay_fp);

5
games/f1spirit/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
Remake of Konami's F1-Spirit from 1987.
F-1 Spirit is a racing game. You will race with many different types
of cars, starting by Stock or Rally cars, and finishing by driving F1
cars (once you have classified for it by passing for F3, F3000 and
Endurance cars).

284
games/f1spirit/pkg/PLIST Normal file
View File

@ -0,0 +1,284 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/03/19 18:30:30 landry Exp $
bin/f1spirit
share/applications/f1spirit.desktop
share/f1spirit/
share/f1spirit/demos/
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
@bin share/f1spirit/f1spirit
share/f1spirit/f1spirit2.cfg
share/f1spirit/graphics/
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/
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/
share/f1spirit/graphics/f1-brazil/grass.png
share/f1spirit/graphics/f1-france/
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/
share/f1spirit/graphics/f1-portugal/extras.png
share/f1spirit/graphics/f1-sanmarino/
share/f1spirit/graphics/f1-sanmarino/grass.png
share/f1spirit/graphics/f1-westgermany/
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/
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/
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/
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/
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/
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/readme.txt
share/f1spirit/sound/
share/f1spirit/sound/braingames.ogg
share/f1spirit/sound/endurance/
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/
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/
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/
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/
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/
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/
share/f1spirit/tracks/endurance.f1t
share/f1spirit/tracks/extras/
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
share/pixmaps/
share/pixmaps/f1spirit.png
@exec %D/bin/update-desktop-database
@unexec %D/bin/update-desktop-database