summaryrefslogtreecommitdiff
path: root/devel/p4pr
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
commit4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/p4pr
parent3a62565eb9471348d02d74145e302b5675905a43 (diff)
downloadpkgsrc-4c8382aec039aefeebaf1aaac5cd7985337ed917.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/p4pr')
-rw-r--r--devel/p4pr/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/p4pr/Makefile b/devel/p4pr/Makefile
index d64842ea589..b1761b499e4 100644
--- a/devel/p4pr/Makefile
+++ b/devel/p4pr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/02/17 20:59:49 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2008/03/03 17:45:36 jlam Exp $
#
DISTNAME= p4pr
@@ -12,6 +12,8 @@ COMMENT= Perforce file annotation with change, revision, and branch
DEPENDS+= p4-[0-9]*:../../devel/p4
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
EXTRACT_ONLY= # none
NO_BUILD= yes
@@ -24,6 +26,7 @@ post-extract:
${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${DISTFILES} ${PREFIX}/bin/${DISTNAME}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${DISTFILES} \
+ ${DESTDIR}${PREFIX}/bin/${DISTNAME}
.include "../../mk/bsd.pkg.mk"