[60513] trunk/dports/math/atlas/Portfile
jameskyle at macports.org
jameskyle at macports.org
Sat Nov 14 08:24:40 PST 2009
Revision: 60513
http://trac.macports.org/changeset/60513
Author: jameskyle at macports.org
Date: 2009-11-14 08:24:37 -0800 (Sat, 14 Nov 2009)
Log Message:
-----------
Search and replace atlas makefiles for instances of gcc and replacing with the specified compiler. Not fully complete yet #20070
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2009-11-14 15:54:14 UTC (rev 60512)
+++ trunk/dports/math/atlas/Portfile 2009-11-14 16:24:37 UTC (rev 60513)
@@ -51,6 +51,8 @@
port:bzip2 \
port:gzip
+universal_variant no
+
# Set fortran compiler flags
set myf77 ${prefix}/bin/gfortran-mp-4.3
@@ -70,23 +72,20 @@
-C sk ${prefix}/bin/gcc-mp-4.3 \
--cc=${prefix}/bin/gcc-mp-4.3 \
-b ${my_arch} \
- -Fa alg -fPIC
+ -Fa alg -fPIC
+
+configure.compiler macports-gcc-4.3
+configure.cc ${prefix}/bin/gcc-mp-4.3
+configure.cxx ${prefix}/bin/g++-mp-4.3
+build.env-append "CC=${prefix}/bin/gcc-mp-4.3 CXX=${prefix}/bin/g++-mp-4.3"
+
-configure.compiler macports-gcc-4.3
-
-
-
# we are configuring from the build directory
configure.dir ${workpath}/${name}-${version}/build
configure.cmd ../configure
# change the default compilers to those of gcc43 and make into shared library
-if {[variant_isset universal]} {
- ui_msg "Atlas does not currently support the universal variant. Your default arch will be used instead."
-}
-universal_variant no
-
extract {
# extract atlas and move to a consistent working directory name
system "cd ${workpath} && bunzip2 -dc ${distpath}/${atlasdist} | \
@@ -101,6 +100,7 @@
pre-configure {
+ reinplace "s|cc=gcc|cc=${prefix}/bin/gcc-mp-4.3|g" ${worksrcpath}/configure
# Get some system specific variables for maximum optimization
set cpufreq [expr {[exec sysctl -n hw.cpufrequency]/1000000}]
ui_debug "Setting CPU Frequency for: ${cpufreq}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091114/a8dcc9a3/attachment.html>
More information about the macports-changes
mailing list