Ticket #32351: Portfile.diff

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

Portfile.diff

  • Portfile

     
    3737                    port:texinfo
    3838
    3939depends_lib         port:arpack \
    40                     port:atlas \
    4140                    port:curl \
    4241                    port:fftw-3 \
    4342                    port:fftw-3-single \
     
    6261
    6362universal_variant   no
    6463
     64if {${configure.compiler}=="clang"} {
     65    configure.compiler  llvm-gcc-4.2
     66}
    6567configure.args      --disable-dependency-tracking \
    6668                    --without-x \
    6769                    --disable-docs \
     
    100102    configure.f77           "${prefix}/bin/g95"
    101103}
    102104
     105variant atlas conflicts accelerate description {use BLAS from ATLAS} {
     106    depends_lib-append port:atlas
     107}
     108
     109variant accelerate conflicts atlas description {use BLAS from Accelerate.framework} {
     110#    if {![variant_isset g95]} {
     111#        configure.fflags-append -ff2c
     112#   }
     113#    if {[variant_isset g95] || ([string match *64* $build_arch] && ${os.major} >= 10)} {
     114        depends_lib-append      port:dotwrp
     115        configure.args-append   --with-blas="-ldotwrp -framework Accelerate"
     116#    }
     117    configure.args-append   --with-lapack="-framework Accelerate"
     118}
     119
     120if {[variant_isset g95]} {
     121    default_variants +accelerate
     122} elseif {![variant_isset accelerate]} {
     123    default_variants +atlas
     124}
     125
    103126# check for GCC / G95 variants.  The default here must match the
    104127# default found in the 'arpack' and 'atlas' ports.
    105128