[144147] trunk/dports/math/SuiteSparse/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Sat Jan 2 23:03:08 PST 2016
Revision: 144147
https://trac.macports.org/changeset/144147
Author: mcalhoun at macports.org
Date: 2016-01-02 23:03:08 -0800 (Sat, 02 Jan 2016)
Log Message:
-----------
SuiteSparse: add variant to use OpenBlas
Modified Paths:
--------------
trunk/dports/math/SuiteSparse/Portfile
Modified: trunk/dports/math/SuiteSparse/Portfile
===================================================================
--- 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}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160102/b9c92510/attachment.html>
More information about the macports-changes
mailing list