[144148] trunk/dports/math/SuiteSparse/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sat Jan 2 23:07:07 PST 2016


Revision: 144148
          https://trac.macports.org/changeset/144148
Author:   mcalhoun at macports.org
Date:     2016-01-02 23:07:07 -0800 (Sat, 02 Jan 2016)
Log Message:
-----------
SuiteSparse: add accelerate variant to make it easier to test which BLAS is being used in, e.g., Octave

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

Modified: trunk/dports/math/SuiteSparse/Portfile
===================================================================
--- trunk/dports/math/SuiteSparse/Portfile	2016-01-03 07:03:08 UTC (rev 144147)
+++ trunk/dports/math/SuiteSparse/Portfile	2016-01-03 07:07:07 UTC (rev 144148)
@@ -262,7 +262,11 @@
     depends_lib-append port:metis
 }
 
-variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} conflicts openblas {
+variant accelerate description {use BLAS from Apple's Accelerate.framework} conflicts atlas openblas {
+    depends_lib-append port:vecLibFort
+}
+
+variant atlas description {use BLAS from MacPorts' atlas port} conflicts accelerate openblas {
     depends_lib-append port:atlas
 
     # +atlas requires atlas to be installed without +nofortran
@@ -272,7 +276,7 @@
 
 }
 
-variant openblas description {use BLAS from MacPorts' openblas port} conflicts atlas {
+variant openblas description {use BLAS from MacPorts' openblas port} conflicts accelerate atlas {
     depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
 
     # LAPACK required
@@ -280,5 +284,14 @@
     require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
 }
 
+if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
+    default_variants-append +accelerate
+}
+
+if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
+    ui_error "\n\nYou must select either the +accelerate, +atlas, or +openblas variant.\n"
+    return -code error "Invalid variant selection"
+}
+
 livecheck.type      regex
 livecheck.regex     ${name}-(\\d+(\\.\\d+)*)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160102/6399c9a7/attachment.html>


More information about the macports-changes mailing list