Ticket #49033: mongo-cxx-driver.diff

File mongo-cxx-driver.diff, 813 bytes (added by julien.pilet@…, 9 years ago)
  • Portfile

    old new  
    1313platforms           darwin
    1414maintainers         ryandesign openmaintainer
    1515
     16revision 1
    1617description         library for using mongodb from C++ code
    1718
    1819long_description    ${name} is a ${description}.
     
    5758destroot.args       {*}[option build.args]
    5859destroot.destdir    --prefix=${destroot}${prefix}
    5960
     61variant cxx11 description {
     62    If you are building your application with C++ 11, you will need the cxx11
     63    variant.  As it turns out, the ABI of the C++ 11 version of libstdc++
     64    changed from the previous c++98 compatible version
     65} {
     66    build.args-append --c++11=on
     67}
     68
    6069if {${os.platform} eq "darwin" && ${os.major} < 10} {
    6170    depends_build
    6271    depends_lib