diff options
Diffstat (limited to 'games/dodgindiamond2')
-rw-r--r-- | games/dodgindiamond2/Makefile | 42 | ||||
-rw-r--r-- | games/dodgindiamond2/distinfo | 2 | ||||
-rw-r--r-- | games/dodgindiamond2/files/patch-src::Makefile.in | 11 | ||||
-rw-r--r-- | games/dodgindiamond2/files/patch-src::data::Makefile.in | 19 | ||||
-rw-r--r-- | games/dodgindiamond2/files/patch-src::main.c | 29 | ||||
-rw-r--r-- | games/dodgindiamond2/pkg-descr | 9 | ||||
-rw-r--r-- | games/dodgindiamond2/pkg-plist | 23 |
7 files changed, 135 insertions, 0 deletions
diff --git a/games/dodgindiamond2/Makefile b/games/dodgindiamond2/Makefile new file mode 100644 index 000000000000..cd1ef6185bf5 --- /dev/null +++ b/games/dodgindiamond2/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: Dodgin' Diamond 2 +# Date created: 15 Jul 2004 +# Whom: Jean-Yves Lefort <jylefort@brutele.be> +# +# $FreeBSD$ +# + +PORTNAME= dodgindiamond2 +PORTVERSION= 0.2.1 +CATEGORIES= games +MASTER_SITES= http://www.usebox.net/jjm/dd2/releases/ +DISTNAME= dd2-${PORTVERSION} + +MAINTAINER= jylefort@brutele.be +COMMENT= An old school shoot'em up game + +USE_X_PREFIX= yes +USE_SDL= sdl image mixer +GNU_CONFIGURE= yes +USE_REINPLACE= yes +CONFIGURE_ARGS= --localstatedir=/var/games + +post-patch: + @${REINPLACE_CMD} -e 's|COPYING||g' ${WRKSRC}/Makefile.in +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -e 's|^docs_DATA = .*|docs_DATA =|' ${WRKSRC}/Makefile.in +.endif + +post-install: + ${MKDIR} ${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/src/data/dd2.cfg ${PREFIX}/etc/dd2.cfg.sample +.if !exists(${PREFIX}/etc/dd2.cfg) + ${INSTALL_DATA} ${WRKSRC}/src/data/dd2.cfg ${PREFIX}/etc +.endif +.if !exists(/var/games/dd2-hiscore) + ${MKDIR} /var/games + ${INSTALL} -g games -m 664 ${WRKSRC}/src/data/dd2-hiscore /var/games +.endif + ${CHGRP} games ${PREFIX}/bin/dd2 + ${CHMOD} g+s ${PREFIX}/bin/dd2 + +.include <bsd.port.mk> diff --git a/games/dodgindiamond2/distinfo b/games/dodgindiamond2/distinfo new file mode 100644 index 000000000000..4d220eeedfb4 --- /dev/null +++ b/games/dodgindiamond2/distinfo @@ -0,0 +1,2 @@ +MD5 (dd2-0.2.1.tar.gz) = fe713b8393e05ee6417108db968f34ac +SIZE (dd2-0.2.1.tar.gz) = 286998 diff --git a/games/dodgindiamond2/files/patch-src::Makefile.in b/games/dodgindiamond2/files/patch-src::Makefile.in new file mode 100644 index 000000000000..f0b924eeede9 --- /dev/null +++ b/games/dodgindiamond2/files/patch-src::Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Thu Jul 15 15:23:01 2004 ++++ src/Makefile.in Thu Jul 15 15:23:41 2004 +@@ -73,7 +73,7 @@ + dd2_SOURCES = menu.c SDL_plus.c cfg.c engine.c control.c engine.h control.h cfg.h SDL_plus.h menu.h main.c main.h + EXTRA_DIST = menu.c SDL_plus.c cfg.c engine.c control.c engine.h control.h cfg.h SDL_plus.h menu.h main.c main.h + +-AM_CFLAGS = -DDD2_DATA=\"$(pkgdatadir)\" -Wall ++AM_CFLAGS = -DDD2_DATA=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -Wall + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_CLEAN_FILES = + PROGRAMS = $(bin_PROGRAMS) diff --git a/games/dodgindiamond2/files/patch-src::data::Makefile.in b/games/dodgindiamond2/files/patch-src::data::Makefile.in new file mode 100644 index 000000000000..54a315bc23ec --- /dev/null +++ b/games/dodgindiamond2/files/patch-src::data::Makefile.in @@ -0,0 +1,19 @@ +--- src/data/Makefile.in.orig Fri Jul 2 17:43:12 2004 ++++ src/data/Makefile.in Thu Jul 15 15:28:35 2004 +@@ -65,7 +65,7 @@ + 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 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 + +@@ -192,7 +192,6 @@ + + + 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. diff --git a/games/dodgindiamond2/files/patch-src::main.c b/games/dodgindiamond2/files/patch-src::main.c new file mode 100644 index 000000000000..ad1f4590b3a8 --- /dev/null +++ b/games/dodgindiamond2/files/patch-src::main.c @@ -0,0 +1,29 @@ +--- src/main.c.orig Thu Jul 15 15:04:36 2004 ++++ src/main.c Thu Jul 15 15:17:57 2004 +@@ -284,7 +284,7 @@ + sprintf(buffer,"%.500s/.dd2rc",getenv("HOME")); + if(!loadCFG(buffer,&conf)) { + /* if there's no local, use global */ +- sprintf(buffer,"%s/dd2.cfg",DD2_DATA); ++ sprintf(buffer,"%s/dd2.cfg",SYSCONFDIR); + if(!loadCFG(buffer,&conf)) + fprintf(stderr,"unable to read configuration, using defaults\n"); + } +@@ -295,7 +295,7 @@ + #endif + + /* read hi-scores */ +- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA); ++ sprintf(buffer,"%s/dd2-hiscore",LOCALSTATEDIR); + if(!loadScore(buffer,hiscore)) + fprintf(stderr,"unable to read hi-scores, using defaults\n"); + +@@ -462,7 +462,7 @@ + saveCFG(buffer,&conf); + + /* save hi-scores */ +- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA); ++ sprintf(buffer,"%s/dd2-hiscore",LOCALSTATEDIR); + if(!saveScore(buffer,hiscore)) + fprintf(stderr,"unable to save hi-scores\ndo you have permissions to write into %s?\n" + ,buffer); diff --git a/games/dodgindiamond2/pkg-descr b/games/dodgindiamond2/pkg-descr new file mode 100644 index 000000000000..22b62e41b1d4 --- /dev/null +++ b/games/dodgindiamond2/pkg-descr @@ -0,0 +1,9 @@ +This is a little shot'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. + +WWW: http://www.usebox.net/jjm/dd2/ + +- Jean-Yves Lefort +jylefort@brutele.be diff --git a/games/dodgindiamond2/pkg-plist b/games/dodgindiamond2/pkg-plist new file mode 100644 index 000000000000..f65bba9a61f8 --- /dev/null +++ b/games/dodgindiamond2/pkg-plist @@ -0,0 +1,23 @@ +bin/dd2 +@unexec if cmp -s %D/etc/dd2.cfg %D/etc/dd2.cfg.sample; then rm -f %D/etc/dd2.cfg; fi +etc/dd2.cfg.sample +@exec if test ! -f %D/etc/dd2.cfg; then cp -p %D/etc/dd2.cfg.sample %D/etc/dd2.cfg; fi +share/dd2/bgm1.xm +share/dd2/bgm2.xm +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 +%%PORTDOCS%%share/doc/dd2/AUTHORS +%%PORTDOCS%%share/doc/dd2/ChangeLog +%%PORTDOCS%%share/doc/dd2/NEWS +%%PORTDOCS%%share/doc/dd2/README +%%PORTDOCS%%share/doc/dd2/TODO +@dirrm share/dd2 +%%PORTDOCS%%@dirrm share/doc/dd2 |