summaryrefslogtreecommitdiff
path: root/games/0verkill
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/0verkill
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/0verkill')
-rw-r--r--games/0verkill/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/games/0verkill/Makefile b/games/0verkill/Makefile
index 5413391f911..905b6e80758 100644
--- a/games/0verkill/Makefile
+++ b/games/0verkill/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2006/09/07 05:39:37 adam Exp $
+# $NetBSD: Makefile,v 1.6 2008/03/04 06:59:03 jlam Exp $
DISTNAME= 0verkill-0.16
CATEGORIES= games
@@ -9,6 +9,8 @@ MAINTAINER= zuntum@NetBSD.org
HOMEPAGE= http://artax.karlin.mff.cuni.cz/~brain/0verkill/
COMMENT= 0verkill is bloody 2D action deathmatch-like game in ASCII-ART
+PKG_DESTDIR_SUPPORT= user-destdir
+
HAS_CONFIGURE= yes
INSTALLATION_DIRS= bin share/0verkill share/doc/0verkill
@@ -27,13 +29,13 @@ SUBST_FILES.prefix= cfg.h
SUBST_SED.prefix= -e "s|@PREFIX@|${PREFIX}|g"
do-install:
- cd ${WRKSRC} && ${INSTALL_PROGRAM} 0verkill ${PREFIX}/bin
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} 0verkill ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC} && for f in avi bot editor server test_server; do \
- ${INSTALL_PROGRAM} $$f ${PREFIX}/bin/0verkill-$$f; \
+ ${INSTALL_PROGRAM} $$f ${DESTDIR}${PREFIX}/bin/0verkill-$$f; \
done
- ${INSTALL_DATA} ${WRKSRC}/data/* ${PREFIX}/share/0verkill/data
- ${INSTALL_DATA} ${WRKSRC}/grx/* ${PREFIX}/share/0verkill/grx
+ ${INSTALL_DATA} ${WRKSRC}/data/* ${DESTDIR}${PREFIX}/share/0verkill/data
+ ${INSTALL_DATA} ${WRKSRC}/grx/* ${DESTDIR}${PREFIX}/share/0verkill/grx
cd ${WRKSRC}/doc && ${INSTALL_DATA} AUTHORS README.html avi.txt \
- bot.txt doc.html ${PREFIX}/share/doc/0verkill
+ bot.txt doc.html ${DESTDIR}${PREFIX}/share/doc/0verkill
.include "../../mk/bsd.pkg.mk"