Changeset 144288 for trunk/dports/math


Ignore:
Timestamp:
Jan 6, 2016, 1:13:31 AM (4 years ago)
Author:
sean@…
Message:

scalapack: add test phase, openblas, and atlas; fixes #49511

File:
1 edited

Legend:

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

    r130952 r144288  
    88name                scalapack
    99version             2.0.2
     10revision            1
    1011categories          math
    1112platforms           darwin
     
    3031configure.args      -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
    3132                    -DBUILD_SHARED_LIBS=ON \
    32                     -DBUILD_TESTING=OFF
     33                    -DBUILD_TESTING=ON
     34# BUILD_TESTING only affects BLACS directory anyway
     35
     36test.run            yes
     37
     38pre-test {
     39    # test infrastructure uses /bin/ps (I think for checking on job timeout), which is forbidden by sandboxing
     40    append portsandbox_profile " (allow process-exec (literal \"/bin/ps\") (with no-profile))"
     41}
     42
     43if {![variant_isset atlas] && ![variant_isset openblas]} {
     44    default_variants-append +accelerate
     45}
     46
     47variant 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
     52variant 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
     59variant 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}
    3363
    3464pre-configure {
    3565    configure.args-append \
    36                     -DMPI_C_COMPILER=${mpi.cc} \
    37                     -DMPI_Fortran_COMPILER=${mpi.fc}
     66        -DMPI_C_COMPILER=${mpi.cc} \
     67        -DMPI_Fortran_COMPILER=${mpi.fc} \
     68        -DMPIEXEC=${prefix}/bin/${mpi.exec}
    3869}
    3970
Note: See TracChangeset for help on using the changeset viewer.