summaryrefslogtreecommitdiff
path: root/devel/c4
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit6382667881b228651106070be0587fe300bf858b (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/c4
parent2faf5f3f31238b3c0a70766d4e716138a636c86b (diff)
downloadpkgsrc-6382667881b228651106070be0587fe300bf858b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/c4')
-rw-r--r--devel/c4/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/c4/Makefile b/devel/c4/Makefile
index bdc8f198071..0168e53f7a3 100644
--- a/devel/c4/Makefile
+++ b/devel/c4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2007/02/17 20:59:47 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/03 17:45:34 jlam Exp $
#
DISTNAME= c4
@@ -11,13 +11,15 @@ COMMENT= CVS-like frontend to Perforce
DEPENDS+= p4-[0-9]*:../../devel/p4
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
BUILD_TARGET= c4
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/c4 ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/c4.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/c4 ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/c4.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"