# This file created by conda-build 3.24.0
# ------------------------------------------------

package:
  name: fftw
  version: 3.3.10
source:
  patches:
    - 0001-cmake-Set-SIMD-flags-on-appropriate-source-files-onl.patch
  sha256: 56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467
  url: http://www.fftw.org/fftw-3.3.10.tar.gz
build:
  number: 108
  run_exports:
    - fftw >=3.3.10,<4.0a0
  string: nompi_hc118613_108
requirements:
  build:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - autoconf 2.71 pl5321h2b4cb7a_1
    - automake 1.16.5 pl5321ha770c72_0
    - binutils_impl_linux-64 2.40 hf600244_0
    - binutils_linux-64 2.40 hbdbef99_0
    - bzip2 1.0.8 h7f98852_4
    - c-ares 1.19.1 hd590300_0
    - ca-certificates 2023.5.7 hbcca054_0
    - cmake 3.26.4 hcfe8598_0
    - expat 2.5.0 hcb278e6_1
    - gcc_impl_linux-64 11.4.0 h7aa1c59_0
    - gcc_linux-64 11.4.0 hfd045f2_0
    - gettext 0.21.1 h27087fc_0
    - gfortran_impl_linux-64 11.4.0 h86428dc_0
    - gfortran_linux-64 11.4.0 h3047280_0
    - gxx_impl_linux-64 11.4.0 h7aa1c59_0
    - gxx_linux-64 11.4.0 hfc1ae95_0
    - kernel-headers_linux-64 2.6.32 he073ed8_15
    - keyutils 1.6.1 h166bdaf_0
    - krb5 1.20.1 h81ceb04_0
    - ld_impl_linux-64 2.40 h41732ed_0
    - libcurl 8.1.2 h409715c_0
    - libedit 3.1.20191231 he28a2e2_2
    - libev 4.33 h516909a_1
    - libexpat 2.5.0 hcb278e6_1
    - libgcc-devel_linux-64 11.4.0 h922705a_0
    - libgcc-ng 13.1.0 he5830b7_0
    - libgfortran5 13.1.0 h15d22d2_0
    - libgomp 13.1.0 he5830b7_0
    - libnghttp2 1.52.0 h61bc06f_0
    - libnsl 2.0.0 h7f98852_0
    - libsanitizer 11.4.0 h4dcbe23_0
    - libssh2 1.11.0 h0841786_0
    - libstdcxx-devel_linux-64 11.4.0 h922705a_0
    - libstdcxx-ng 13.1.0 hfd8a6a1_0
    - libtool 2.4.7 h27087fc_0
    - libuv 1.44.2 h166bdaf_0
    - libzlib 1.2.13 hd590300_5
    - m4 1.4.18 h516909a_1001
    - make 4.3 hd18ef5c_1
    - ncurses 6.4 hcb278e6_0
    - openssl 3.1.1 hd590300_1
    - perl 5.32.1 2_h7f98852_perl5
    - rhash 1.4.3 h166bdaf_0
    - sysroot_linux-64 2.12 he073ed8_15
    - xz 5.2.6 h166bdaf_0
    - zlib 1.2.13 hd590300_5
    - zstd 1.5.2 h3eb15da_6
  host:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - libgcc-ng 13.1.0 he5830b7_0
    - libgfortran-ng 13.1.0 h69a702a_0
    - libgfortran5 13.1.0 h15d22d2_0
    - libgomp 13.1.0 he5830b7_0
    - libstdcxx-ng 13.1.0 hfd8a6a1_0
  run:
    - libgcc-ng >=12
    - libgfortran-ng
    - libgfortran5 >=11.4.0
    - libstdcxx-ng >=12
test:
  commands:
    - test ! -f ${PREFIX}/lib/libfftw3f.a
    - test ! -f ${PREFIX}/lib/libfftw3.a
    - test ! -f ${PREFIX}/lib/libfftw3l.a
    - test ! -f ${PREFIX}/lib/libfftw3f_threads.a
    - test ! -f ${PREFIX}/lib/libfftw3_threads.a
    - test ! -f ${PREFIX}/lib/libfftw3l_threads.a
    - test ! -f ${PREFIX}/lib/libfftw3f_omp.a
    - test ! -f ${PREFIX}/lib/libfftw3_omp.a
    - test ! -f ${PREFIX}/lib/libfftw3l_omp.a
    - test -f ${PREFIX}/include/fftw3.h
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3_threads${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3f${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3f_threads${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3l${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3l_threads${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3_omp${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3f_omp${SHLIB_EXT}']"
    - python -c "import ctypes; ctypes.cdll[r'${PREFIX}/lib/libfftw3l_omp${SHLIB_EXT}']"
    - bash test_cmake.sh
  files:
    - test_cmake.sh
    - test_cmake/*
  requires:
    - cmake
    - gcc_linux-64 11.*
    - gxx_linux-64 11.*
    - make
    - python >=3
about:
  dev_url: https://github.com/FFTW/fftw3
  home: http://fftw.org
  license: GPL-2.0-or-later
  license_file: COPYING
  summary: The fastest Fourier transform in the west.
extra:
  copy_test_source_files: true
  final: true
  recipe-maintainers:
    - alexbw
    - egpbos
    - grlee77
    - jakirkham
    - jschueller
