# $Id: Portfile,v 1.9 2006/05/14 17:03:13 gwright Exp $

PortSystem 1.0
name		fftw-3
version		3.1.1
categories	math
platforms	darwin
maintainers	gwright@opendarwin.org

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.

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/

distname	fftw-${portversion}

checksums	md5 b35813b88a046e4e74a603017794ddcd

configure.args	--enable-type-prefix		\
		--enable-threads		\
		--enable-fma			\
		--disable-fortran		\
		--mandir=${prefix}/share/man	\
		--infodir=${prefix}/share/info

variant fortran	{ depends_lib-append	port:gcc40
		  configure.args-delete	--disable-fortran
		  configure.args-append	--enable-fortran=gfortran-dp-4.0
		}

post-build	{ cd ${worksrcpath}
		  system "make check"
		}

