Changeset 148996


Ignore:
Timestamp:
May 24, 2016, 6:49:57 PM (3 years ago)
Author:
dstrubbe@…
Message:

octave: Use linear_algebra port group.

File:
1 edited

Legend:

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

    r148872 r148996  
    55PortGroup           compilers  1.0
    66PortGroup           muniversal 1.0
    7 PortGroup           active_variants 1.1
    87PortGroup           compiler_blacklist_versions 1.0
     8PortGroup           linear_algebra 1.0
    99
    1010name                octave
     
    1717long_description    \
    1818    GNU Octave is a high-level language, primarily intended for numerical \
    19     computations.  It provides a convenient command line interface for \
     19    computations. It provides a convenient command-line interface for \
    2020    solving linear and nonlinear problems numerically.
    2121
     
    275275    port:pstoedit
    276276
    277 variant accelerate description {use BLAS from Apple's Accelerate.framework} conflicts atlas openblas {
    278     depends_lib-append port:vecLibFort
    279 
    280     configure.args-append        \
    281         --with-blas=-lvecLibFort \
    282         --with-lapack=""
    283 }
    284 
    285 variant openblas description {use BLAS from MacPorts' openblas port} conflicts atlas accelerate {
    286 
    287     depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
    288     # LAPACK required
    289     require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
    290 
    291     # replicate default values if configure script finds openblas on its own
    292     configure.args-append        \
    293         --with-blas=-lopenblas   \
    294         --with-lapack=""
    295 }
    296 
    297 variant atlas description {use BLAS from MacPorts' atlas port} conflicts accelerate openblas {
    298     depends_lib-append port:atlas
    299 
    300     # replicate default values if configure script finds atlas on its own
    301     configure.args-append        \
    302         --with-blas="-lcblas -lf77blas -latlas" \
    303         --with-lapack=-llapack
    304 }
    305 
    306 if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
    307     default_variants-append +accelerate
    308 }
    309 
    310 if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
    311     ui_error "\n\nYou must select either the +accelerate, +atlas, or +openblas variant.\n"
    312     return -code error "Invalid variant selection"
     277pre-configure {
     278    configure.args-append --with-blas="-L${prefix}/lib ${linalglib}" --with-lapack=""
    313279}
    314280
Note: See TracChangeset for help on using the changeset viewer.