Index: /usr/ports/devel/boost-all/compiled.mk =================================================================== --- /usr/ports/devel/boost-all/compiled.mk (revision 315714) +++ /usr/ports/devel/boost-all/compiled.mk (working copy) @@ -13,9 +13,15 @@ --prefix=${PREFIX} .if ${ARCH} == amd64 -BJAM_ARGS+= cxxflags=-fPIC +BJAM_ARGS_CXXFLAGS=-fPIC .endif +.if ${PORT_OPTIONS:MLIBCXX} +BJAM_ARGS+= cxxflags="${BJAM_ARGS_CXXFLAGS} -stdlib=libc++ -std=c++11" linkflags="-stdlib=libc++" +.else +BJAM_ARGS+= cxxflags="${BJAM_ARGS_CXXFLAGS}" +.endif + NO_CCACHE= yes .if ${CC:T:Mgcc*} BOOST_TOOLSET:= gcc Index: /usr/ports/devel/boost-libs/Makefile =================================================================== --- /usr/ports/devel/boost-libs/Makefile (revision 315714) +++ /usr/ports/devel/boost-libs/Makefile (working copy) @@ -8,8 +8,9 @@ BUILD_DEPENDS+= bjam:${PORTSDIR}/devel/boost-jam -OPTIONS_DEFINE= VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS +OPTIONS_DEFINE= LIBCXX VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS OPTIONS_DEFAULT= ICU +LIBCXX_DESC= Build with libc++ and c++11 VERBOSE_BUILD_DESC= Show compiler messages ICU_DESC= Boost.Regex with ICU unicode support