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.
This commit is contained in:
parent
6c95f7e083
commit
24e72cda8a
5 changed files with 90 additions and 0 deletions
5
devel/boost-jam/DESCR
Normal file
5
devel/boost-jam/DESCR
Normal file
|
@ -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.
|
33
devel/boost-jam/Makefile
Normal file
33
devel/boost-jam/Makefile
Normal file
|
@ -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"
|
2
devel/boost-jam/PLIST
Normal file
2
devel/boost-jam/PLIST
Normal file
|
@ -0,0 +1,2 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/02 17:48:51 jmmv Exp $
|
||||
bin/bjam
|
30
devel/boost-jam/bjam.mk
Normal file
30
devel/boost-jam/bjam.mk
Normal file
|
@ -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
|
20
devel/boost-jam/buildlink3.mk
Normal file
20
devel/boost-jam/buildlink3.mk
Normal file
|
@ -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/+$//}
|
Loading…
Reference in a new issue