summaryrefslogtreecommitdiff
path: root/devel/p4
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/p4
parente629efdae96bb93a089e74409a36149a86e10f81 (diff)
downloadpkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/p4')
-rw-r--r--devel/p4/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/p4/Makefile b/devel/p4/Makefile
index a6607ad30c4..d80a2134ebc 100644
--- a/devel/p4/Makefile
+++ b/devel/p4/Makefile
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.4 2006/06/17 20:44:03 rillig Exp $
+# $NetBSD: Makefile,v 1.5 2008/03/03 17:45:36 jlam Exp $
#
DISTNAME= p4
HOMEPAGE= http://www.perforce.com/perforce/products/p4.html
COMMENT= Perforce SCM command-line client
+PKG_DESTDIR_SUPPORT= user-destdir
+
P4BINONLY= yes
.include "../../devel/p4/Makefile.common"
@@ -12,6 +14,7 @@ P4BINONLY= yes
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} \
+ ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"