Revision
110500
Author
jeremyhu@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

Diff

Modified: trunk/dports/devel/gmp/Portfile (110499 => 110500)


--- 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}
+}
+
 # if CFLAGS and CXXFLAGS are undefined, configure script tries to build fastest library for build machine.
 # On PowerPC machines, CFLAGS must be empty to get -force_cpusubtype_ALL.
 configure.cc_archflags