Commits

Takeshi Enomoto authored 218d3fd276c
esmf: fix build with gcc5 or earlier

Closes: https://trac.macports.org/ticket/56350
No tags

science/esmf/Portfile

Modified
46 46 reinplace "s|stdc++|c++|" ${worksrcpath}/build_config/Darwin.gfortranclang.default/build_rules.mk
47 47 reinplace "s|stdc++|c++|" ${worksrcpath}/build_config/Darwin.g95.default/build_rules.mk
48 48 }
49 49 }
50 50
51 51 if {![variant_isset atlas]} {
52 52 default_variants +accelerate
53 53 }
54 54
55 55 use_configure no
56 +if {[variant_isset gcc47] || [variant_isset gcc48] || [variant_isset gcc49] || [variant_isset gcc5]} {
57 + configure.cxxflags-append -std=c++11
58 +} elseif {[variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46]} {
59 + configure.cxxflags-append -std=c++0x
60 +}
56 61
57 62 build.target lib
58 63 pre-build {
59 64 build.env ESMF_DIR=${worksrcpath} \
60 65 ESMF_F90=${configure.f90} \
61 66 ESMF_F90COMPILEOPTS="${configure.f90flags}" \
62 67 ESMF_CXX=${configure.cxx} \
63 68 ESMF_CXXCOMPILEOPTS="${configure.cxxflags}" \
64 69 ESMF_NETCDF=split \
65 70 ESMF_NETCDF_INCLUDE=${prefix}/include \

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut