Changeset 144148 for trunk/dports/math


Ignore:
Timestamp:
Jan 3, 2016, 7:07:07 AM (4 years ago)
Author:
mcalhoun@…
Message:

SuiteSparse: add accelerate variant to make it easier to test which BLAS is being used in, e.g., Octave

File:
1 edited

Legend:

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

    r144147 r144148  
    263263}
    264264
    265 variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} conflicts openblas {
     265variant accelerate description {use BLAS from Apple's Accelerate.framework} conflicts atlas openblas {
     266    depends_lib-append port:vecLibFort
     267}
     268
     269variant atlas description {use BLAS from MacPorts' atlas port} conflicts accelerate openblas {
    266270    depends_lib-append port:atlas
    267271
     
    273277}
    274278
    275 variant openblas description {use BLAS from MacPorts' openblas port} conflicts atlas {
     279variant openblas description {use BLAS from MacPorts' openblas port} conflicts accelerate atlas {
    276280    depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
    277281
     
    281285}
    282286
     287if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
     288    default_variants-append +accelerate
     289}
     290
     291if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
     292    ui_error "\n\nYou must select either the +accelerate, +atlas, or +openblas variant.\n"
     293    return -code error "Invalid variant selection"
     294}
     295
    283296livecheck.type      regex
    284297livecheck.regex     ${name}-(\\d+(\\.\\d+)*)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.