summaryrefslogtreecommitdiff
path: root/games/cmatrix
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/cmatrix
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/cmatrix')
-rw-r--r--games/cmatrix/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/games/cmatrix/Makefile b/games/cmatrix/Makefile
index 341d1c87f00..7bc13d7f384 100644
--- a/games/cmatrix/Makefile
+++ b/games/cmatrix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/01/07 09:13:54 rillig Exp $
+# $NetBSD: Makefile,v 1.7 2008/03/04 06:59:03 jlam Exp $
#
DISTNAME= cmatrix-1.2a
@@ -9,14 +9,18 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.asty.org/cmatrix/
COMMENT= Make your console feel like Nadbuchonazor's bridge
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cmatrix ${PREFIX}/bin/cmatrix
- ${INSTALL_MAN} ${WRKSRC}/cmatrix.1 ${PREFIX}/${PKGMANDIR}/man1/cmatrix.1
- ${INSTALL_DATA_DIR} ${PREFIX}/share/cmatrix
- ${INSTALL_DATA} ${WRKSRC}/mtx.pcf ${PREFIX}/share/cmatrix/mtx.pcf
+ ${INSTALL_PROGRAM} ${WRKSRC}/cmatrix ${DESTDIR}${PREFIX}/bin/cmatrix
+ ${INSTALL_MAN} ${WRKSRC}/cmatrix.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/cmatrix.1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/cmatrix
+ ${INSTALL_DATA} ${WRKSRC}/mtx.pcf \
+ ${DESTDIR}${PREFIX}/share/cmatrix/mtx.pcf
.include "../../mk/bsd.pkg.mk"