Index: Makefile =================================================================== RCS file: /home/services/cvsupin/ncvs/ports/devel/stlport/Makefile,v retrieving revision 1.48 diff -u -p -d -r1.48 Makefile --- Makefile 25 Jul 2008 09:38:44 -0000 1.48 +++ Makefile 30 Jul 2008 21:32:17 -0000 @@ -36,7 +36,8 @@ PORTDOCS= * OPTIONS= SHORT_STRING_OPTIM "Enable short string optimization." on \ PTR_SPECIALIZATIONS "Use pointer types specializations." off \ - TEMPLATE_EXPRESSION "Use template expressions for string." off + TEMPLATE_EXPRESSION "Use template expressions for string." off \ + BOOST_SUPPORT "Use Boost type traits." off .include @@ -52,6 +53,13 @@ EXTRA_PATCHES+= ${PATCHDIR}/extra-patch- EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-templ-expr-user_config.h.diff .endif +.if defined(WITH_BOOST_SUPPORT) +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-boost-support-user_config.h.diff +MAKE_ENV+= STLP_BUILD_BOOST_PATH=${LOCALBASE}/include +BUILD_DEPENDS+= ${LOCALBASE}/include/boost/config/stdlib/stlport.hpp:${PORTSDIR}/devel/boost +RUN_DEPENDS+= ${LOCALBASE}/include/boost/config/stdlib/stlport.hpp:${PORTSDIR}/devel/boost +.endif + pre-configure: ${REINPLACE_CMD} -e 's|gcc|${COMPILER}|' ${WRKSRC}/gcc.mak \ ${WRKSRC}/../test/unit/gcc.mak Index: files/extra-patch-boost-support-user_config.h.diff =================================================================== RCS file: files/extra-patch-boost-support-user_config.h.diff diff -N files/extra-patch-boost-support-user_config.h.diff --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/extra-patch-boost-support-user_config.h.diff 30 Jul 2008 21:33:50 -0000 @@ -0,0 +1,14 @@ +--- stlport/stl/config/user_config.h 2008-07-30 22:57:38.719239317 +0200 ++++ stlport/stl/config/user_config.h 2008-07-30 22:58:06.413639084 +0200 +@@ -298,9 +298,9 @@ + * to use this feature at STLport built time you will have to define the + * STLP_BUILD_BOOST_PATH enrironment variable with the value of the boost library path. + */ +-/* ++ + #define _STLP_USE_BOOST_SUPPORT 1 +-*/ ++ + + /*==========================================================*/ +