[148863] trunk/dports/math/scalapack/Portfile

dstrubbe at macports.org dstrubbe at macports.org
Fri May 20 08:46:02 PDT 2016


Revision: 148863
          https://trac.macports.org/changeset/148863
Author:   dstrubbe at macports.org
Date:     2016-05-20 08:46:02 -0700 (Fri, 20 May 2016)
Log Message:
-----------
scalapack: Use linear_algebra port group.

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

Modified: trunk/dports/math/scalapack/Portfile
===================================================================
--- trunk/dports/math/scalapack/Portfile	2016-05-20 15:27:07 UTC (rev 148862)
+++ trunk/dports/math/scalapack/Portfile	2016-05-20 15:46:02 UTC (rev 148863)
@@ -4,6 +4,7 @@
 PortSystem          1.0
 PortGroup           cmake 1.0
 PortGroup           mpi 1.0
+PortGroup           linear_algebra 1.0
 
 name                scalapack
 version             2.0.2
@@ -40,32 +41,12 @@
     append portsandbox_profile " (allow process-exec (literal \"/bin/ps\") (with no-profile))"
 }
 
-if {![variant_isset atlas] && ![variant_isset openblas]} {
-    default_variants-append +accelerate
-}
-
-variant accelerate conflicts atlas openblas description {Use built-in Accelerate for BLAS and LAPACK} {
-    depends_lib-append    port:vecLibFort
-    configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libvecLibFort.dylib
-}
-
-variant openblas conflicts accelerate atlas description {Use OpenBLAS for BLAS and LAPACK} {
-    # allow OpenBLAS-devel too
-    depends_lib-append    path:lib/libopenblas.dylib:OpenBLAS
-    require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
-    configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libopenblas.dylib
-}
-
-variant atlas conflicts accelerate openblas description {Use ATLAS for BLAS and LAPACK} {
-    depends_lib-append    port:atlas
-    configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libsatlas.dylib
-}
-
 pre-configure {
     configure.args-append \
         -DMPI_C_COMPILER=${mpi.cc} \
         -DMPI_Fortran_COMPILER=${mpi.fc} \
-        -DMPIEXEC=${prefix}/bin/${mpi.exec}
+        -DMPIEXEC=${prefix}/bin/${mpi.exec} \
+        -DLAPACK_LIBRARIES="-L${prefix} ${linalglib}"
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160520/1ef28871/attachment.html>


More information about the macports-changes mailing list