[112143] trunk/dports/math/OpenBLAS/Portfile

nicos at macports.org nicos at macports.org
Sun Oct 13 08:05:31 PDT 2013


Revision: 112143
          https://trac.macports.org/changeset/112143
Author:   nicos at macports.org
Date:     2013-10-13 08:05:31 -0700 (Sun, 13 Oct 2013)
Log Message:
-----------
Use an AVX-capable fortran compiler for clang variant

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

Modified: trunk/dports/math/OpenBLAS/Portfile
===================================================================
--- trunk/dports/math/OpenBLAS/Portfile	2013-10-13 15:05:28 UTC (rev 112142)
+++ trunk/dports/math/OpenBLAS/Portfile	2013-10-13 15:05:31 UTC (rev 112143)
@@ -7,6 +7,7 @@
 
 github.setup        xianyi OpenBLAS 0.2.8 v
 
+revision            1
 categories          math science
 license             BSD
 maintainers         nicos openmaintainer
@@ -56,9 +57,11 @@
         # Xcode's clang < 5.0 does not support avx
         configure.compiler      macports-clang-3.3
     }
-    #Also need gcc for compiling fortran code: forcing to default gcc
-    depends_build-append    port:gcc48
-    configure.fc            ${prefix}/bin/gfortran-mp-4.8
+    #Also need a compiler for fortran code: forcing to dragonegg to
+    #ensure AVX-capable fortran compiler 
+    depends_build-append    port:dragonegg-3.3-gcc-4.8
+    configure.fc            ${prefix}/bin/dragonegg-3.3-gfortran-mp-4.8
+
 }
 
 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && \
@@ -115,7 +118,13 @@
         } else {
             puts $makeINC "BINARY = 32"
         }
-        puts $makeINC "COMMON_OPT = -O3 -march=native"
+        if {![variant_isset clang]} {
+            puts $makeINC "COMMON_OPT = -O3 -march=native"
+        } else {
+            #Ensure to use the AVX-capable assembler
+            puts $makeINC "COMMON_OPT = -O3 -march=native \
+                -specs=${prefix}/libexec/dragonegg/llvm33gcc48-integrated-as.specs"
+        }       
         puts $makeINC "COMMON_PROF = -pg"
 
         if {![variant_isset lapack]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131013/e87638df/attachment.html>


More information about the macports-changes mailing list