Date: Wed, 30 Jul 2008 21:42:11 GMT From: Vaclav Haisman <v.haisman@sh.cvut.cz> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/126107: Makefile option to use Boost type traits with STLport. Message-ID: <200807302142.m6ULgBTB078879@www.freebsd.org> Resent-Message-ID: <200807302150.m6ULo1Ck017114@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 126107 >Category: ports >Synopsis: Makefile option to use Boost type traits with STLport. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 30 21:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Vaclav Haisman >Release: 6.3 >Organization: SU SH >Environment: FreeBSD shell.sh.cvut.cz 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Fri Jan 18 17:04:16 CET 2008 root@shell.sh.cvut.cz:/usr/obj/usr/src/sys/SHELL-SMP i386 >Description: Attached is a patch with adds the option to use Boost type traits in STLport. >How-To-Repeat: >Fix: Patch attached with submission follows: 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 <bsd.port.pre.mk> @@ -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 +-*/ ++ + + /*==========================================================*/ + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807302142.m6ULgBTB078879>