[67706] trunk/dports/math/atlas
mcalhoun at macports.org
mcalhoun at macports.org
Sun May 16 09:35:37 PDT 2010
Revision: 67706
http://trac.macports.org/changeset/67706
Author: mcalhoun at macports.org
Date: 2010-05-16 09:35:35 -0700 (Sun, 16 May 2010)
Log Message:
-----------
atlas: Ensure atlas uses the correct compiler. Closes #20070.
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Added Paths:
-----------
trunk/dports/math/atlas/files/patch-SpewMakeInc.c.diff
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2010-05-16 16:34:27 UTC (rev 67705)
+++ trunk/dports/math/atlas/Portfile 2010-05-16 16:35:35 UTC (rev 67706)
@@ -30,7 +30,8 @@
${lapackdist}:lapack
patchfiles patch-ATL_AVgcc-fix.diff \
- patch-archinfo_freebsd.c.diff
+ patch-archinfo_freebsd.c.diff \
+ patch-SpewMakeInc.c.diff
checksums atlas${version}.tar.bz2 \
md5 6c13be94a87178e7582111c08e9503bc \
@@ -98,6 +99,9 @@
gnutar --no-same-owner -xf -"
}
+post-patch {
+ reinplace "s|__MACPORTS_GCC__|${configure.cc}|g" ${workpath}/${name}-${version}/CONFIG/src/SpewMakeInc.c
+}
pre-configure {
Added: trunk/dports/math/atlas/files/patch-SpewMakeInc.c.diff
===================================================================
--- trunk/dports/math/atlas/files/patch-SpewMakeInc.c.diff (rev 0)
+++ trunk/dports/math/atlas/files/patch-SpewMakeInc.c.diff 2010-05-16 16:35:35 UTC (rev 67706)
@@ -0,0 +1,11 @@
+--- CONFIG/src/SpewMakeInc.c.orig 2010-02-28 07:19:04.000000000 -0700
++++ CONFIG/src/SpewMakeInc.c 2010-02-28 07:26:21.000000000 -0700
+@@ -645,7 +645,7 @@
+ comps[i][j-2] == 'c' && comps[i][j-1] == 'c')
+ break;
+ }
+- goodgcc = (j < NCOMP) ? comps[j] : "gcc";
++ goodgcc = "__MACPORTS_GCC__";
+ fprintf(fpout, " GOODGCC = %s", goodgcc);
+ if (gccflags)
+ fprintf(fpout, " %s", gccflags);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100516/b97bbc23/attachment.html>
More information about the macports-changes
mailing list