Ticket #55926: Boost_add_cxx11.diff

File Boost_add_cxx11.diff, 931 bytes (added by michaelld (Michael Dickens), 7 years ago)
  • devel/boost/Portfile

    diff --git a/devel/boost/Portfile b/devel/boost/Portfile
    index 59fb944f24..05fe5e2e9c 100644
    a b PortGroup mpi 1.0 
    77name            boost
    88
    99version         1.66.0
    10 revision        1
     10revision        2
    1111checksums       rmd160  ee5dafdfa49adf50a5333cef1f55dac4f70b4c14 \
    1212                sha256  5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9 \
    1313                size    85995778
    http://www.boost.org/doc/libs/${distver}/libs/regex/doc/html/boost_regex/ref/sub 
    258258    }
    259259}
    260260
     261variant cxx11 description "Build using C++11 compliance" {
     262    PortGroup cxx11 1.1
     263    configure.cxxflags-append -std=gnu++11
     264}
     265
     266platform darwin {
     267    # default to +cxx11 for 10.8 and prior
     268    if {${os.major} <= 12} {
     269        default_variants +cxx11
     270    }
     271}
     272
    261273if {[mpi_variant_isset]} {
    262274
    263275    # There is a conflict with debug support.