summaryrefslogtreecommitdiff
path: root/devel/boost-build/Makefile
diff options
context:
space:
mode:
authorheinz <heinz>2008-02-05 22:52:01 +0000
committerheinz <heinz>2008-02-05 22:52:01 +0000
commit973da425a8abf7324a9d2edafebbab5ce105bb0c (patch)
tree672ec72e960090c913af750889e28f503c8f6b86 /devel/boost-build/Makefile
parentc787d3017f885c15d0935881d6153ac7b93e1556 (diff)
downloadpkgsrc-973da425a8abf7324a9d2edafebbab5ce105bb0c.tar.gz
Added support for installationt to DESTDIR.
Diffstat (limited to 'devel/boost-build/Makefile')
-rw-r--r--devel/boost-build/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/devel/boost-build/Makefile b/devel/boost-build/Makefile
index 15936c08fd6..63c44ffb1c7 100644
--- a/devel/boost-build/Makefile
+++ b/devel/boost-build/Makefile
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.8 2008/02/05 22:50:40 heinz Exp $
+# $NetBSD: Makefile,v 1.9 2008/02/05 22:52:01 heinz Exp $
#
BOOST_PACKAGE= build
BOOST_COMMENT= (Boost.Build framework)
BOOST_CONFIG= no
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../meta-pkgs/boost/Makefile.common"
SUBST_CLASSES+= confdir
@@ -37,11 +39,10 @@ do-build:
${ECHO} 'using ${BOOST_TOOLSET} ;' ; } >${WRKDIR}/site-config.jam
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/boost-build
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/boost-build
cd ${WRKSRC}/tools/build/v2 && ${PAX} -rw -pp -pm \
- -s ':^.*\.orig$$::' . ${PREFIX}/share/boost-build
- find ${PREFIX}/share/boost-build -name "*.orig" -exec rm "{}" \;
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKDIR}/site-config.jam ${EGDIR}
+ -s ':^.*\.orig$$::' . ${DESTDIR}${PREFIX}/share/boost-build
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKDIR}/site-config.jam ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"