import ports/games/dd2, from Juan Francisco Cantero Hurtado, tweaks from myself
and bcallah, ok kirby Little shoot'em up arcade game for one or two players. It aims to be an 'old school' arcade game with low resolution graphics, top-down scroll action, energy based gameplay and different weapons with several levels of power.
This commit is contained in:
parent
5cdb3d9619
commit
a85f5caf37
33
games/dd2/Makefile
Normal file
33
games/dd2/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/10/08 08:45:19 sthen Exp $
|
||||
|
||||
COMMENT = arcade game for one or two players
|
||||
|
||||
V = 0.2.2
|
||||
DISTNAME = dd2-${V}
|
||||
|
||||
CATEGORIES = games
|
||||
|
||||
HOMEPAGE = http://www.usebox.net/jjm/dd2
|
||||
|
||||
MAINTAINER = Juan Francisco Cantero Hurtado <iam@juanfra.info>
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB = SDL SDL_mixer c m pthread
|
||||
|
||||
MASTER_SITES = http://www.usebox.net/jjm/dd2/releases/
|
||||
|
||||
# SDL and SDL_Mixer
|
||||
LIB_DEPENDS = devel/sdl-mixer
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
CFLAGS += -DDD2_SCORE=\\\"${VARBASE}/games\\\"
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dd2
|
||||
${INSTALL_DATA} ${WRKSRC}/src/data/dd2-hiscore \
|
||||
${PREFIX}/share/examples/dd2
|
||||
|
||||
.include <bsd.port.mk>
|
2
games/dd2/distinfo
Normal file
2
games/dd2/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (dd2-0.2.2.tar.gz) = nOz4w84mSXfGa39saqHu6agFZKXJpHlATILNlvHepcw=
|
||||
SIZE (dd2-0.2.2.tar.gz) = 293812
|
27
games/dd2/patches/patch-src_data_Makefile_in
Normal file
27
games/dd2/patches/patch-src_data_Makefile_in
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-src_data_Makefile_in,v 1.1.1.1 2013/10/08 08:45:19 sthen Exp $
|
||||
|
||||
The hiscore file is installed by hand in a directory writable by the group
|
||||
"games".
|
||||
|
||||
--- src/data/Makefile.in.orig Mon Aug 26 17:35:38 2013
|
||||
+++ src/data/Makefile.in Mon Aug 26 17:36:25 2013
|
||||
@@ -65,9 +65,9 @@ SDL_CONFIG = @SDL_CONFIG@
|
||||
SDL_LIBS = @SDL_LIBS@
|
||||
VERSION = @VERSION@
|
||||
|
||||
-pkgdata_DATA = bgm1.xm bgm2.xm efx1.wav efx2.wav efx3.wav efx4.wav efx5.wav efx6.wav efx7.wav efx8.wav gfx.bmp dd2.cfg game.act dd2-hiscore
|
||||
+pkgdata_DATA = bgm1.xm bgm2.xm efx1.wav efx2.wav efx3.wav efx4.wav efx5.wav efx6.wav efx7.wav efx8.wav gfx.bmp dd2.cfg game.act
|
||||
|
||||
-EXTRA_DIST = bgm1.xm bgm2.xm efx1.wav efx2.wav efx3.wav efx4.wav efx5.wav efx6.wav efx7.wav efx8.wav gfx.bmp dd2.cfg game.act dd2-hiscore
|
||||
+EXTRA_DIST = bgm1.xm bgm2.xm efx1.wav efx2.wav efx3.wav efx4.wav efx5.wav efx6.wav efx7.wav efx8.wav gfx.bmp dd2.cfg game.act
|
||||
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_CLEAN_FILES =
|
||||
@@ -197,7 +197,6 @@ maintainer-clean-generic clean mostlyclean distclean m
|
||||
|
||||
|
||||
install-data-hook:
|
||||
- chmod a+rw $(pkgdatadir)/dd2-hiscore
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
10
games/dd2/patches/patch-src_data_dd2_cfg
Normal file
10
games/dd2/patches/patch-src_data_dd2_cfg
Normal file
@ -0,0 +1,10 @@
|
||||
$OpenBSD: patch-src_data_dd2_cfg,v 1.1.1.1 2013/10/08 08:45:19 sthen Exp $
|
||||
--- src/data/dd2.cfg.orig Sat Sep 21 23:17:09 2013
|
||||
+++ src/data/dd2.cfg Sat Sep 21 23:17:16 2013
|
||||
@@ -2,5 +2,5 @@ BEGIN
|
||||
SOUND=3
|
||||
CONTROL_1=0
|
||||
CONTROL_2=0
|
||||
-FULL_SCREEN=1
|
||||
+FULL_SCREEN=0
|
||||
END
|
24
games/dd2/patches/patch-src_main_c
Normal file
24
games/dd2/patches/patch-src_main_c
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-src_main_c,v 1.1.1.1 2013/10/08 08:45:19 sthen Exp $
|
||||
|
||||
DD2_DATA directory isn't writable (PREFIX/share). The port will use /var/games.
|
||||
|
||||
--- src/main.c.orig Tue Aug 14 20:59:42 2007
|
||||
+++ src/main.c Mon Aug 26 16:25:38 2013
|
||||
@@ -296,7 +296,7 @@ main (int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
/* read hi-scores */
|
||||
- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA);
|
||||
+ sprintf(buffer,"%s/dd2-hiscore",DD2_SCORE);
|
||||
if(!loadScore(buffer,hiscore))
|
||||
fprintf(stderr,"unable to read hi-scores, using defaults\n");
|
||||
|
||||
@@ -463,7 +463,7 @@ main (int argc, char *argv[])
|
||||
saveCFG(buffer,&conf);
|
||||
|
||||
/* save hi-scores */
|
||||
- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA);
|
||||
+ sprintf(buffer,"%s/dd2-hiscore",DD2_SCORE);
|
||||
if(!saveScore(buffer,hiscore))
|
||||
fprintf(stderr,"unable to save hi-scores\ndo you have permissions to write into %s?\n"
|
||||
,buffer);
|
4
games/dd2/pkg/DESCR
Normal file
4
games/dd2/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
Little shoot'em up arcade game for one or two players. It aims to be an
|
||||
'old school' arcade game with low resolution graphics, top-down scroll
|
||||
action, energy based gameplay and different weapons with several levels
|
||||
of power.
|
34
games/dd2/pkg/PLIST
Normal file
34
games/dd2/pkg/PLIST
Normal file
@ -0,0 +1,34 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/10/08 08:45:19 sthen Exp $
|
||||
@mode 2555
|
||||
@group games
|
||||
@bin bin/dd2
|
||||
@mode
|
||||
@group
|
||||
share/dd2/
|
||||
share/dd2/bgm1.xm
|
||||
share/dd2/bgm2.xm
|
||||
share/dd2/dd2.cfg
|
||||
share/dd2/efx1.wav
|
||||
share/dd2/efx2.wav
|
||||
share/dd2/efx3.wav
|
||||
share/dd2/efx4.wav
|
||||
share/dd2/efx5.wav
|
||||
share/dd2/efx6.wav
|
||||
share/dd2/efx7.wav
|
||||
share/dd2/efx8.wav
|
||||
share/dd2/game.act
|
||||
share/dd2/gfx.bmp
|
||||
share/doc/dd2/
|
||||
share/doc/dd2/AUTHORS
|
||||
share/doc/dd2/COPYING
|
||||
share/doc/dd2/ChangeLog
|
||||
share/doc/dd2/NEWS
|
||||
share/doc/dd2/README
|
||||
share/doc/dd2/TODO
|
||||
share/examples/dd2/
|
||||
share/examples/dd2/dd2-hiscore
|
||||
@mode g+w
|
||||
@group games
|
||||
@sample /var/games/dd2-hiscore
|
||||
@mode
|
||||
@group
|
Loading…
x
Reference in New Issue
Block a user