Changeset 144227 for trunk/dports/lang


Ignore:
Timestamp:
Jan 5, 2016, 12:49:23 AM (3 years ago)
Author:
sean@…
Message:

julia: use macports openblas port

This is change in the interface to julia to use the 32-bit interface for
BLAS/LAPACK. For users that want a 64-bit interface, I have provided a variant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/julia/Portfile

    r144226 r144227  
    77
    88github.setup        JuliaLang julia 0.4.2 v
     9revision            1
    910categories-append   lang math science
    1011maintainers         sean openmaintainer
     
    4344    port:ncurses \
    4445    port:arpack \
    45     port:libgit2
     46    port:libgit2 \
     47    port:OpenBLAS
    4648
    4749use_configure       no
     
    6163    ln -s ${prefix}/lib/libsuitesparseconfig.dylib ${worksrcpath}/usr/lib/
    6264    ln -s ${prefix}/lib/libarpack.dylib ${worksrcpath}/usr/lib/
     65    ln -s ${prefix}/lib/libopenblas.dylib ${worksrcpath}/usr/lib/
    6366}
    6467
    6568build {}
    6669
    67 # julia can't use Apple's Accelerate framework so the choices are to build
    68 # lapack (32-bit interface) or build OpenBLAS (64-bit interface).
    69 # Alternatively, we could try to use MacPorts' own OpenBLAS port but that would
    70 # need to be updated to build the 64-bit interface which is inocmpatible with
    71 # the 32-bit interface. Since that could break other ports dependent on
    72 # OpenBLAS, we'll just stick with having julia download and build its own
    73 # internal OpenBLAS.
    7470pre-destroot {
    7571    destroot.args-append \
     
    8884        USE_SYSTEM_ARPACK=1 \
    8985        USE_SYSTEM_SUITESPARSE=1 \
    90         USE_SYSTEM_LIBGIT2=1
     86        USE_SYSTEM_LIBGIT2=1 \
     87        USE_SYSTEM_BLAS=1 \
     88        USE_SYSTEM_LAPACK=1 \
     89        USE_BLAS64=0 \
     90        LIBBLAS=-lopenblas \
     91        LIBBLASNAME=libopenblas \
     92        LIBLAPACK=-lopenblas \
     93        LIBLAPACKNAME=libopenblas
    9194}
    9295
     
    107110}
    108111
     112variant blas64 description {Build internal OpenBLAS with 64-bit interface} {
     113    depends_lib-delete \
     114        port:OpenBLAS
     115
     116    pre-destroot {
     117        destroot.args-delete \
     118            USE_SYSTEM_BLAS=1 \
     119            USE_SYSTEM_LAPACK=1 \
     120            USE_BLAS64=0 \
     121            LIBBLAS=-lopenblas \
     122            LIBBLASNAME=libopenblas \
     123            LIBLAPACK=-lopenblas \
     124            LIBLAPACKNAME=libopenblas
     125    }
     126}
     127
    109128livecheck.regex     archive/[join ${github.tag_prefix} ""](\[^"-\]+)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.