Changeset 144147


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

SuiteSparse: add variant to use OpenBlas

File:
1 edited

Legend:

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

    r137208 r144147  
    8383            set BLAS "${prefix}/lib/libsatlas.dylib"
    8484        }
     85    } elseif {[variant_isset openblas]} {
     86        set BLAS "${prefix}/lib/libopenblas.dylib"
    8587    }
    8688    reinplace "s|@BLAS_LAPACK@|${BLAS}|g" ${makefile}
     
    134136            set atlas "-lsatlas"
    135137        }
     138    } elseif {[variant_isset openblas]} {
     139        set atlas "-lopenblas"
    136140    }
    137141
     
    259263}
    260264
    261 variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} {
     265variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} conflicts openblas {
    262266    depends_lib-append port:atlas
    263267
     
    269273}
    270274
     275variant openblas description {use BLAS from MacPorts' openblas port} conflicts atlas {
     276    depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
     277
     278    # LAPACK required
     279    PortGroup active_variants 1.1
     280    require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
     281}
     282
    271283livecheck.type      regex
    272284livecheck.regex     ${name}-(\\d+(\\.\\d+)*)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.