| 35 | test.run yes |
| 36 | |
| 37 | pre-test { |
| 38 | # test infrastructure uses /bin/ps (I think for checking on job timeout), which is forbidden by sandboxing |
| 39 | append portsandbox_profile " (allow process-exec (literal \"/bin/ps\") (with no-profile))" |
| 40 | } |
| 41 | |
| 42 | if {![variant_isset atlas] && ![variant_isset openblas]} { |
| 43 | default_variants-append +accelerate |
| 44 | } |
| 45 | |
| 46 | variant accelerate conflicts atlas openblas description {Use built-in Accelerate for BLAS and LAPACK} { |
| 47 | depends_lib-append port:vecLibFort |
| 48 | configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libvecLibFort.dylib |
| 49 | } |
| 50 | |
| 51 | variant openblas conflicts accelerate atlas description {Use OpenBLAS for BLAS and LAPACK} { |
| 52 | # allow OpenBLAS-devel too |
| 53 | depends_lib-append path:lib/libopenblas.dylib:OpenBLAS |
| 54 | require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack |
| 55 | configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libopenblas.dylib |
| 56 | } |
| 57 | |
| 58 | variant atlas conflicts accelerate openblas description {Use ATLAS for BLAS and LAPACK} { |
| 59 | depends_lib-append port:atlas |
| 60 | configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libsatlas.dylib |
| 61 | } |
| 62 | |