[77717] trunk/dports/devel/gmp
mcalhoun at macports.org
mcalhoun at macports.org
Sun Apr 10 10:19:36 PDT 2011
Revision: 77717
http://trac.macports.org/changeset/77717
Author: mcalhoun at macports.org
Date: 2011-04-10 10:19:36 -0700 (Sun, 10 Apr 2011)
Log Message:
-----------
gmp:
Allow config.guess script to recognize Sandy Bridge (SB) processor.
Revision increased because gmp might now run faster on SB.
Fixes #28892.
Modified Paths:
--------------
trunk/dports/devel/gmp/Portfile
Added Paths:
-----------
trunk/dports/devel/gmp/files/patch-config.guess.i7.diff
Modified: trunk/dports/devel/gmp/Portfile
===================================================================
--- trunk/dports/devel/gmp/Portfile 2011-04-10 17:16:25 UTC (rev 77716)
+++ trunk/dports/devel/gmp/Portfile 2011-04-10 17:19:36 UTC (rev 77717)
@@ -6,6 +6,7 @@
name gmp
version 5.0.1
+revision 1
categories devel math
maintainers mcalhoun openmaintainer
platforms darwin
@@ -34,6 +35,9 @@
# See #16634
patchfiles patch-gmp-h.in.diff
+# Until GMP 5.0.2 is released, Sandy Bridge not recognized. See #28892
+patchfiles-append patch-config.guess.i7.diff
+
configure.args --infodir=${prefix}/share/info \
--enable-cxx
@@ -63,7 +67,7 @@
if {![variant_isset universal]} {
if {${build_arch} == "x86_64"} {
configure.env ABI=64
- # fails to correctly detect some x86_64 models (e.g. Sandy Bridge)
+ # fails to correctly detect some x86_64 models
pre-configure {
set build_triplet [split [exec /usr/bin/env CC=${configure.cc} ${worksrcpath}/config.guess] -]
set build_cpu [lindex $build_triplet 0]
Added: trunk/dports/devel/gmp/files/patch-config.guess.i7.diff
===================================================================
--- trunk/dports/devel/gmp/files/patch-config.guess.i7.diff (rev 0)
+++ trunk/dports/devel/gmp/files/patch-config.guess.i7.diff 2011-04-10 17:19:36 UTC (rev 77717)
@@ -0,0 +1,10 @@
+--- config.guess.orig 2010-02-06 05:43:13.000000000 -0700
++++ config.guess 2011-04-10 09:11:34.000000000 -0700
+@@ -742,6 +742,7 @@
+ else if (model == 0x25) modelstr = "corei"; /* WSM Clarkdale/Arrandale */
+ else if (model == 0x26) modelstr = "atom"; /* Lincroft */
+ else if (model == 0x27) modelstr = "atom"; /* Saltwell */
++ else if (model == 0x2a) modelstr = "corei"; /* SB */
+ else if (model == 0x2c) modelstr = "corei"; /* WSM Gulftown */
+ else if (model == 0x2e) modelstr = "corei"; /* NHM Beckton */
+ break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110410/780ae1de/attachment.html>
More information about the macports-changes
mailing list