On Aug 31, 2013, at 14:41, jerem...@macports.org wrote: > Revision: 110500 > https://trac.macports.org/changeset/110500 > Author: jerem...@macports.org > Date: 2013-08-31 12:41:01 -0700 (Sat, 31 Aug 2013) > Log Message: > ----------- > gmp: Bump to 5.1.2 and support -stdlib if it is in configure.cxxflags > > Modified Paths: > -------------- > trunk/dports/devel/gmp/Portfile > > Modified: trunk/dports/devel/gmp/Portfile > =================================================================== > --- trunk/dports/devel/gmp/Portfile 2013-08-31 19:30:43 UTC (rev 110499) > +++ trunk/dports/devel/gmp/Portfile 2013-08-31 19:41:01 UTC (rev 110500) > @@ -5,7 +5,7 @@ > PortGroup muniversal 1.0 > > name gmp > -version 5.0.5 > +version 5.1.2 > categories devel math > license LGPL-3+ > maintainers mcalhoun openmaintainer > @@ -25,19 +25,24 @@ > homepage http://gmplib.org/ > master_sites gnu > > -checksums rmd160 2e767b7392bd1f34a235ca061d1a016e9ec7d564 \ > - sha256 > 1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9 > +checksums rmd160 fa4c074c0736c2bac4b6b7d11d5e309d961b5fb1 \ > + sha256 > 2099deea64ef3e58ac2b42eaaa0286c3231430a8e893359d806bfa31611c1b8f > > use_bzip2 yes > use_parallel_build yes > > -# See #16634 > -patchfiles patch-gmp-h.in.diff > +#use_autoreconf yes > +#autoreconf.args -fvi > > configure.args --enable-cxx > > configure.universal_args-delete --disable-dependency-tracking > > +# Since we need to clear CXXFLAGS, add -stdlib=... to CXX > +if {[string match *-stdlib* ${configure.cxxflags}]} { > + configure.cxx-append ${configure.cxxflags} > +}
This fails with trunk: checking whether ccache /usr/bin/clang++ {-Os -stdlib=libstdc++} accepts -g... no checking C++ compiler ccache /usr/bin/clang++ {-Os -stdlib=libstdc++} -I/opt/local/include -O2 -pedantic -fomit-frame-pointer -m64 -mtune=corei7 -march=corei7... no checking C++ compiler ccache /usr/bin/clang++ {-Os -stdlib=libstdc++} -I/opt/local/include ... no configure: error: C++ compiler not available, see config.log for details Note the curly brackets. _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev