Ticket #55811: Portfile-fftw-3.diff

File Portfile-fftw-3.diff, 3.1 KB (added by dstrubbe (David Strubbe), 6 years ago)
  • math/fftw-3/Portfile

    diff --git a/math/fftw-3/Portfile b/math/fftw-3/Portfile
    index 55f41c3d62..6689503e58 100644
    a b PortGroup compiler_blacklist_versions 1.0 
    66PortGroup       mpi 1.0
    77
    88name            fftw-3
    9 version         3.3.5
    10 revision        1
     9version         3.3.7
    1110categories      math
    1211license         GPL-2+
    1312platforms       darwin
    long_description \ 
    3938    improvements relative to 2.x, but is not backwardly \
    4039    compatible.
    4140
    42 checksums           rmd160  d5800f3d56b7b499265633b52a0b9850b17c148e \
    43                     sha256  8ecfe1b04732ec3f5b7d279fdb8efcad536d555f9d1e8fabd027037d45ea8bcf
    44 
    45 # Don't link with "-flat_namespace -undefined suppress" on Yosemite and
    46 # later (#45707).
    47 patchfiles \
    48     yosemite-libtool.patch
     41checksums           rmd160  6fb90ce7190190998ff4c579934b76de270db271 \
     42                    sha256  3b609b7feba5230e8f6dd8d245ddbefac324c5a6ae4186947670d9ac2cd25573
    4943
    5044variant pfft_patches description {Apply patches recommended for use as dependency of pfft port} {
    5145    if {![mpi_variant_isset]} {
    pre-configure { 
    9791            x86_64 "--enable-sse2"
    9892        }
    9993    }
     94
     95    if {![variant_isset universal]} {
     96        configure.args-append $merger_configure_args(${os.arch})
     97    }
    10098}
    10199
    102100test.run     yes
    platform darwin { 
    110108  }
    111109}
    112110
    113 platform powerpc {
    114   if {![variant_isset universal]} {
    115     configure.args-append --enable-fma
    116   }
    117 }
    118 
    119111subport fftw-3-single {
    120112    configure.args-append --enable-float
    121113
    122114    depends_lib port:fftw-3
    123115
    124     platform powerpc {
    125         if {![variant_isset universal]} {
    126             configure.args-append --enable-altivec
    127         }
    128     }
    129 
    130116    pre-configure {
    131117        if { [avx_compiler_isset] == 1 } {
    132118            array set merger_configure_args {
    subport fftw-3-single { 
    144130            }
    145131        }
    146132
     133        if {![variant_isset universal]} {
     134            configure.args-append $merger_configure_args(${os.arch})
     135        }
     136
    147137        platform i386 {
    148138            if {![variant_isset universal]} {
    149139                configure.args-delete --enable-sse2
    150140                configure.args-append --enable-sse
    151                 if { [avx_compiler_isset] == 1 } {
    152                     configure.args-append --enable-avx
    153                 }
    154141            }
    155142        }
    156143    }
  • deleted file math/fftw-3/files/yosemite-libtool.patch

    diff --git a/math/fftw-3/files/yosemite-libtool.patch b/math/fftw-3/files/yosemite-libtool.patch
    deleted file mode 100644
    index 710e18fc89..0000000000
    + -  
    1 Index: configure
    2 ===================================================================
    3 --- configure.orig
    4 +++ configure
    5 @@ -8703,7 +8703,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
    6        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
    7         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
    8           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
    9 -       10.[012]*)
    10 +       10.[012][,.]*)
    11           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    12         10.*)
    13           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;