[139271] trunk/dports/python/py-scipy/Portfile

michaelld at macports.org michaelld at macports.org
Mon Aug 10 09:33:09 PDT 2015


Revision: 139271
          https://trac.macports.org/changeset/139271
Author:   michaelld at macports.org
Date:     2015-08-10 09:33:09 -0700 (Mon, 10 Aug 2015)
Log Message:
-----------
py*-scipy: add +openblas variant, and force not using openblas without this variant; hopefully addresses ticket #46763.

Modified Paths:
--------------
    trunk/dports/python/py-scipy/Portfile

Modified: trunk/dports/python/py-scipy/Portfile
===================================================================
--- trunk/dports/python/py-scipy/Portfile	2015-08-10 16:23:02 UTC (rev 139270)
+++ trunk/dports/python/py-scipy/Portfile	2015-08-10 16:33:09 UTC (rev 139271)
@@ -8,6 +8,7 @@
 
 name                    py-scipy
 version                 0.16.0
+revision                1
 platforms               darwin
 license                 BSD
 maintainers             sean michaelld openmaintainer
@@ -67,11 +68,18 @@
         depends_lib-append  port:atlas
     }
 
+    variant openblas description "Use MacPorts OpenBLAS Libraries" {
+        depends_lib-append  path:lib/libopenblas.dylib:openblas
+    }
+
     if {[variant_isset atlas]} {
-        build.env-append    ATLAS=${prefix}/lib \
+        # use MacPorts atlas
+        build.env-append    OPENBLAS=None \
+                            ATLAS=${prefix}/lib \
                             LAPACK=${prefix}/lib \
                             BLAS=${prefix}/lib
-        destroot.env-append ATLAS=${prefix}/lib \
+        destroot.env-append OPENBLAS=None \
+                            ATLAS=${prefix}/lib \
                             LAPACK=${prefix}/lib \
                             BLAS=${prefix}/lib
 
@@ -111,11 +119,20 @@
 
         }
 
+    } elseif {[variant_isset openblas]} {
+        # use MacPorts OpenBLAS
+        build.env-append    OPENBLAS=${prefix}/lib \
+                            ATLAS=None
+        destroot.env-append OPENBLAS=${prefix}/lib \
+                            ATLAS=None
     } else {
-        build.env-append    ATLAS=None \
+        # use Accelerate BLAS
+        build.env-append    OPENBLAS=None \
+                            ATLAS=None \
                             LAPACK=/usr/lib \
                             BLAS=/usr/lib
-        destroot.env-append ATLAS=None \
+        destroot.env-append OPENBLAS=None \
+                            ATLAS=None \
                             LAPACK=/usr/lib \
                             BLAS=/usr/lib
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150810/286829fb/attachment.html>


More information about the macports-changes mailing list