- Add Conditional BOOST suppport OPTION

- Bump PORTREVISION

PR:             ports/126107
Discussed with: #bsdports
Submitted by:   Vaclav Haisman <v.haisman@sh.cvut.cz>
Approved by:    araujo (mentor)
This commit is contained in:
Philip M. Gollucci
2008-07-31 18:34:24 +00:00
parent e51525b494
commit 8bb6dc91ef
2 changed files with 24 additions and 1 deletions
+10 -1
View File
@@ -8,6 +8,7 @@
PORTNAME= stlport
PORTVERSION= 5.1.5
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF
PKGNAMESUFFIX= -${COMPILER}
@@ -36,7 +37,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 <bsd.port.pre.mk>
@@ -52,6 +54,13 @@ EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ptr_spec-user_config.h.diff
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
@@ -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
-*/
+
/*==========================================================*/