summaryrefslogtreecommitdiff
path: root/games/mirrormagic
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
commit0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/mirrormagic
parent4e56d99acab2b215405ccc900e56d697c30ae727 (diff)
downloadpkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/mirrormagic')
-rw-r--r--games/mirrormagic/Makefile36
1 files changed, 21 insertions, 15 deletions
diff --git a/games/mirrormagic/Makefile b/games/mirrormagic/Makefile
index 6672d6218fa..71a8ebe9509 100644
--- a/games/mirrormagic/Makefile
+++ b/games/mirrormagic/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2008/01/19 09:16:22 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2008/03/04 06:59:05 jlam Exp $
#
DISTNAME= mirrormagic-2.0.2
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games x11
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/mirrormagic/
@@ -12,38 +12,44 @@ COMMENT= Nice little puzzle game with color graphics and sound
CONFLICTS= mirrormagic-sdl-[1-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
PLIST_SRC= ${WRKDIR}/PLIST PLIST
# if you change SCORE_PATH, don't forget to change patch-aa, too
SCORE_PATH= /var/games/mirrormagic
+SETGIDGAME= yes
+OWN_DIRS_PERMS= ${SCORE_PATH} ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
+OWN_DIRS_PERMS+= ${SCORE_PATH}/scores \
+ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
+OWN_DIRS_PERMS+= ${SCORE_PATH}/scores/classic_deflektor \
+ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
+OWN_DIRS_PERMS+= ${SCORE_PATH}/scores/classic_mindbender \
+ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
+
+SPECIAL_PERMS= bin/mirrormagic ${SETGID_GAMES_PERMS}
+
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} -o bin -g games -m 2755 \
- ${WRKSRC}/mirrormagic ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mirrormagic ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/mirrormagic
cd ${WRKSRC} && ${PAX} -rw graphics levels music sounds \
${PREFIX}/share/mirrormagic/
- ${CHOWN} -R games:games ${PREFIX}/share/mirrormagic
- ${INSTALL_DATA_DIR} ${SCORE_PATH}/scores
- ${CHMOD} 755 ${SCORE_PATH}
- ${CHMOD} 775 ${SCORE_PATH}/scores
-.for directory in classic_deflektor classic_mindbender
- ${INSTALL_DATA_DIR} ${SCORE_PATH}/scores/${directory} \
- && ${CHMOD} 775 ${SCORE_PATH}/scores/${directory}
-.endfor
+
${RM} -f ${WRKDIR}/PLIST
.for levdir in Classic_Games
cd ${PREFIX} && \
- ${FIND} share/mirrormagic/levels/${levdir} -type f -print >>${WRKDIR}/PLIST
+ ${FIND} share/mirrormagic/levels/${levdir} -type f -print \
+ >>${WRKDIR}/PLIST
.endfor
.for directory in graphics music sounds
cd ${PREFIX} && \
- ${FIND} share/mirrormagic/${directory} -type f -print >>${WRKDIR}/PLIST
+ ${FIND} share/mirrormagic/${directory} -type f -print \
+ >>${WRKDIR}/PLIST
.endfor
- ${CHOWN} -R games:games ${SCORE_PATH}
BUILDLINK_DEPMETHOD.libXt?= build