summaryrefslogtreecommitdiff
path: root/devel/p4-docs
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/p4-docs
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/p4-docs')
-rw-r--r--devel/p4-docs/Makefile9
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"