summaryrefslogtreecommitdiff
path: root/devel/boost-docs
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2008-02-05 22:59:05 +0000
committerheinz <heinz@pkgsrc.org>2008-02-05 22:59:05 +0000
commitfdf62217db3457c4814e15f4245e5d6f215fa480 (patch)
treed6a80c1d519bf33ceca81e3a9a818e525958511e /devel/boost-docs
parentc7a22b4ae9cdb023c63c579233da26db01073da2 (diff)
downloadpkgsrc-fdf62217db3457c4814e15f4245e5d6f215fa480.tar.gz
Added support for installation to DESTDIR.
Diffstat (limited to 'devel/boost-docs')
-rw-r--r--devel/boost-docs/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/devel/boost-docs/Makefile b/devel/boost-docs/Makefile
index d85efb51022..7db1a0aeaa6 100644
--- a/devel/boost-docs/Makefile
+++ b/devel/boost-docs/Makefile
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.4 2008/02/05 22:58:00 heinz Exp $
+# $NetBSD: Makefile,v 1.5 2008/02/05 22:59:05 heinz Exp $
#
BOOST_PACKAGE= docs
BOOST_COMMENT= (documentation)
BOOST_CONFIG= no
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../meta-pkgs/boost/Makefile.common"
DOCDIR= ${PREFIX}/share/doc/boost
@@ -12,17 +14,17 @@ DOCDIR= ${PREFIX}/share/doc/boost
NO_BUILD= yes
do-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
cd ${WRKSRC} && ${PAX} -rw -pm \
-s':^.*/build$$::' \
-s':^.*/build/.*$$::' \
-s':^libs/.*/test$$::' \
-s':^libs/.*/test/.*$$::' \
-s':^.*\.orig$$::' \
- *.png *.css *.htm libs more ${DOCDIR}
- ${FIND} ${DOCDIR} \
+ *.png *.css *.htm libs more ${DESTDIR}${DOCDIR}
+ ${FIND} ${DESTDIR}${DOCDIR} \
-type f -print | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
- ${FIND} ${DOCDIR} \
+ ${FIND} ${DESTDIR}${DOCDIR} \
-type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
.include "../../mk/bsd.pkg.mk"