pkgsrc-WIP-changes archive

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

roadfigter: importing roadfighter; remake of MSX original



Module Name:	pkgsrc-wip
Committed By:	i3enedek <pkgsrc%xn--rvztrtkrfrgp-bbb7j2b8f0b9d7a21oft.com@localhost>
Pushed By:	i3enedek
Date:		Mon Dec 25 13:42:06 2017 +0000
Changeset:	e495cb57d8158f80e4b36b24187a10630cda426d

Added Files:
	roadfighter/DESCR
	roadfighter/Makefile
	roadfighter/PLIST
	roadfighter/distinfo
	roadfighter/patches/patch-CTile.cpp
	roadfighter/patches/patch-CTile.h
	roadfighter/patches/patch-build_linux_Makefile
	roadfighter/patches/patch-menu__state.cpp

Log Message:
roadfigter: importing roadfighter; remake of MSX original

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

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

diffstat:
 roadfighter/DESCR                              |  21 +++++
 roadfighter/Makefile                           |  40 +++++++++
 roadfighter/PLIST                              |   3 +
 roadfighter/distinfo                           |  10 +++
 roadfighter/patches/patch-CTile.cpp            |  13 +++
 roadfighter/patches/patch-CTile.h              |  13 +++
 roadfighter/patches/patch-build_linux_Makefile | 117 +++++++++++++++++++++++++
 roadfighter/patches/patch-menu__state.cpp      |  13 +++
 8 files changed, 230 insertions(+)

diffs:
diff --git a/roadfighter/DESCR b/roadfighter/DESCR
new file mode 100644
index 0000000000..118041261a
--- /dev/null
+++ b/roadfighter/DESCR
@@ -0,0 +1,21 @@
+In Road Fighter you drive a car in a death race between you and a group
+of mad drivers. Your aim? To reach the end of the checkpoint before you
+run out of fuel. Sounds easy? Far from it, there's a lot of obstacles
+between your car and the checkpoints! The game is divided in 6 stages
+and features 3 different difficulty levels:
+
+ GAME A is for beginners. You will want to choose this when you play the game
+ for the first time.
+
+ GAME B is for advanced players. The game is quite hard to finish in this mode.
+
+ GAME C is for crazy players. In this mode you will have serious problems to
+ beat the game!
+
+During the race, you should try not to hit the borders of the road.
+Beware of the other cars, because they sometimes will try to push you
+to the border and make you crash. Another important issue is the fuel.
+You should try to collect all the fuel recharges that you can during
+the game. They are represented by the pink hearts.
+
+You can also play the game with 2 players at the same time in split screen mode!
diff --git a/roadfighter/Makefile b/roadfighter/Makefile
new file mode 100644
index 0000000000..bab945ef3c
--- /dev/null
+++ b/roadfighter/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD$
+
+DISTNAME=	roadfighter.src_1.0.1269
+PKGNAME=	roadfighter-1.0
+CATEGORIES=	games
+MASTER_SITES=	http://braingames.jorito.net/roadfighter/downloads/
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://roadfighter.jorito.net/
+COMMENT=	Remake of the MSX game Road Fighter
+LICENSE=	unlicense
+
+WRKSRC=		${WRKDIR}/roadfighter-1.0.1269
+#USE_TOOLS=	gmake
+USE_LANGUAGES=	c++ c
+
+SHAREDIR=		${PREFIX}/share/roadfighter
+INSTALLATION_DIRS=	bin ${SHAREDIR}
+
+pre-patch:
+	${MV} ${WRKSRC}/src/sge/* ${WRKSRC}
+	${RMDIR} ${WRKSRC}/src/sge/
+	${MV} ${WRKSRC}/src/* ${WRKSRC}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/roadfighter \
+	                ${DESTDIR}${PREFIX}/bin/roadfighter
+	${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}
+
+.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 "../../mk/x11.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/roadfighter/PLIST b/roadfighter/PLIST
new file mode 100644
index 0000000000..a71c42f4fa
--- /dev/null
+++ b/roadfighter/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/roadfighter
+@pkgdir share/roadfighter
diff --git a/roadfighter/distinfo b/roadfighter/distinfo
new file mode 100644
index 0000000000..727395fc85
--- /dev/null
+++ b/roadfighter/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (roadfighter.src_1.0.1269.tgz) = e6cacf74065fcd27838c66b4c57998f9fdbc2874
+RMD160 (roadfighter.src_1.0.1269.tgz) = b5b483a4bb7d50468c74a45defd00b01753ff7b0
+SHA512 (roadfighter.src_1.0.1269.tgz) = e80b3617c7ed638f8fd9ae3e4630e4a408a2cda8ed82780af0361c5059f067d47b46b82cbf88e079e57f8ef0552817d2d73988211cd299bd280b716a39610233
+Size (roadfighter.src_1.0.1269.tgz) = 4724447 bytes
+SHA1 (patch-CTile.cpp) = 2b15192c06cd15621491b1211ee4c078e35bfcb2
+SHA1 (patch-CTile.h) = 7b9bedeefb5726c7e29d98eb9de3a12860a8f6b3
+SHA1 (patch-build_linux_Makefile) = 8af4592f9f9a18d7f3fb52424c50428a12c5b884
+SHA1 (patch-menu__state.cpp) = 7fbf95eaf6cc46c7b189bbad73efdac7e9da71ca
diff --git a/roadfighter/patches/patch-CTile.cpp b/roadfighter/patches/patch-CTile.cpp
new file mode 100644
index 0000000000..2c90568dc7
--- /dev/null
+++ b/roadfighter/patches/patch-CTile.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- CTile.cpp.orig	2008-03-18 20:00:21.000000000 +0000
++++ CTile.cpp
+@@ -6,7 +6,7 @@
+ #include "SDL.h"
+ #include "SDL_ttf.h"
+ #include "SDL_image.h"
+-#include "sge/sge.h"
++#include "sge.h"
+ 
+ #include "CTile.h"
+ #include "math.h"
diff --git a/roadfighter/patches/patch-CTile.h b/roadfighter/patches/patch-CTile.h
new file mode 100644
index 0000000000..668b9bf771
--- /dev/null
+++ b/roadfighter/patches/patch-CTile.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- CTile.h.orig	2008-03-18 20:00:21.000000000 +0000
++++ CTile.h
+@@ -1,7 +1,7 @@
+ #ifndef __RF_TILE_CLASS
+ #define __RF_TILE_CLASS
+ 
+-#include "sge/sge_collision.h"
++#include "sge_collision.h"
+ 
+ class CTile {
+ 	friend class CObject;
diff --git a/roadfighter/patches/patch-build_linux_Makefile b/roadfighter/patches/patch-build_linux_Makefile
new file mode 100644
index 0000000000..cffe7108b8
--- /dev/null
+++ b/roadfighter/patches/patch-build_linux_Makefile
@@ -0,0 +1,117 @@
+$NetBSD$
+
+--- build/linux/Makefile.orig	2008-03-19 20:58:51.000000000 +0000
++++ build/linux/Makefile
+@@ -1,81 +1,57 @@
+ EXE = roadfighter
+ SRC = src
+-PREFIX = /usr
++#PREFIX = /usr
+ EXTRADIR = ./build/linux
+ 
+-GAMEDIR = $(PREFIX)/games
++GAMEDIR = ${DESTDIR}${PREFIX}/games
+ STARTUP = $(GAMEDIR)/$(EXE)
+-BINDIR = $(PREFIX)/share/games/$(EXE)
+-ICNDIR = $(PREFIX)/share/pixmaps
+-APPDIR = $(PREFIX)/share/applications
++BINDIR = ${DESTDIR}${PREFIX}/share/games/$(EXE)
++ICNDIR = ${DESTDIR}${PREFIX}/share/pixmaps
++APPDIR = ${DESTDIR}${PREFIX}/share/applications
+ 
+ DATA = fonts graphics maps sound readme.txt
+ ICON = roadfighter.png
+ DESKTOP = roadfighter.desktop
+ 
+ OBJS = \
+-	$(SRC)/sge/sge_blib.o			$(SRC)/sge/sge_bm_text.o			\
+-	$(SRC)/sge/sge_collision.o		$(SRC)/sge/sge_misc.o				\
+-	$(SRC)/sge/sge_primitives.o		$(SRC)/sge/sge_rotation.o			\
+-	$(SRC)/sge/sge_shape.o			$(SRC)/sge/sge_surface.o			\
+-	$(SRC)/sge/sge_textpp.o			$(SRC)/sge/sge_tt_text.o			\
+-	$(SRC)/CCarObject.o				$(SRC)/CEnemyCarObject.o			\
+-	$(SRC)/CEnemyFastCarObject.o	$(SRC)/CEnemyNormalCarObject.o		\
+-	$(SRC)/CEnemyRacerCarObject.o	$(SRC)/CEnemySlidderCarObject.o		\
+-	$(SRC)/CEnemyTruckObject.o		$(SRC)/CExplosionObject.o			\
+-	$(SRC)/CFuelObject.o			$(SRC)/CGame.o						\
+-	$(SRC)/CObject.o				$(SRC)/CPlayerCarObject.o			\
+-	$(SRC)/CRoadFighter.o			$(SRC)/CSemaphoreObject.o			\
+-	$(SRC)/CTile.o														\
+-	$(SRC)/auxiliar.o				$(SRC)/configuration.o				\
+-	$(SRC)/debug.o					$(SRC)/filehandling.o				\
+-	$(SRC)/gameover_state.o			$(SRC)/interlevel_state.o			\
+-	$(SRC)/konami_state.o			$(SRC)/loadmg2.o					\
+-	$(SRC)/menu_state.o				$(SRC)/playing_state.o				\
+-	$(SRC)/presentation_state.o		$(SRC)/quick_tables.o				\
+-	$(SRC)/sound.o														\
+-	$(SRC)/main.o
++        sge_blib.o                      sge_bm_text.o                        \
++        sge_collision.o                 sge_misc.o                           \
++        sge_primitives.o                sge_rotation.o                       \
++        sge_shape.o                     sge_surface.o                        \
++        sge_textpp.o                    sge_tt_text.o                        \
++        CCarObject.o                    CEnemyCarObject.o                    \
++        CEnemyFastCarObject.o           CEnemyNormalCarObject.o              \
++        CEnemyRacerCarObject.o          CEnemySlidderCarObject.o             \
++        CEnemyTruckObject.o             CExplosionObject.o                   \
++        CFuelObject.o                   CGame.o                              \
++        CObject.o                       CPlayerCarObject.o                   \
++        CRoadFighter.o                  CSemaphoreObject.o                   \
++        CTile.o                                                              \
++        auxiliar.o                      configuration.o                      \
++        debug.o                         filehandling.o                       \
++        gameover_state.o                interlevel_state.o                   \
++        konami_state.o                  loadmg2.o                            \
++        menu_state.o                    playing_state.o                      \
++        presentation_state.o            quick_tables.o                       \
++        sound.o                                                              \
++        main.o
+ 
+ CC = g++
+-CFLAGS = -g3 -O3 `sdl-config --cflags` -I/usr/X11R6/include
+-LDFLAGS = `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_ttf
+-RM = rm -f
+-CP = cp -r
+-MD = mkdir -p
+-ECHO = echo
+-CHMOD = chmod
+-STRIP = strip
++CFLAGS = -g3 -O3 `sdl-config --cflags` -I${X11BASE}
++LDFLAGS = `sdl-config --libs` -L${X11BASE} -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_ttf
+ 
+-all: $(EXE)
+ 
+ %.o: %.cpp
+ 	$(CC) $(CFLAGS) -c $< -o $@
+ 
+-$(EXE): $(OBJS)
+-	$(CC) $(LDFLAGS) $^ -o $@
+-	@$(STRIP) $@
+-	@$(ECHO) " o If there are no errors, the game compiled succesfully"
++all: $(OBJS)
++	$(CC) -o $(EXE) $(LDFLAGS) $(OBJS) $(LIBS)
++	#@$(ECHO) " o If there are no errors, the game compiled succesfully"
+ 
+ clean:
+ 	@$(ECHO) " o Cleaning up source directory"
+ 	@$(RM) $(SRC)/*.o $(SRC)/sge/*.o $(SRC)/*.bak core $(EXE)
+ 
+-install: all
+-	@$(ECHO) " o Creating install directory $(BINDIR)"
+-	@$(MD) "$(BINDIR)"
+-	@$(ECHO) " o Installing game and data to $(BINDIR)"
+-	@$(CP) "$(EXE)" $(DATA) "$(BINDIR)"
+-	@$(ECHO) " o Creating startup script $(STARTUP)"
+-	@$(MD) "$(GAMEDIR)"
+-	@$(ECHO) "cd \"$(BINDIR)\"; ./$(EXE); cd -" >"$(STARTUP)"
+-	@$(CHMOD) 755 "$(STARTUP)"
+-	@$(ECHO) " o Creating application menu entry"
+-	@$(MD) "$(ICNDIR)"
+-	@$(CP) "$(EXTRADIR)/$(ICON)" "$(ICNDIR)"
+-	@$(MD) "$(APPDIR)"
+-	@$(CP) "$(EXTRADIR)/$(DESKTOP)" "$(APPDIR)"
+-	@$(ECHO) ""
+-
+ uninstall:
+ 	@$(ECHO) " o Removing game and data from $(BINDIR)"
+ 	@$(RM) -r "$(BINDIR)"
diff --git a/roadfighter/patches/patch-menu__state.cpp b/roadfighter/patches/patch-menu__state.cpp
new file mode 100644
index 0000000000..3f4b522121
--- /dev/null
+++ b/roadfighter/patches/patch-menu__state.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- menu_state.cpp.orig	2008-03-18 20:00:21.000000000 +0000
++++ menu_state.cpp
+@@ -17,7 +17,7 @@
+ 
+ #include "sound.h"
+ 
+-#include "sge/sge.h"
++#include "sge.h"
+ #include "CTile.h"
+ #include "CObject.h"
+ #include "CGame.h"


Home | Main Index | Thread Index | Old Index