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/p4-docs | |
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/p4-docs')
-rw-r--r-- | devel/p4-docs/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/devel/p4-docs/Makefile b/devel/p4-docs/Makefile index b1a2ebdc2cd..dcfe67fc02e 100644 --- a/devel/p4-docs/Makefile +++ b/devel/p4-docs/Makefile @@ -1,9 +1,11 @@ -# $NetBSD: Makefile,v 1.10 2007/03/15 07:14:27 schmonz Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/03 17:45:36 jlam Exp $ # DISTNAME= p4-docs COMMENT= Perforce SCM documentation +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../devel/p4/Makefile.common" # override, since the docs have changed at least once more often @@ -39,11 +41,12 @@ PLIST_SUBST+= DOCDIR=${DOCDIR:Q} INSTALLATION_DIRS= ${DOCDIR} ${PKGMANDIR}/man1 do-install: - ${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/*.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/*.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 cd ${WRKSRC}; \ for f in *.html *.pdf *.txt; do \ - ${INSTALL_DATA} $${f} ${PREFIX}/${DOCDIR}; \ + ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/${DOCDIR}; \ done .include "../../mk/bsd.pkg.mk" |