summaryrefslogtreecommitdiff
path: root/games/battalion
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
commit29d85ddd6a393a4bfaf03a504f8916a55cec3687 (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/battalion
parent38dd76219d21c71b412129d8960dd0c0b88a92b8 (diff)
downloadpkgsrc-29d85ddd6a393a4bfaf03a504f8916a55cec3687.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/battalion')
-rw-r--r--games/battalion/Makefile38
1 files changed, 22 insertions, 16 deletions
diff --git a/games/battalion/Makefile b/games/battalion/Makefile
index a3ae4d71162..5faa98a12c9 100644
--- a/games/battalion/Makefile
+++ b/games/battalion/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.38 2008/01/19 09:16:20 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2008/03/04 06:59:03 jlam Exp $
DISTNAME= battalion
PKGNAME= battalion-1.4
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= games x11
MASTER_SITES= http://www.evl.uic.edu/aej/BATTALION/
DISTFILES= battalionSource1.4.tar.Z battalionSUN4.tar.gz
@@ -13,6 +13,8 @@ COMMENT= Virtual reality 3D GL game for X11
NOT_FOR_PLATFORM= *-*-alpha # relies on Mesa (gcc)
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/battalionSource
EXTRACT_ONLY= battalionSource1.4.tar.Z
USE_TOOLS+= gtar
@@ -23,25 +25,29 @@ USE_TOOLS+= gtar
MAKE_ENV+= LIBFLAGS=-lcompat
.endif
+SETGIDGAME= yes
+SPECIAL_PERMS+= bin/battalion ${SETGID_GAMES_PERMS}
+CONF_FILES_PERMS= /dev/null /var/games/battalion_hiscore \
+ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
+
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
do-install:
- ${INSTALL} -c -s -o ${ROOT_USER} -g games -m 2755 ${WRKSRC}/battalion ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/battalion $${DESTDIR}{PREFIX}/bin
cd ${WRKDIR} && \
${GZCAT} ${DISTDIR}/battalionSUN4.tar.gz | ${GTAR} xmf -
- ${INSTALL_DATA_DIR} ${PREFIX}/share/battalion/HELP
- ${INSTALL_DATA_DIR} ${PREFIX}/share/battalion/battalion.data/DATA
- ${INSTALL_DATA_DIR} ${PREFIX}/share/battalion/battalion.data/MUSIC
- ${INSTALL_DATA_DIR} ${PREFIX}/share/battalion/battalion.data/SOUNDS
- ${INSTALL_DATA_DIR} ${PREFIX}/share/battalion/battalion.data/TEXTURES
- ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/DATA/* ${PREFIX}/share/battalion/battalion.data/DATA
- ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/MUSIC/* ${PREFIX}/share/battalion/battalion.data/MUSIC
- ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/SOUNDS/* ${PREFIX}/share/battalion/battalion.data/SOUNDS
- ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/TEXTURES/* ${PREFIX}/share/battalion/battalion.data/TEXTURES
- ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho ${PREFIX}/share/battalion/battalion.data
- ${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man ${PREFIX}/${PKGMANDIR}/man6/battalion.6
- ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/* ${PREFIX}/share/battalion/HELP
- ${INSTALL} -o bin -g games -m 664 /dev/null /var/games/battalion_hiscore
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/HELP
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/DATA
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/MUSIC
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/SOUNDS
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/TEXTURES
+ ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/DATA/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/DATA
+ ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/MUSIC/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/MUSIC
+ ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/SOUNDS/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/SOUNDS
+ ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/TEXTURES/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/TEXTURES
+ ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho ${DESTDIR}${PREFIX}/share/battalion/battalion.data
+ ${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/battalion.6
+ ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/* ${DESTDIR}${PREFIX}/share/battalion/HELP
pre-clean:
@${RM} -rf ${WRKDIR}/battalionSUN4