Ticket #11578: Portfile

File Portfile, 1.5 KB (added by takeshi@…, 17 years ago)
Line 
1PortSystem 1.0
2name    fftw3
3version   3.1.2
4revision  0
5categories  math devel
6maintainers takeshi@mac.com
7description Fast C routines to compute the Discrete Fourier Transform
8long_description \
9  FFTW is a C subroutine library for computing the Discrete Fourier \
10  Transform (DFT) in one or more dimensions, of both real and complex \
11  data, and of arbitrary input size. We believe that FFTW, which is \
12  free software, should become the FFT library of choice for most \
13  applications. Our benchmarks, performed on a variety of platforms, \
14  show that FFTW's performance is typically superior to that of other \
15  publicly available FFT software. Moreover, FFTW's performance is \
16  portable: the program will perform well on most architectures \
17  without modification.
18
19platforms darwin
20
21homepage  http://www.fftw.org/
22master_sites  ${homepage} \
23    ftp://ftp.fftw.org/pub/fftw/
24
25distname fftw-${version}
26checksums sha1 3e4c64009ffb48123a0f30f46c1d89da7810dc67
27configure.env CFLAGS=-O2
28configure.args  --disable-dependency-tracking --enable-threads \
29    --disable-fortran --infodir=${prefix}/share/info
30
31variant fortran {
32  depends_lib-append  port:gcc34
33  configure.args-delete --disable-fortran
34  configure.args-append --enable-fortran
35  if {[variant_isset darwin]} {
36    patchfiles-append patch-configure_darwin
37  }
38}
39
40variant g95 {
41  configure.env FC=g95
42  depends_lib-append  port:g95
43  configure.args-delete --disable-fortran
44  configure.args-append --enable-fortran
45}
46
47