Changeset 148850 for trunk/dports/math


Ignore:
Timestamp:
May 20, 2016, 1:10:56 AM (3 years ago)
Author:
dstrubbe@…
Message:

arpack: Use new linear_algebra port group.

File:
1 edited

Legend:

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

    r145625 r148850  
    33
    44PortSystem          1.0
    5 PortGroup           active_variants 1.1
    65PortGroup           muniversal 1.0
    76PortGroup           mpi 1.0
    87PortGroup           github 1.0
     8PortGroup           linear_algebra 1.0
    99
    1010github.setup        opencollab arpack-ng 3.3.0
     
    4242
    4343pre-configure {
     44    configure.args-append --with-blas="-L${prefix}/lib ${linalglib}"
     45
    4446    if {${os.platform} eq "darwin" && ${os.major} < 9} {
    4547        ui_error "${name} ${version} requires Mac OS X 10.5 or greater"
     
    6264}
    6365
    64 variant accelerate conflicts atlas openblas description {build with Accelerate framework} {
    65     depends_lib-append port:vecLibFort
    66     configure.args-append --with-blas="-L${prefix}/lib -lvecLibFort"
    67 }
    68 
    69 variant atlas conflicts accelerate openblas description {build with atlas} {
    70     depends_lib-append port:atlas
    71     configure.args-append --with-blas="-L${prefix}/lib -lsatlas"
    72 }
    73 
    74 variant openblas conflicts accelerate atlas description {build with openblas} {
    75     require_active_variants openblas lapack
    76     depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
    77     configure.args-append --with-blas="-L${prefix}/lib -lopenblas"
    78 }
    79 
    80 if {![variant_isset atlas] && ![variant_isset openblas]} {
    81     default_variants +accelerate
    82 }
    83 
    84 if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
    85     ui_error "\n\nYou must select either the +accelerate, +atlas, or +openblas variant.\n"
    86     return -code error "Invalid variant selection"
    87 }
    88 
    8966post-destroot {
    9067    reinplace "s|/usr|${prefix}|g" ${destroot}${prefix}/lib/pkgconfig/arpack.pc
Note: See TracChangeset for help on using the changeset viewer.