Fftw-3-single version 3.2.2 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    fftw-3-single  most recent diff


    version 3.2.2

      View the most recent changes for the fftw-3-single port at: fftw-3-single.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for fftw-3-single.
      The raw portfile for fftw-3-single 3.2.2 is located here:
      http://fftw-3-single.darwinports.com/dports/math/fftw-3-single/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/fftw-3-single


      The fftw-3-single Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: fftw-3-single
      Version: 3.2.2
      Category: math
      Platform: darwin
      Maintainers: ram openmaintainer
      Homepage: http://www.fftw.org/
      distname fftw-${version}
      dist_subdir fftw-3

      Master Sites: ${homepage} ftp://ftp.fftw.org/pub/fftw/ ftp://ftp.kusastro.kyoto-u.ac.jp/pub/src/GNU/fftw/

      Description: Fast C routines to compute the Discrete Fourier Transform

      Long Description: FFTW is a C subroutine library for computing the Discrete Fourier Transform (DFT) in one or more dimensions, of both real and complex data, and of arbitrary input size. We believe that FFTW, which is free software, should become the FFT library of choice for most applications. Our benchmarks, performed on a variety of platforms, show that FFTW's performance is typically superior to that of other publicly available FFT software. Moreover, FFTW's performance is portable: the program will perform well on most architectures without modification. This port is of fftw version 3.x. It has many improvements relative to 2.x, but is not backwardly compatible.

      Checksums: md5 b616e5c91218cc778b5aa735fefb61ae sha1 d43b799eedfb9408f62f9f056f5e8a645618467b rmd160 27af9b97072fa3a41b91b9430d093f671a1cd359

      configure.args --enable-threads --enable-float --disable-fortran --enable-shared

      configure.cflags-append -fno-common -O3 -fomit-frame-pointer -fstrict-aliasing

      array set merger_configure_args {
      ppc "--enable-fma --enable-altivec"
      ppc64 "--enable-fma --enable-altivec"
      i386 "--enable-sse"
      x86_64 "--enable-sse"
      }

      depends_lib port:fftw-3

      test.run yes
      test.target check

      use_parallel_build yes

      platform i386 {
      if {![variant_isset universal]} {
      configure.args-append --enable-sse
      }
      }

      platform powerpc {
      if {![variant_isset universal]} {
      configure.args-append --enable-fma --enable-altivec
      }
      }

      Variant: gcc42 description {create Fortran wrappers using gcc42} conflicts gcc43 gcc44 g95 {
      depends_lib-append port:gcc42
      configure.f77 gfortran-mp-4.2
      configure.args-delete --disable-fortran
      if { ${os.arch} == "i386" } {
      lappend merger_configure_args(ppc) "--disable-fortran"
      lappend merger_configure_args(ppc64) "--disable-fortran"
      } else {
      lappend merger_configure_args(i386) "--disable-fortran"
      lappend merger_configure_args(x86_64) "--disable-fortran"
      }
      }

      Variant: gcc43 description {create Fortran wrappers using gcc43} conflicts gcc42 gcc44 g95 {
      depends_lib-append port:gcc43
      configure.f77 gfortran-mp-4.3
      configure.args-delete --disable-fortran
      if { ${os.arch} == "i386" } {
      lappend merger_configure_args(ppc) "--disable-fortran"
      lappend merger_configure_args(ppc64) "--disable-fortran"
      } else {
      lappend merger_configure_args(i386) "--disable-fortran"
      lappend merger_configure_args(x86_64) "--disable-fortran"
      }
      }

      Variant: gcc44 description {create Fortran wrappers using gcc44} conflicts gcc42 gcc43 g95 {
      depends_lib-append port:gcc44
      configure.f77 gfortran-mp-4.4
      configure.args-delete --disable-fortran
      if { ${os.arch} == "i386" } {
      lappend merger_configure_args(ppc) "--disable-fortran"
      lappend merger_configure_args(ppc64) "--disable-fortran"
      } else {
      lappend merger_configure_args(i386) "--disable-fortran"
      lappend merger_configure_args(x86_64) "--disable-fortran"
      }
      }

      Variant: g95 description {create Fortran wrappers using f95} conflicts gcc42 gcc43 {
      depends_lib-append port:g95
      configure.f77 g95
      configure.args-delete --disable-fortran
      if { ${os.arch} == "i386" } {
      lappend merger_configure_args(ppc) "--disable-fortran"
      lappend merger_configure_args(ppc64) "--disable-fortran"
      lappend merger_configure_args(x86_64) "--disable-fortran"
      } else {
      lappend merger_configure_args(i386) "--disable-fortran"
      lappend merger_configure_args(ppc64) "--disable-fortran"
      lappend merger_configure_args(x86_64) "--disable-fortran"
      }
      }

      post-destroot {
      file delete ${destroot}${prefix}/include/fftw3.f
      file delete ${destroot}${prefix}/include/fftw3.h
      file delete ${destroot}${prefix}/bin/fftw-wisdom-to-conf
      file delete ${destroot}${prefix}/share/man/man1/fftw-wisdom-to-conf.1
      file delete ${destroot}${prefix}/share/info/fftw3.info
      file delete ${destroot}${prefix}/share/info/fftw3.info-1
      file delete ${destroot}${prefix}/share/info/fftw3.info-2
      file delete ${destroot}${prefix}/share/info/fftw3.info-3
      file delete ${destroot}${prefix}/share/info/fftw3.info-4
      file delete ${destroot}${prefix}/share/info/fftw3.info-5
      }

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex {FFTW (\d+(?:\.\d+)*) is the latest}

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/fftw-3-single
      % sudo port install fftw-3-single
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching fftw-3-single
      ---> Verifying checksum for fftw-3-single
      ---> Extracting fftw-3-single
      ---> Configuring fftw-3-single
      ---> Building fftw-3-single with target all
      ---> Staging fftw-3-single into destroot
      ---> Installing fftw-3-single
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using fftw-3-single with these commands:
      %  man fftw-3-single
      % apropos fftw-3-single
      % which fftw-3-single
      % locate fftw-3-single

     Where to find more information:

    Darwin Ports



    Lightbox this page.