Ticket #49579: patch-Arpack.diff

File patch-Arpack.diff, 1.2 KB (added by NicosPavlov, 9 years ago)
  • Portfile

     
    6363    set universal_archs_supported "ppc ppc64"
    6464}
    6565
    66 variant accelerate conflicts atlas description {build with Accelerate framework} {
     66variant accelerate conflicts atlas openblas description {build with Accelerate framework} {
    6767    # the change of LDFLAGS is required to avoid linking against the ATLAS ones
    6868    # if they are present; if we specify /usr/lib/libblas.dylib directly, the
    6969    # linking fails. http://forge.scilab.org/index.php/p/arpack-ng/issues/1220/
     
    7575    }
    7676}
    7777
    78 variant atlas description {build with atlas} {
     78variant atlas conflicts accelerate openblas description {build with atlas} {
    7979    depends_lib-append port:atlas
    8080    configure.args-append --with-blas="-L${prefix}/lib -lsatlas"
    8181}
    8282
    83 if {![variant_isset atlas]} {
     83variant openblas conflicts accelerate atlas description {build with openblas} {
     84    depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
     85    configure.args-append --with-blas="-L${prefix}/lib -lopenblas"
     86}
     87
     88if {![variant_isset atlas] && ![variant_isset openblas]} {
    8489    default_variants +accelerate
    8590}
    8691