Changeset 148863 for trunk/dports/math


Ignore:
Timestamp:
May 20, 2016, 3:46:02 PM (3 years ago)
Author:
dstrubbe@…
Message:

scalapack: Use linear_algebra port group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/scalapack/Portfile

    r144288 r148863  
    55PortGroup           cmake 1.0
    66PortGroup           mpi 1.0
     7PortGroup           linear_algebra 1.0
    78
    89name                scalapack
     
    4142}
    4243
    43 if {![variant_isset atlas] && ![variant_isset openblas]} {
    44     default_variants-append +accelerate
    45 }
    46 
    47 variant accelerate conflicts atlas openblas description {Use built-in Accelerate for BLAS and LAPACK} {
    48     depends_lib-append    port:vecLibFort
    49     configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libvecLibFort.dylib
    50 }
    51 
    52 variant openblas conflicts accelerate atlas description {Use OpenBLAS for BLAS and LAPACK} {
    53     # allow OpenBLAS-devel too
    54     depends_lib-append    path:lib/libopenblas.dylib:OpenBLAS
    55     require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
    56     configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libopenblas.dylib
    57 }
    58 
    59 variant atlas conflicts accelerate openblas description {Use ATLAS for BLAS and LAPACK} {
    60     depends_lib-append    port:atlas
    61     configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libsatlas.dylib
    62 }
    63 
    6444pre-configure {
    6545    configure.args-append \
    6646        -DMPI_C_COMPILER=${mpi.cc} \
    6747        -DMPI_Fortran_COMPILER=${mpi.fc} \
    68         -DMPIEXEC=${prefix}/bin/${mpi.exec}
     48        -DMPIEXEC=${prefix}/bin/${mpi.exec} \
     49        -DLAPACK_LIBRARIES="-L${prefix} ${linalglib}"
    6950}
    7051
Note: See TracChangeset for help on using the changeset viewer.