summaryrefslogtreecommitdiff
path: root/games/dd2/Makefile
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/dd2/Makefile
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/dd2/Makefile')
-rw-r--r--games/dd2/Makefile20
1 files changed, 17 insertions, 3 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"