diff options
author | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
commit | 7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/p4pr/Makefile | |
parent | e629efdae96bb93a089e74409a36149a86e10f81 (diff) | |
download | pkgsrc-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/p4pr/Makefile')
-rw-r--r-- | devel/p4pr/Makefile | 7 |
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" |