Changeset 148861 for trunk/dports/math


Ignore:
Timestamp:
May 20, 2016, 3:16:55 PM (3 years ago)
Author:
dstrubbe@…
Message:

itsol: Use linear_algebra port group. This adds support for OpenBLAS.

File:
1 edited

Legend:

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

    r146572 r148861  
    55PortGroup           muniversal 1.0
    66PortGroup           compilers 1.0
     7PortGroup           linear_algebra 1.0
    78
    89name                itsol
     
    4344compilers.setup     require_fortran
    4445
    45 variant atlas description {use BLAS from MacPorts' atlas port} \
    46     conflicts accelerate {}
    47 
    48 variant accelerate description \
    49     {use BLAS from Apple's Accelerate.framework} \
    50     conflicts atlas {}
    51 
    52 set blas_variant_selection ""
    53 if {[variant_isset accelerate]} {
    54     set blas_variant_selection "accelerate"
    55 } else {
    56     set blas_variant_selection "atlas"
    57 }
    58 
    59 default_variants +${blas_variant_selection}
    60 
    61 # make sure that either +accelerate or +atlas is selected
    62 
    63 if {![variant_isset accelerate] && ![variant_isset atlas]} {
    64     ui_error "\n\nYou cannot use the -${blas_variant_selection} variant alone; you must select either the +accelerate or +atlas variant.\n"
    65     return -code error "Invalid variant selection"
    66 }
    67 
    68 #######################
    69 # figure out BLAS flags
    70 
    71 if {[variant_isset accelerate]} {
    72 
    73     depends_lib-append        port:vecLibFort
    74     configure.ldflags-append  -lvecLibFort
    75 
    76 } else {
    77 
    78     depends_lib-append       port:atlas
    79     configure.ldflags-append -lsatlas
    80 
    81 }
    82 
    8346##########################
    8447# configure MacPorts build
     
    9154destroot.env-append  PREFIX=${prefix}
    9255
     56pre-configure {
     57    configure.ldflags-append "${linalglib}"
     58}
     59
    9360test.run       yes
    9461pre-test {
Note: See TracChangeset for help on using the changeset viewer.