Ticket #55650: Portfile.diff

File Portfile.diff, 1.8 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 6 years ago)
  • Portfile

    diff -urb ./Portfile /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/protobuf3-cpp/Portfile
    old new  
    22
    33PortSystem 1.0
    44PortGroup  github 1.0
     5PortGroup  cxx11 1.1
    56
    6 github.setup    google protobuf 3.4.0 v
     7github.setup    google protobuf 3.5.1 v
    78name            protobuf3-cpp
    89categories      devel
    910maintainers     blair
     
    3233distname        protobuf-cpp-${version}
    3334worksrcdir      protobuf-${version}
    3435
    35 pre-fetch {
    36     if {${os.platform} eq "darwin" && ${os.major} < 11} {
     36if {${os.platform} eq "darwin" && ${os.major} < 11} {
     37    if {[string match *clang* ${configure.compiler}] && ${configure.cxx_stdlib} eq "macports-libstdc++"} {
     38        # GCC emulates thread-local storage
     39        compiler.whitelist  macports-gcc-7
     40    } else {
     41        pre-fetch {
    3742        ui_error "${name} uses thread-local storage which is not supported on Mac OS X 10.6 or older."
    3843        return -code error "incompatible Mac OS X version"
    3944    }
     45    }
    4046}
    4147
    42 checksums       rmd160  c1858337db5fc683c53525ddcb349a54cc07d1fb \
    43                 sha256  71434f6f836a1e479c44008bb033b2a8b2560ff539374dcdefb126be739e1635
     48checksums       rmd160  21375095e562cfee25ba68d68e481cf608ac9a9a \
     49                sha256  c28dba8782da2cfea1e11c61d335958c31a9c1bc553063546af9cbe98f204092
    4450
    4551platforms       darwin
    4652
    4753depends_lib     port:zlib
    4854
     55# see https://trac.macports.org/wiki/UsingTheRightCompiler
     56configure.env-append \
     57    CC_FOR_BUILD=${configure.cc} \
     58    CXX_FOR_BUILD=${configure.cxx}
     59
    4960configure.cflags-append     -g
    5061configure.cppflags-append   -g
    5162