Ticket #29256: Portfile.2.diff

File Portfile.2.diff, 1.5 KB (added by tenomoto (Takeshi Enomoto), 14 years ago)
  • Portfile

    old new  
    8383    depends_lib-append port:atlas
    8484}
    8585variant accelerate conflicts atlas description {use BLAS from Accelerate.framework} {
    86     configure.fflags-append -ff2c
    87     if {![variant_isset g95]} {
    88         configure.args-append   --with-blas="-framework Accelerate"
     86    if {[variant_isset g95] || ([string match *64* $build_arch] && ${os.major} == 10)} {
     87        depends_lib-append      port:dotwrp
     88        configure.args-append   --with-blas="-ldotwrp -framework Accelerate"
    8989    }
    9090    configure.args-append   --with-lapack="-framework Accelerate"
    91    
    92     if {[string match *64* $build_arch] && ${os.major} == 10} {
    93         # see http://www.macresearch.org/lapackblas-fortran-106#comment-17217
    94         pre-fetch {
    95             return -code error "Accelerate.framework cannot be used by 64-bit FORTRAN code on Snow Leopard."
    96         }
    97     }
    9891}
    9992if {[variant_isset g95]} {
    10093    default_variants +accelerate
     
    124117
    125118variant g95 description {build with g95} requires accelerate conflicts atlas gcc43 gcc44 gcc45 {
    126119    depends_build-append    port:g95
    127     depends_lib-append  port:dotwrp
    128120    configure.f77       "${prefix}/bin/g95"
    129     configure.args-append   --with-blas="-ldotwrp -framework Accelerate"
    130 }
     121}
    131122
    132123if { ![variant_isset gcc43] && ![variant_isset gcc45] && ![variant_isset g95] } {
    133124    default_variants +gcc44