Ignore:
Timestamp:
Nov 12, 2015, 4:07:31 PM (4 years ago)
Author:
ryandesign@…
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++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mongodb/Portfile

    r141570 r142463  
    1111epoch               1
    1212version             3.0.7
     13revision            1
    1314license             {AGPL-3 OpenSSLException}
    1415categories          databases
     
    2930depends_build       port:scons
    3031
    31 depends_lib         port:boost \
    32                     port:libpcap \
    33                     path:lib/libssl.dylib:openssl \
    34                     port:pcre \
    35                     port:snappy
     32depends_lib         port:libpcap \
     33                    path:lib/libssl.dylib:openssl
    3634
    3735license_noconflict  scons
     
    4038
    4139use_configure       no
     40
     41# mongodb 3.0.5 and later requires C++11. Forcing the use of libc++ is
     42# acceptable because mongodb already requires OS X 10.7 or later, so we
     43# know libc++ is available; mongodb doesn't provide any libraries for
     44# other ports to use; and the only C++ libraries mongodb uses (boost,
     45# pcre, snappy) are bundled.
     46configure.cxx_stdlib libc++
    4247
    4348compiler.blacklist-append *gcc* {clang < 503.0.40} macports-clang-3.3
     
    5560                    --cpppath=${prefix}/include \
    5661                    --disable-warnings-as-errors \
     62                    --libc++ \
    5763                    --libpath=${prefix}/lib \
    5864                    --osx-version-min=${macosx_deployment_target} \
    59                     --ssl \
    60                     --system-boost-lib-search-suffixes=-mt \
    61                     --use-system-boost \
    62                     --use-system-pcre \
    63                     --use-system-snappy \
    64                     --extralib=pcre,pcrecpp,snappy
     65                    --ssl
    6566
    6667# Specify a short variant dir because the default variant dir is deeply nested
Note: See TracChangeset for help on using the changeset viewer.