diff options
-rw-r--r-- | devel/boost-all/compiled.mk | 27 | ||||
-rw-r--r-- | devel/boost-jam/Makefile | 15 | ||||
-rw-r--r-- | devel/boost-libs/Makefile | 19 | ||||
-rw-r--r-- | devel/boost-python-libs/Makefile | 9 |
4 files changed, 35 insertions, 35 deletions
diff --git a/devel/boost-all/compiled.mk b/devel/boost-all/compiled.mk index 7bc72047fc03..99676d86ef74 100644 --- a/devel/boost-all/compiled.mk +++ b/devel/boost-all/compiled.mk @@ -1,6 +1,9 @@ USE_LDCONFIG= yes PKGMESSAGE= ${WRKDIR}/pkg-message -BJAM= bjam +MAKE_CMD= bjam +MAKEFILE= # +MAKE_FLAGS= # +ALL_TARGET= stage USES+= compiler:c++11-lang PLIST_SUB+= BOOST_SHARED_LIB_VER=${PORTVERSION} @@ -8,28 +11,26 @@ PLIST_SUB+= BOOST_SHARED_LIB_VER=${PORTVERSION} PKG_MESSAGE_FILE_THREADS= ${PORTSDIR}/devel/boost-all/pkg-message.threads PKG_MESSAGE_FILE_PYTHON= ${PORTSDIR}/devel/boost-all/pkg-message.python -BJAM_ARGS= --layout=system \ +MAKE_ARGS= --layout=system \ --prefix=${PREFIX} \ -d2 # Our compiler-flags will be added AFTER those set by bjam. We remove # the optimization level, because Boost sets it itself (to -O3 in case # of gcc/g++): -BJAM_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}" +MAKE_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}" -BOOST_TOOLSET= ${CHOSEN_COMPILER_TYPE} - -BJAM_ARGS+= --toolset=${BOOST_TOOLSET} \ +MAKE_ARGS+= --toolset=${CHOSEN_COMPILER_TYPE} \ ${_MAKE_JOBS} -DEBUG_VARS= BJAM_ARGS+=debug -DEBUG_VARS_OFF= BJAM_ARGS+=release +DEBUG_MAKE_ARGS= debug +DEBUG_MAKE_ARGS_OFF= release -BJAM_ARGS+= threading=multi \ +MAKE_ARGS+= threading=multi \ link=shared,static -BJAM_ARGS+= optimization=speed -OPTIMIZED_CFLAGS_VARS= BJAM_ARGS+=inlining=full +MAKE_ARGS+= optimization=speed +OPTIMIZED_CFLAGS_MAKE_ARGS= inlining=full # ccache build fails when using precompiled headers, on a cached build. .if defined(WITH_CCACHE_BUILD) @@ -38,7 +39,7 @@ BJAM_ARGS+= pch=off post-patch: .if defined(USE_BINUTILS) - @${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} : <linkflags>-B${LOCALBASE}/bin ;" >> ${WRKSRC}/tools/build/v2/user-config.jam + @${ECHO} "using ${CHOSEN_COMPILER_TYPE} : : ${CXX} : <linkflags>-B${LOCALBASE}/bin ;" >> ${WRKSRC}/tools/build/v2/user-config.jam .else - @${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} ;" >> ${WRKSRC}/tools/build/v2/user-config.jam + @${ECHO} "using ${CHOSEN_COMPILER_TYPE} : : ${CXX} ;" >> ${WRKSRC}/tools/build/v2/user-config.jam .endif diff --git a/devel/boost-jam/Makefile b/devel/boost-jam/Makefile index 84085b4ae8d1..1c0196920c9f 100644 --- a/devel/boost-jam/Makefile +++ b/devel/boost-jam/Makefile @@ -6,17 +6,20 @@ COMMENT= Build tool from the boost.org PLIST_FILES= bin/bjam -EXTRACT_AFTER_ARGS= ${DISTNAME}/tools/build/v2/engine +EXTRACT_AFTER_ARGS= ${DISTNAME}/${WRKSRC_SUBDIR} +MAKE_CMD= ./build.sh +ALL_TARGET= cc +MAKE_FLAGS= # +_MAKE_JOBS= # +MAKEFILE= # -.include "${.CURDIR}/../boost-all/common.mk" +WRKSRC_SUBDIR= tools/build/v2/engine -do-build: - cd ${WRKSRC}/tools/build/v2/engine && \ - ${MAKE_ENV} ./build.sh cc +.include "${.CURDIR}/../boost-all/common.mk" do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/v2/engine/bin.*/bjam \ + ${INSTALL_PROGRAM} ${WRKSRC}/bin.*/bjam \ ${STAGEDIR}${PREFIX}/bin/ .include <bsd.port.mk> diff --git a/devel/boost-libs/Makefile b/devel/boost-libs/Makefile index 5e0b8bf297be..4ae123e43d97 100644 --- a/devel/boost-libs/Makefile +++ b/devel/boost-libs/Makefile @@ -16,27 +16,24 @@ ICONV_DESC= Boost.Locale with iconv encoding support ICU_DESC= Boost.Regex/Locale with ICU unicode support ICONV_USES= iconv -ICONV_VARS= BJAM_ARGS+=-sICONV_PATH=${ICONV_PREFIX} -ICONV_VARS_OFF= BJAM_ARGS+=boost.locale.iconv=off +ICONV_MAKE_ARGS= -sICONV_PATH=${ICONV_PREFIX} +ICONV_MAKE_ARGS_OFF= boost.locale.iconv=off ICU_LIB_DEPENDS= libicuuc.so:devel/icu -ICU_VARS= BJAM_ARGS+=-sICU_PATH=${LOCALBASE} -ICU_VARS_OFF= BJAM_ARGS+=boost.locale.icu=off +ICU_MAKE_ARGS= -sICU_PATH=${LOCALBASE} +ICU_MAKE_ARGS_OFF= boost.locale.icu=off .include "${.CURDIR}/../boost-all/common.mk" .include "${.CURDIR}/../boost-all/compiled.mk" -BJAM_ARGS+= --without-python - BROKEN_aarch64= Fails to compile: multiple instances of error: platform not supported -do-build: - @cd ${WRKSRC} && \ - ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} stage +MAKE_ARGS+= --without-python +ALL_TARGET= stage do-install: - @cd ${WRKSRC} && \ - ${SETENV} ${MAKE_ENV} ${BJAM} --prefix=${STAGEDIR}${PREFIX} ${BJAM_ARGS} install + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ + ${MAKE_ARGS:NDESTDIR=*:S,^--prefix=,&${STAGEDIR},} ${INSTALL_TARGET} # For some reasons BJAM forget about the links @cd ${WRKSRC}/stage/ && ${FIND} lib -type l | ${PAX} -rw -p p ${STAGEDIR}${PREFIX} diff --git a/devel/boost-python-libs/Makefile b/devel/boost-python-libs/Makefile index 422012cf5f9f..5c15af1a9692 100644 --- a/devel/boost-python-libs/Makefile +++ b/devel/boost-python-libs/Makefile @@ -18,14 +18,13 @@ MAKE_ENV+= PYTHON_ROOT="${LOCALBASE}"\ PYTHON_LIB_PATH="${PYTHON_LIBDIR}" LIB_DEPENDS+= libboost_thread.so:devel/boost-libs +MAKE_ARGS+= --with-python +ALL_TARGET= stage -BUILD_DEPENDS+= ${BJAM}:devel/boost-jam +BUILD_DEPENDS+= bjam:devel/boost-jam -do-build: +pre-build: @${ECHO_CMD} "using python : " ${PYTHON_VER} " : " ${PYTHON_CMD} " : " ${PYTHON_INCLUDEDIR} ";" >> ${WRKSRC}/tools/build/v2/site-config.jam -# build the library - @cd ${WRKSRC} && \ - ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} --with-python stage do-install: @cd ${WRKSRC}/stage/lib && ${PAX} -rw -p p libboost* ${STAGEDIR}${PREFIX}/lib |