diff -urb ./Portfile /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/protobuf3-cpp/Portfile
old
|
new
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | PortGroup github 1.0 |
| 5 | PortGroup cxx11 1.1 |
5 | 6 | |
6 | | github.setup google protobuf 3.4.0 v |
| 7 | github.setup google protobuf 3.5.1 v |
7 | 8 | name protobuf3-cpp |
8 | 9 | categories devel |
9 | 10 | maintainers blair |
… |
… |
|
32 | 33 | distname protobuf-cpp-${version} |
33 | 34 | worksrcdir protobuf-${version} |
34 | 35 | |
35 | | pre-fetch { |
36 | | if {${os.platform} eq "darwin" && ${os.major} < 11} { |
| 36 | if {${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 { |
37 | 42 | ui_error "${name} uses thread-local storage which is not supported on Mac OS X 10.6 or older." |
38 | 43 | return -code error "incompatible Mac OS X version" |
39 | 44 | } |
| 45 | } |
40 | 46 | } |
41 | 47 | |
42 | | checksums rmd160 c1858337db5fc683c53525ddcb349a54cc07d1fb \ |
43 | | sha256 71434f6f836a1e479c44008bb033b2a8b2560ff539374dcdefb126be739e1635 |
| 48 | checksums rmd160 21375095e562cfee25ba68d68e481cf608ac9a9a \ |
| 49 | sha256 c28dba8782da2cfea1e11c61d335958c31a9c1bc553063546af9cbe98f204092 |
44 | 50 | |
45 | 51 | platforms darwin |
46 | 52 | |
47 | 53 | depends_lib port:zlib |
48 | 54 | |
| 55 | # see https://trac.macports.org/wiki/UsingTheRightCompiler |
| 56 | configure.env-append \ |
| 57 | CC_FOR_BUILD=${configure.cc} \ |
| 58 | CXX_FOR_BUILD=${configure.cxx} |
| 59 | |
49 | 60 | configure.cflags-append -g |
50 | 61 | configure.cppflags-append -g |
51 | 62 | |