[142463] trunk/dports/databases/mongodb/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Dec 12 05:51:54 PST 2015
Revision: 142463
https://trac.macports.org/changeset/142463
Author: ryandesign at macports.org
Date: 2015-11-12 08:07:31 -0800 (Thu, 12 Nov 2015)
Log Message:
-----------
mongodb: force use of libc++ even on older systems and use built-in dependencies, so that users don't have to switch their entire MacPorts installation to libc++
Modified Paths:
--------------
trunk/dports/databases/mongodb/Portfile
Modified: trunk/dports/databases/mongodb/Portfile
===================================================================
--- trunk/dports/databases/mongodb/Portfile 2015-11-12 16:05:50 UTC (rev 142462)
+++ trunk/dports/databases/mongodb/Portfile 2015-11-12 16:07:31 UTC (rev 142463)
@@ -10,6 +10,7 @@
name mongodb
epoch 1
version 3.0.7
+revision 1
license {AGPL-3 OpenSSLException}
categories databases
maintainers ryandesign
@@ -28,11 +29,8 @@
depends_build port:scons
-depends_lib port:boost \
- port:libpcap \
- path:lib/libssl.dylib:openssl \
- port:pcre \
- port:snappy
+depends_lib port:libpcap \
+ path:lib/libssl.dylib:openssl
license_noconflict scons
@@ -40,6 +38,13 @@
use_configure no
+# mongodb 3.0.5 and later requires C++11. Forcing the use of libc++ is
+# acceptable because mongodb already requires OS X 10.7 or later, so we
+# know libc++ is available; mongodb doesn't provide any libraries for
+# other ports to use; and the only C++ libraries mongodb uses (boost,
+# pcre, snappy) are bundled.
+configure.cxx_stdlib libc++
+
compiler.blacklist-append *gcc* {clang < 503.0.40} macports-clang-3.3
# TODO: fix me
@@ -54,14 +59,10 @@
--c++11 \
--cpppath=${prefix}/include \
--disable-warnings-as-errors \
+ --libc++ \
--libpath=${prefix}/lib \
--osx-version-min=${macosx_deployment_target} \
- --ssl \
- --system-boost-lib-search-suffixes=-mt \
- --use-system-boost \
- --use-system-pcre \
- --use-system-snappy \
- --extralib=pcre,pcrecpp,snappy
+ --ssl
# Specify a short variant dir because the default variant dir is deeply nested
# and can be very long, so long that on some systems the build will fail with
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/37f851dd/attachment.html>
More information about the macports-changes
mailing list