[60514] trunk/dports/math/atlas/Portfile

jameskyle at macports.org jameskyle at macports.org
Sat Nov 14 08:24:40 PST 2009


Revision: 60514
          http://trac.macports.org/changeset/60514
Author:   jameskyle at macports.org
Date:     2009-11-14 08:24:40 -0800 (Sat, 14 Nov 2009)
Log Message:
-----------
Removed the -D c -DPentium declaration from the pre-configure. It is now placed in a platform darwin i386 block.
Added a -D c -DWALL flag for ppc machines as suggested in ATLAS Installation Guide section 3.4 for all non-intel cpu's.
Fixes ticket #22379

Modified Paths:
--------------
    trunk/dports/math/atlas/Portfile

Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile	2009-11-14 16:24:37 UTC (rev 60513)
+++ trunk/dports/math/atlas/Portfile	2009-11-14 16:24:40 UTC (rev 60514)
@@ -84,8 +84,8 @@
 configure.dir       ${workpath}/${name}-${version}/build
 configure.cmd       ../configure
 
+
 # change the default compilers to those of gcc43 and make into shared library
-
 extract {
     # extract atlas and move to a consistent working directory name
     system "cd ${workpath} && bunzip2 -dc ${distpath}/${atlasdist} | \
@@ -104,7 +104,6 @@
     # Get some system specific variables for maximum optimization
     set cpufreq [expr {[exec sysctl -n hw.cpufrequency]/1000000}]
     ui_debug "Setting CPU Frequency for: ${cpufreq}"
-    configure.args-append -D c -DPentiumCPS=${cpufreq}
 
     # first do a 'fake configure' of atlas so we get optimized lapack libraries
     ui_debug "performing fake configure of atlas for optimized lapack"
@@ -208,3 +207,11 @@
           ln -sf ./libptcblas.dylib libcblas.dylib && \
           ln -sf ./libptf77blas.dylib libf77blas.dylib"
 }
+
+platform darwin i386 {
+  configure.args-append -D c -DPentiumCPS=${cpufreq}
+}
+
+platform darwin ppc {
+  configure.args-append -D c -DWALL
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091114/23708e21/attachment.html>


More information about the macports-changes mailing list