# $Id: Portfile,v 1.13 2005/10/19 08:10:13 blb Exp $

PortSystem 1.0
name		fftw
version		2.1.5
revision	2
categories	math devel
maintainers	blb@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.

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
configure.args	--enable-type-prefix --enable-threads \
		--disable-fortran --infodir=${prefix}/share/info

variant fortran {
	depends_lib-append	port:gcc34
	configure.args-delete	--disable-fortran
	configure.args-append	--enable-fortran
	if {[variant_isset darwin]} {
		patchfiles-append	patch-configure_darwin
	}
}

