source: trunk/dports/math/fftw/Portfile

Last change on this file was 130949, checked in by sean@…, 3 years ago

compilers-1.0: set default fortran variant in the portgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 130949 2015-01-04 06:00:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           mpi 1.0
6
7name                fftw
8version             2.1.5
9revision            7
10categories          math devel
11license             GPL-2+
12maintainers         sean
13description         Fast C routines to compute the Discrete Fourier Transform
14long_description \
15    FFTW is a C subroutine library for computing the Discrete Fourier \
16    Transform (DFT) in one or more dimensions, of both real and complex \
17    data, and of arbitrary input size. We believe that FFTW, which is \
18    free software, should become the FFT library of choice for most \
19    applications. Our benchmarks, performed on a variety of platforms, \
20    show that FFTW's performance is typically superior to that of other \
21    publicly available FFT software. Moreover, FFTW's performance is \
22    portable: the program will perform well on most architectures \
23    without modification.
24
25platforms           darwin
26
27homepage            http://www.fftw.org/
28master_sites        ${homepage} \
29                    ftp://ftp.fftw.org/pub/fftw/ \
30                    ftp://ftp.kusastro.kyoto-u.ac.jp/pub/src/GNU/fftw/
31
32checksums           rmd160  723308722d76c12710db6473979adf8d086b0909 \
33                    sha256  f8057fae1c7df8b99116783ef3e94a6a44518d49c72e2e630c24b689c6022630
34
35# don't change configure.cc, etc. since we'll take care of that manually with
36# MPICC env var
37mpi.setup           require_fortran
38
39configure.args      --enable-type-prefix --enable-threads \
40                    --enable-fortran --infodir=${prefix}/share/info \
41                    --enable-shared
42
43# TODO: Fix to build with muniversal
44universal_variant   no
45
46platform darwin {
47    patchfiles-append patch-configure_darwin
48}
49
50post-destroot {
51    xinstall -m 644 ${worksrcpath}/fortran/fftw_f77.i ${destroot}${prefix}/include
52}
53
54if {[mpi_variant_isset]} {
55    configure.args-append --enable-mpi
56
57    post-extract {
58        reinplace "s/mpicc/${mpi.cc} mpicc/" configure
59    }
60}
61
62subport fftw-single {
63    configure.args-append --enable-float
64
65    depends_lib port:fftw
66
67    post-destroot  {
68        delete ${destroot}${prefix}/share
69        delete ${destroot}${prefix}/include/fftw_f77.i
70    }
71}
72
73livecheck.type      none
Note: See TracBrowser for help on using the repository browser.