pkgsrc/devel/boost-docs/Makefile
joerg 3d8ef5a52d Second round of explicit pax dependencies. As reminded by tnn@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
2008-05-26 02:13:14 +00:00

32 lines
757 B
Makefile

# $NetBSD: Makefile,v 1.6 2008/05/26 02:13:17 joerg Exp $
#
BOOST_PACKAGE= docs
BOOST_COMMENT= (documentation)
BOOST_CONFIG= no
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= pax
.include "../../meta-pkgs/boost/Makefile.common"
DOCDIR= ${PREFIX}/share/doc/boost
NO_BUILD= yes
do-install:
${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 ${DESTDIR}${DOCDIR}
${FIND} ${DESTDIR}${DOCDIR} \
-type f -print | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
${FIND} ${DESTDIR}${DOCDIR} \
-type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
.include "../../mk/bsd.pkg.mk"