diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 06:59:03 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 06:59:03 +0000 |
commit | 0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch) | |
tree | 85dcef76c01a75047f6f6e519e34539fa17ae348 /games/xscrabble | |
parent | 4e56d99acab2b215405ccc900e56d697c30ae727 (diff) | |
download | pkgsrc-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/xscrabble')
-rw-r--r-- | games/xscrabble/Makefile | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/games/xscrabble/Makefile b/games/xscrabble/Makefile index 41c4fbf101b..fb9509d70c9 100644 --- a/games/xscrabble/Makefile +++ b/games/xscrabble/Makefile @@ -1,14 +1,16 @@ -# $NetBSD: Makefile,v 1.20 2006/12/27 13:37:37 joerg Exp $ +# $NetBSD: Makefile,v 1.21 2008/03/04 06:59:06 jlam Exp $ # DISTNAME= xscrabble-1.0 -PKGREVISION= 4 +PKGREVISION= 5 CATEGORIES= games x11 MASTER_SITES= ${MASTER_SITE_LOCAL} MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= X version of the popular board game, for 1 to 4 players +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/xscrabble USE_IMAKE= YES @@ -22,18 +24,24 @@ SUBST_SED.xscrabble+= -e 's,/usr/local/lib,${PREFIX}/share/games/xscrabble,g' MAKE_DIRS= ${VARBASE}/games EGDIR= ${PREFIX}/share/games/xscrabble -CONF_FILES_PERMS= ${EGDIR}/xscrabble.scores.dist ${VARBASE}/games/xscrabble.scores ${GAMEOWN} ${GAMEGRP} ${GAMEDATAMODE} + SETGIDGAME= yes +CONF_FILES_PERMS= ${EGDIR}/xscrabble.scores.dist \ + ${VARBASE}/games/xscrabble.scores \ + ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} +SPECIAL_PERMS= bin/xscrab ${SETGID_GAMES_PERMS} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${PREFIX}/bin - ${INSTALL_GAME} ${WRKSRC}/src/xscrab ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/games - ${INSTALL_DATA_DIR} ${PREFIX}/share/games/xscrabble - ${INSTALL_DATA} ${WRKSRC}/OSPD3.gz ${EGDIR}/ - ${INSTALL_DATA} ${WRKSRC}/scrabble_permutations ${EGDIR}/ - ${INSTALL_DATA} ${WRKSRC}/xscrabble.scores ${EGDIR}/xscrabble.scores.dist - ${INSTALL_DATA} ${WRKSRC}/XScrabble.ad ${PREFIX}/lib/X11/app-defaults/XScrabble + ${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/xscrab ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games/xscrabble + ${INSTALL_DATA} ${WRKSRC}/OSPD3.gz ${DESTDIR}${EGDIR}/ + ${INSTALL_DATA} ${WRKSRC}/scrabble_permutations ${DESTDIR}${EGDIR}/ + ${INSTALL_DATA} ${WRKSRC}/xscrabble.scores \ + ${DESTDIR}${EGDIR}/xscrabble.scores.dist + ${INSTALL_DATA} ${WRKSRC}/XScrabble.ad \ + ${DESTDIR}${PREFIX}/lib/X11/app-defaults/XScrabble .include "../../x11/libXaw/buildlink3.mk" .include "../../x11/libXpm/buildlink3.mk" |