diff options
author | jmmv <jmmv@pkgsrc.org> | 2007-06-02 17:48:51 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2007-06-02 17:48:51 +0000 |
commit | 24e72cda8ab3dbce9a701c99997ad57ac2d522c8 (patch) | |
tree | 16e723a4274b51e19dd614cff904e6e25ea61691 /devel/boost-jam | |
parent | 6c95f7e08321ec42ad2a3dc16433203892e6253e (diff) | |
download | pkgsrc-24e72cda8ab3dbce9a701c99997ad57ac2d522c8.tar.gz |
Reimport of boost-build as boost-jam (version 1.33.1). This is to comply
with the Boost.Build packaging guidelines. boost-build will now provide
the real complete build framework, not only the bjam tool.
Diffstat (limited to 'devel/boost-jam')
-rw-r--r-- | devel/boost-jam/DESCR | 5 | ||||
-rw-r--r-- | devel/boost-jam/Makefile | 33 | ||||
-rw-r--r-- | devel/boost-jam/PLIST | 2 | ||||
-rw-r--r-- | devel/boost-jam/bjam.mk | 30 | ||||
-rw-r--r-- | devel/boost-jam/buildlink3.mk | 20 |
5 files changed, 90 insertions, 0 deletions
diff --git a/devel/boost-jam/DESCR b/devel/boost-jam/DESCR new file mode 100644 index 00000000000..dd6b79896fd --- /dev/null +++ b/devel/boost-jam/DESCR @@ -0,0 +1,5 @@ +Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on +portable libraries which work well with the ISO C++ Standard Library. + +This package provides the Boost.Jam module, a make-like utility. This +is the tool used to build Boost itself, and is based on Perforce Jam. diff --git a/devel/boost-jam/Makefile b/devel/boost-jam/Makefile new file mode 100644 index 00000000000..f57a5738b85 --- /dev/null +++ b/devel/boost-jam/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/06/02 17:48:51 jmmv Exp $ +# + +BOOST_PACKAGE= jam +BOOST_COMMENT= (Boost.Jam utility) +BOOST_CONFIG= no + +CONFLICTS+= boost-build<=1.33.1 + +.include "../../meta-pkgs/boost/Makefile.common" + +SUBST_CLASSES+= bb +SUBST_MESSAGE.bb= Fixing path to Boost.Build files. +SUBST_STAGE.bb= pre-build +SUBST_FILES.bb= tools/build/jam_src/Jambase +SUBST_SED.bb= -e 's,/usr/share/boost-build,${PREFIX}/share/boost-build,g' + +.include "../../devel/boost-build/toolset.mk" + +INSTALLATION_DIRS= bin + +pre-build: + rm ${WRKSRC}/tools/build/jam_src/jambase.c + +do-build: + cd ${WRKSRC}/tools/build/jam_src && \ + ${SETENV} ${MAKE_ENV} ${SH} ./build.sh ${BOOST_TOOLSET} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/jam_src/bin.*/bjam \ + ${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/boost-jam/PLIST b/devel/boost-jam/PLIST new file mode 100644 index 00000000000..397ffccf341 --- /dev/null +++ b/devel/boost-jam/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/02 17:48:51 jmmv Exp $ +bin/bjam diff --git a/devel/boost-jam/bjam.mk b/devel/boost-jam/bjam.mk new file mode 100644 index 00000000000..7cee298fc77 --- /dev/null +++ b/devel/boost-jam/bjam.mk @@ -0,0 +1,30 @@ +# $NetBSD: bjam.mk,v 1.1.1.1 2007/06/02 17:48:51 jmmv Exp $ +# + +.include "../../devel/boost-jam/buildlink3.mk" + +.include "../../devel/boost-build/toolset.mk" +.include "../../mk/bsd.prefs.mk" + +BJAM= ${BUILDLINK_PREFIX.boost-jam}/bin/bjam +BJAM_ARGS+= --builddir=${WRKSRC}/build +BJAM_ARGS+= --layout=system +BJAM_ARGS+= --prefix=${PREFIX} +BJAM_ARGS+= -sBUILD=${BJAM_BUILD:Q} +BJAM_ARGS+= -sTOOLS=${BOOST_TOOLSET} +.if ${OPSYS} == "Darwin" +BJAM_ARGS+= -sTARGET_LIBDIR=${PREFIX}/lib +.endif +.if defined(BOOST_DEBUG) && !empty(BOOST_DEBUG:M[Yy][Ee][Ss]) +BJAM_BUILD+= debug +.endif +BJAM_BUILD+= <linkflags>${COMPILER_RPATH_FLAG}${PREFIX}/lib +BJAM_BUILD+= <threading>multi +BJAM_BUILD+= release +BJAM_CMD= ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} + +bjam-build: + @cd ${WRKSRC} && ${BJAM_CMD} stage + +bjam-install: + @cd ${WRKSRC} && ${BJAM_CMD} install diff --git a/devel/boost-jam/buildlink3.mk b/devel/boost-jam/buildlink3.mk new file mode 100644 index 00000000000..2d4ce89e76c --- /dev/null +++ b/devel/boost-jam/buildlink3.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/06/02 17:48:51 jmmv Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +BOOST_JAM_BUILDLINK3_MK:= ${BOOST_JAM_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= boost-jam +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nboost-jam} +BUILDLINK_PACKAGES+= boost-jam +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}boost-jam + +.if !empty(BOOST_JAM_BUILDLINK3_MK:M+) +BUILDLINK_API_DEPENDS.boost-jam+= boost-jam-1.33.* +BUILDLINK_DEPMETHOD.boost-jam?= build +BUILDLINK_PKGSRCDIR.boost-jam?= ../../devel/boost-jam +.endif # BOOST_JAM_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |