Changeset View
Changeset View
Standalone View
Standalone View
devel/boost-all/compiled.mk
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
PKGMESSAGE= ${WRKDIR}/pkg-message | PKGMESSAGE= ${WRKDIR}/pkg-message | ||||
BJAM= bjam | BJAM= bjam | ||||
USES+= compiler:c++11-lang | USES+= compiler:c++11-lang | ||||
PLIST_SUB+= BOOST_SHARED_LIB_VER=${PORTVERSION} COMPAT_LIB_VER=5 | PLIST_SUB+= BOOST_SHARED_LIB_VER=${PORTVERSION} COMPAT_LIB_VER=5 | ||||
PKG_MESSAGE_FILE_THREADS= ${PORTSDIR}/devel/boost-all/pkg-message.threads | PKG_MESSAGE_FILE_THREADS= ${PORTSDIR}/devel/boost-all/pkg-message.threads | ||||
PKG_MESSAGE_FILE_PYTHON= ${PORTSDIR}/devel/boost-all/pkg-message.python | PKG_MESSAGE_FILE_PYTHON= ${PORTSDIR}/devel/boost-all/pkg-message.python | ||||
.include <bsd.port.pre.mk> | |||||
BJAM_ARGS= --layout=system \ | BJAM_ARGS= --layout=system \ | ||||
--prefix=${PREFIX} \ | --prefix=${PREFIX} \ | ||||
.if ${ARCH} == amd64 | |||||
BJAM_ARGS+= cxxflags=-fPIC | |||||
.endif | |||||
# Our compiler-flags will be added AFTER those set by bjam. We remove | # 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 | # the optimization level, because Boost sets it itself (to -O3 in case | ||||
# of gcc/g++): | # of gcc/g++): | ||||
BJAM_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}" | BJAM_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}" | ||||
BOOST_TOOLSET= ${CHOSEN_COMPILER_TYPE} | BOOST_TOOLSET= ${CHOSEN_COMPILER_TYPE} | ||||
BJAM_ARGS+= --toolset=${BOOST_TOOLSET} \ | BJAM_ARGS+= --toolset=${BOOST_TOOLSET} \ | ||||
${_MAKE_JOBS} | ${_MAKE_JOBS} | ||||
.if ${PORT_OPTIONS:MVERBOSE_BUILD} | VERBOSE_BUILD_VARS= BJAM_ARGS+=-d2 | ||||
BJAM_ARGS+= -d2 | |||||
.endif | |||||
.if ${PORT_OPTIONS:MDEBUG} | DEBUG_VARS= BJAM_ARGS+=debug | ||||
BJAM_ARGS+= debug | DEBUG_VARS_OFF= BJAM_ARGS+=release | ||||
.else | |||||
BJAM_ARGS+= release | |||||
.endif | |||||
BJAM_ARGS+= threading=multi \ | BJAM_ARGS+= threading=multi \ | ||||
link=shared,static | link=shared,static | ||||
BJAM_ARGS+= optimization=speed | BJAM_ARGS+= optimization=speed | ||||
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} | OPTIMIZED_CFLAGS_VARS= BJAM_ARGS+=inlining=full | ||||
BJAM_ARGS+= inlining=full | |||||
.endif | |||||
# ccache build fails when using precompiled headers, on a cached build. | # ccache build fails when using precompiled headers, on a cached build. | ||||
.if defined(WITH_CCACHE_BUILD) | .if defined(WITH_CCACHE_BUILD) | ||||
BJAM_ARGS+= pch=off | BJAM_ARGS+= pch=off | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
.if defined(USE_BINUTILS) | .if defined(USE_BINUTILS) | ||||
@${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} : <linkflags>-B${LOCALBASE}/bin ;" >> ${WRKSRC}/tools/build/v2/user-config.jam | @${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} : <linkflags>-B${LOCALBASE}/bin ;" >> ${WRKSRC}/tools/build/v2/user-config.jam | ||||
.else | .else | ||||
@${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} ;" >> ${WRKSRC}/tools/build/v2/user-config.jam | @${ECHO} "using ${BOOST_TOOLSET} : : ${CXX} ;" >> ${WRKSRC}/tools/build/v2/user-config.jam | ||||
.endif | .endif |