summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-06-14 02:58:24 +0000
committerobache <obache@pkgsrc.org>2008-06-14 02:58:24 +0000
commit3ed2699c53d1ea8590150b8f1698718b5aaa7672 (patch)
tree0e106cd42915295efb830ef2edfcc859f8139648 /games
parent1f22c9e4f6b48cf2ba76666494df2b8fe8de3566 (diff)
downloadpkgsrc-3ed2699c53d1ea8590150b8f1698718b5aaa7672.tar.gz
Update dd2 to 0.2.2.
This release only involves license changes. - GPL v2 or later, for LGPLv3 compatibility While here, * add DESTDIR support * Put score file in ${VARBASE} and use SETGIDGAME. fix PR 38907.
Diffstat (limited to 'games')
-rw-r--r--games/dd2/Makefile20
-rw-r--r--games/dd2/distinfo10
-rw-r--r--games/dd2/patches/patch-aa12
-rw-r--r--games/dd2/patches/patch-ab22
4 files changed, 57 insertions, 7 deletions
diff --git a/games/dd2/Makefile b/games/dd2/Makefile
index 2d4dc8fd8c5..dcebb51f046 100644
--- a/games/dd2/Makefile
+++ b/games/dd2/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2006/06/12 16:28:08 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2008/06/14 02:58:24 obache Exp $
#
-DISTNAME= dd2-0.2.1
-PKGREVISION= 5
+DISTNAME= dd2-0.2.2
CATEGORIES= games
MASTER_SITES= http://www.usebox.net/jjm/dd2/releases/
@@ -10,8 +9,23 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.usebox.net/jjm/dd2/
COMMENT= Shoot'em up arcade game for one or two players
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
+DD2_SCORE= ${VARBASE}/games
+CFLAGS+= -DDD2_SCORE=\"${DD2_SCORE}\"
+
+SETGIDGAME= yes
+SPECIAL_PERMS= bin/dd2 ${SETGID_GAMES_PERMS}
+REQD_DIRS_PERMS+= ${DD2_SCORE} ${GAMEOWN} ${GAMEGRP} ${GAMEDIRMODE}
+REQD_FILES_PERMS+= share/dd2/dd2-hiscore ${DD2_SCORE}/dd2-hiscore \
+ ${GAMEOWN} ${GAMEGRP} ${GAMEDATAMODE}
+
+BUILD_DEFS+= VARBASE
+BUILD_DEFS+= GAMEDATAMODE
+BUILD_DEFS+= GAMEMODE
+
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/games/dd2/distinfo b/games/dd2/distinfo
index e9dd81d6260..a89de43825e 100644
--- a/games/dd2/distinfo
+++ b/games/dd2/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/02/23 23:11:56 agc Exp $
+$NetBSD: distinfo,v 1.3 2008/06/14 02:58:24 obache Exp $
-SHA1 (dd2-0.2.1.tar.gz) = ae87caa53a4314a1e304cfa0940a9619dd91ed79
-RMD160 (dd2-0.2.1.tar.gz) = 20ffa3a1e2841a48300a8624b63ff2878ac77a97
-Size (dd2-0.2.1.tar.gz) = 286998 bytes
+SHA1 (dd2-0.2.2.tar.gz) = e6a1292b25f2bd1817898fec301973a4e2349549
+RMD160 (dd2-0.2.2.tar.gz) = df4573dd04916d0f038cc6472206337eeb2fff58
+Size (dd2-0.2.2.tar.gz) = 293812 bytes
+SHA1 (patch-aa) = 21c24523fe56278bf3bd1aa0ba48c136344ff3c4
+SHA1 (patch-ab) = e58897a9d5d8d63fc99bb1337208752a377b3ddf
diff --git a/games/dd2/patches/patch-aa b/games/dd2/patches/patch-aa
new file mode 100644
index 00000000000..240b25e4d71
--- /dev/null
+++ b/games/dd2/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1 2008/06/14 02:58:24 obache Exp $
+
+--- src/data/Makefile.in.orig 2007-08-16 17:11:33.000000000 +0000
++++ src/data/Makefile.in
+@@ -197,7 +197,6 @@ maintainer-clean-generic clean mostlycle
+
+
+ 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/dd2/patches/patch-ab b/games/dd2/patches/patch-ab
new file mode 100644
index 00000000000..24f04bf7997
--- /dev/null
+++ b/games/dd2/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2008/06/14 02:58:24 obache Exp $
+
+--- src/main.c.orig 2007-08-14 18:59:42.000000000 +0000
++++ src/main.c
+@@ -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);