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/angband-tty | |
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/angband-tty')
-rw-r--r-- | games/angband-tty/Makefile | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/games/angband-tty/Makefile b/games/angband-tty/Makefile index a2bb822c71e..b1e0dc4c4f6 100644 --- a/games/angband-tty/Makefile +++ b/games/angband-tty/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.31 2008/01/19 09:16:20 wiz Exp $ +# $NetBSD: Makefile,v 1.32 2008/03/04 06:59:03 jlam Exp $ # DISTNAME= angband-283 PKGNAME= angband-tty-2.8.3 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= games MASTER_SITES= ftp://export.andrew.cmu.edu/angband/Source/ \ ftp://ftp.greyhelm.com/pub/Games/Angband/Angband-2.7.x/Source/ @@ -15,6 +15,8 @@ COMMENT= Tolkien based variant of Moria for tty/console displays CONFLICTS= angband-x11-[0-9]* +PKG_DESTDIR_SUPPORT= destdir + WRKSRC= ${WRKDIR}/${DISTNAME}/src EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAKE_FILE= Makefile.std @@ -26,16 +28,22 @@ SPOILERFILE= angband-spoilers.tar.gz GCC_REQD+= 2.95.3 .endif +SETGIDGAME= yes +SPECIAL_PERMS= bin/angband ${SETGID_GAMES_PERMS} + INSTALLATION_DIRS= bin do-install: - ${INSTALL} -d -o bin -g games -m 0775 ${PREFIX}/share/angband - cd ${WRKDIR}/${DISTNAME}/lib && ${PAX} -wr * ${PREFIX}/share/angband - cd ${PREFIX}/share/angband/help && \ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/angband + cd ${WRKDIR}/${DISTNAME}/lib && ${PAX} -wr * \ + ${DESTDIR}${PREFIX}/share/angband + cd ${DESTDIR}${PREFIX}/share/angband/help && \ ${PAX} -O -zrf ${DISTDIR}/${SPOILERFILE} - ${CHOWN} -R ${GAMEOWN}:${GAMEGRP} ${PREFIX}/share/angband - cd ${PREFIX}/share/angband && ${CHMOD} ${GAMEDATAMODE} */* - cd ${PREFIX}/share/angband && ${CHMOD} ${GAMEDIRMODE} apex bone data edit file help info save user xtra - ${INSTALL_GAME} ${WRKSRC}/angband ${PREFIX}/bin + ${CHOWN} -R ${GAMEOWN}:${GAMEGRP} ${DESTDIR}${PREFIX}/share/angband + cd ${DESTDIR}${PREFIX}/share/angband && \ + ${CHMOD} ${GAMEDATAMODE} */* + cd ${DESTDIR}${PREFIX}/share/angband && \ + ${CHMOD} ${GAMEDIRMODE} apex bone data edit file help info save user xtra + ${INSTALL_PROGRAM} ${WRKSRC}/angband ${DESTDIR}${PREFIX}/bin .include "../../mk/bsd.pkg.mk" |