Modified: trunk/dports/math/SuiteSparse/Portfile (144146 => 144147)
--- trunk/dports/math/SuiteSparse/Portfile 2016-01-03 06:51:46 UTC (rev 144146)
+++ trunk/dports/math/SuiteSparse/Portfile 2016-01-03 07:03:08 UTC (rev 144147)
@@ -82,6 +82,8 @@
} else {
set BLAS "${prefix}/lib/libsatlas.dylib"
}
+ } elseif {[variant_isset openblas]} {
+ set BLAS "${prefix}/lib/libopenblas.dylib"
}
reinplace "s|@BLAS_LAPACK@|${BLAS}|g" ${makefile}
@@ -133,6 +135,8 @@
} else {
set atlas "-lsatlas"
}
+ } elseif {[variant_isset openblas]} {
+ set atlas "-lopenblas"
}
set major [join [lrange [split ${version} .] 0 0] .]
@@ -258,7 +262,7 @@
depends_lib-append port:metis
}
-variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} {
+variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} conflicts openblas {
depends_lib-append port:atlas
# +atlas requires atlas to be installed without +nofortran
@@ -268,5 +272,13 @@
}
+variant openblas description {use BLAS from MacPorts' openblas port} conflicts atlas {
+ depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
+
+ # LAPACK required
+ PortGroup active_variants 1.1
+ require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
+}
+
livecheck.type regex
livecheck.regex ${name}-(\\d+(\\.\\d+)*)${extract.suffix}