ports/69102: New port: games/dodgindiamond2, an old school shoot'em up game
Jean-Yves Lefort
jylefort at brutele.be
Thu Jul 15 14:50:17 UTC 2004
>Number: 69102
>Category: ports
>Synopsis: New port: games/dodgindiamond2, an old school shoot'em up game
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 15 14:50:17 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Jean-Yves Lefort
>Release: FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Thu Jul 1 14:25:43 CEST 2004 jylefort at jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# dodgindiamond2
# dodgindiamond2/pkg-plist
# dodgindiamond2/pkg-descr
# dodgindiamond2/distinfo
# dodgindiamond2/Makefile
# dodgindiamond2/files
# dodgindiamond2/files/patch-src::main.c
# dodgindiamond2/files/patch-src::data::Makefile.in
# dodgindiamond2/files/patch-src::Makefile.in
#
echo c - dodgindiamond2
mkdir -p dodgindiamond2 > /dev/null 2>&1
echo x - dodgindiamond2/pkg-plist
sed 's/^X//' >dodgindiamond2/pkg-plist << 'END-of-dodgindiamond2/pkg-plist'
Xbin/dd2
X at unexec if cmp -s %D/etc/dd2.cfg %D/etc/dd2.cfg.sample; then rm -f %D/etc/dd2.cfg; fi
Xetc/dd2.cfg.sample
X at exec if test ! -f %D/etc/dd2.cfg; then cp -p %D/etc/dd2.cfg.sample %D/etc/dd2.cfg; fi
Xshare/dd2/bgm1.xm
Xshare/dd2/bgm2.xm
Xshare/dd2/efx1.wav
Xshare/dd2/efx2.wav
Xshare/dd2/efx3.wav
Xshare/dd2/efx4.wav
Xshare/dd2/efx5.wav
Xshare/dd2/efx6.wav
Xshare/dd2/efx7.wav
Xshare/dd2/efx8.wav
Xshare/dd2/game.act
Xshare/dd2/gfx.bmp
X%%PORTDOCS%%share/doc/dd2/AUTHORS
X%%PORTDOCS%%share/doc/dd2/ChangeLog
X%%PORTDOCS%%share/doc/dd2/NEWS
X%%PORTDOCS%%share/doc/dd2/README
X%%PORTDOCS%%share/doc/dd2/TODO
X at dirrm share/dd2
X%%PORTDOCS%%@dirrm share/doc/dd2
END-of-dodgindiamond2/pkg-plist
echo x - dodgindiamond2/pkg-descr
sed 's/^X//' >dodgindiamond2/pkg-descr << 'END-of-dodgindiamond2/pkg-descr'
XThis is a little shot'em up arcade game for one or two players. It
Xaims to be an 'old school' arcade game with low resolution graphics,
Xtop-down scroll action, energy based gameplay and different weapons
Xwith several levels of power.
X
XWWW: http://www.usebox.net/jjm/dd2/
X
X- Jean-Yves Lefort
Xjylefort at brutele.be
END-of-dodgindiamond2/pkg-descr
echo x - dodgindiamond2/distinfo
sed 's/^X//' >dodgindiamond2/distinfo << 'END-of-dodgindiamond2/distinfo'
XMD5 (dd2-0.2.1.tar.gz) = fe713b8393e05ee6417108db968f34ac
XSIZE (dd2-0.2.1.tar.gz) = 286998
END-of-dodgindiamond2/distinfo
echo x - dodgindiamond2/Makefile
sed 's/^X//' >dodgindiamond2/Makefile << 'END-of-dodgindiamond2/Makefile'
X# New ports collection makefile for: Dodgin' Diamond 2
X# Date created: 15 Jul 2004
X# Whom: Jean-Yves Lefort <jylefort at brutele.be>
X#
X# $FreeBSD$
X#
X
XPORTNAME= dodgindiamond2
XPORTVERSION= 0.2.1
XCATEGORIES= audio www
XMASTER_SITES= http://www.usebox.net/jjm/dd2/releases/
XDISTNAME= dd2-${PORTVERSION}
X
XMAINTAINER= jylefort at brutele.be
XCOMMENT= An old school shoot'em up game
X
XUSE_X_PREFIX= yes
XUSE_SDL= sdl image
XGNU_CONFIGURE= yes
XUSE_REINPLACE= yes
XCONFIGURE_ARGS= --localstatedir=/var/games
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|COPYING||g' ${WRKSRC}/Makefile.in
X.if defined(NOPORTDOCS)
X @${REINPLACE_CMD} -e 's|^docs_DATA = .*|docs_DATA =|' ${WRKSRC}/Makefile.in
X.endif
X
Xpost-install:
X ${MKDIR} ${PREFIX}/etc
X ${INSTALL_DATA} ${WRKSRC}/src/data/dd2.cfg ${PREFIX}/etc/dd2.cfg.sample
X.if !exists(${PREFIX}/etc/dd2.cfg)
X ${INSTALL_DATA} ${WRKSRC}/src/data/dd2.cfg ${PREFIX}/etc
X.endif
X.if !exists(/var/games/dd2-hiscore)
X ${MKDIR} /var/games
X ${INSTALL} -g games -m 664 ${WRKSRC}/src/data/dd2-hiscore /var/games
X.endif
X ${CHGRP} games ${PREFIX}/bin/dd2
X ${CHMOD} g+s ${PREFIX}/bin/dd2
X
X.include <bsd.port.mk>
END-of-dodgindiamond2/Makefile
echo c - dodgindiamond2/files
mkdir -p dodgindiamond2/files > /dev/null 2>&1
echo x - dodgindiamond2/files/patch-src::main.c
sed 's/^X//' >dodgindiamond2/files/patch-src::main.c << 'END-of-dodgindiamond2/files/patch-src::main.c'
X--- src/main.c.orig Thu Jul 15 15:04:36 2004
X+++ src/main.c Thu Jul 15 15:17:57 2004
X@@ -284,7 +284,7 @@
X sprintf(buffer,"%.500s/.dd2rc",getenv("HOME"));
X if(!loadCFG(buffer,&conf)) {
X /* if there's no local, use global */
X- sprintf(buffer,"%s/dd2.cfg",DD2_DATA);
X+ sprintf(buffer,"%s/dd2.cfg",SYSCONFDIR);
X if(!loadCFG(buffer,&conf))
X fprintf(stderr,"unable to read configuration, using defaults\n");
X }
X@@ -295,7 +295,7 @@
X #endif
X
X /* read hi-scores */
X- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA);
X+ sprintf(buffer,"%s/dd2-hiscore",LOCALSTATEDIR);
X if(!loadScore(buffer,hiscore))
X fprintf(stderr,"unable to read hi-scores, using defaults\n");
X
X@@ -462,7 +462,7 @@
X saveCFG(buffer,&conf);
X
X /* save hi-scores */
X- sprintf(buffer,"%s/dd2-hiscore",DD2_DATA);
X+ sprintf(buffer,"%s/dd2-hiscore",LOCALSTATEDIR);
X if(!saveScore(buffer,hiscore))
X fprintf(stderr,"unable to save hi-scores\ndo you have permissions to write into %s?\n"
X ,buffer);
END-of-dodgindiamond2/files/patch-src::main.c
echo x - dodgindiamond2/files/patch-src::data::Makefile.in
sed 's/^X//' >dodgindiamond2/files/patch-src::data::Makefile.in << 'END-of-dodgindiamond2/files/patch-src::data::Makefile.in'
X--- src/data/Makefile.in.orig Fri Jul 2 17:43:12 2004
X+++ src/data/Makefile.in Thu Jul 15 15:28:35 2004
X@@ -65,7 +65,7 @@
X SDL_LIBS = @SDL_LIBS@
X VERSION = @VERSION@
X
X-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
X+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
X
X 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
X
X@@ -192,7 +192,6 @@
X
X
X install-data-hook:
X- chmod a+rw $(pkgdatadir)/dd2-hiscore
X
X # Tell versions [3.59,3.63) of GNU make to not export all variables.
X # Otherwise a system limit (for SysV at least) may be exceeded.
END-of-dodgindiamond2/files/patch-src::data::Makefile.in
echo x - dodgindiamond2/files/patch-src::Makefile.in
sed 's/^X//' >dodgindiamond2/files/patch-src::Makefile.in << 'END-of-dodgindiamond2/files/patch-src::Makefile.in'
X--- src/Makefile.in.orig Thu Jul 15 15:23:01 2004
X+++ src/Makefile.in Thu Jul 15 15:23:41 2004
X@@ -73,7 +73,7 @@
X 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
X 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
X
X-AM_CFLAGS = -DDD2_DATA=\"$(pkgdatadir)\" -Wall
X+AM_CFLAGS = -DDD2_DATA=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -Wall
X mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
X CONFIG_CLEAN_FILES =
X PROGRAMS = $(bin_PROGRAMS)
END-of-dodgindiamond2/files/patch-src::Makefile.in
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list