# $Id: Portfile 41657 2008-11-08 15:56:14Z mcalhoun@macports.org $

PortSystem 1.0

name		fftw
version		2.1.5
revision	2
categories	math devel
maintainers	nomaintainer
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.

platforms	darwin

homepage	http://www.fftw.org/
master_sites	${homepage} \
		ftp://ftp.fftw.org/pub/fftw/ \
		ftp://ftp.kusastro.kyoto-u.ac.jp/pub/src/GNU/fftw/

checksums	md5 8d16a84f3ca02a785ef9eb36249ba433 \
		sha1 12020b58edc1b0490a83db4aa912fac5dfdfb26b \
		rmd160 723308722d76c12710db6473979adf8d086b0909
configure.args	--enable-type-prefix --enable-threads \
		--disable-fortran --infodir=${prefix}/share/info

variant fortran description {include fortran-callable wrappers} {
	depends_lib-append	port:g95
	configure.f77		${prefix}/bin/g95
	configure.args-delete	--disable-fortran
	configure.args-append	--enable-fortran
}

platform darwin {
	if {[variant_isset fortran]} {
		patchfiles-append	patch-configure_darwin
	}
}
