the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: fftw3
Version: 3.2.2
Revision: 4
Maintainer: Sebastien Maret
Source: ftp://ftp.fftw.org/pub/fftw/fftw-%v.tar.gz
Source-MD5: b616e5c91218cc778b5aa735fefb61ae
BuildDepends: fink (>= 0.24.12-1), gcc46, ocaml
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: True
License: GPL
PatchFile: %n.patch
PatchFile-MD5: 9d79b2581d6a32989c93ff7a78b7e6a0
ConfigureParams: --enable-shared --enable-threads --enable-fortran --mandir='${prefix}/share/man' --infodir='${prefix}/share/info'
GCC: 4.0
CompileScript: <<
#!/bin/sh -ev
gcclib=`%p/bin/gfortran --print-lib`
FLIBDIR=`dirname $gcclib`
if [ %m != "powerpc" ]; then
FC=%p/bin/gfortran FLIBS="-L${FLIBDIR}" ./configure %c --without-gcc-arch
else
FC=%p/bin/gfortran FLIBS="-L${FLIBDIR}" ./configure %c
fi
make
<<
InstallScript: <<
#!/bin/sh -ev
make -j1 install prefix=%i
mkdir -p %i/share/doc/%n/html/FAQ
cp doc/html/*html %i/share/doc/%n/html
cp doc/FAQ/fftw-faq.html/*html %i/share/doc/%n/html/FAQ
make clean
if [ %m != "powerpc" ]; then
./configure %c --enable-float --without-gcc-arch
else
./configure %c --enable-float --enable-altivec
fi
make
make -j1 install prefix=%i
<<
SplitOff: <<
Package: %N-shlibs
Files: lib/libfftw3.*.dylib lib/libfftw3_threads.*.dylib lib/libfftw3f.*.dylib lib/libfftw3f_threads.*.dylib
Shlibs: <<
%p/lib/libfftw3.3.dylib 6.0.0 %n (>= 3.2.1-1)
%p/lib/libfftw3_threads.3.dylib 6.0.0 %n (>= 3.2.1-1)
%p/lib/libfftw3f.3.dylib 6.0.0 %n (>= 3.2.1-1)
%p/lib/libfftw3f_threads.3.dylib 6.0.0 %n (>= 3.2.1-1)
<<
DocFiles: README NEWS TODO COPYING INSTALL COPYRIGHT AUTHORS CONVENTIONS
<<
DocFiles: README NEWS TODO COPYING INSTALL COPYRIGHT AUTHORS CONVENTIONS
InfoDocs: fftw3.info
Description: Discrete Fourier Transform Lib (Ver 3)
DescDetail: <<
FFTW is a C subroutine library for computing the discrete Fourier
transform (DFT) in one or more dimensions, of arbitrary input size,
and of both real and complex data (as well as of even/odd data,
i.e. the discrete cosine/sine transforms or DCT/DST).
Benchmarks, performed on on a variety of platforms, show that FFTW's
performance is typically superior to that of other publicly available
FFT software, and is even competitive with vendor-tuned codes. In
contrast to vendor-tuned codes, however, FFTW's performance is
portable: the same program will perform well on most architectures
without modification. Hence the name, "FFTW," which stands for the
somewhat whimsical title of "Fastest Fourier Transform in the West."
<<
DescUsage: <<
Version 3 API is incompatible with Version 2 API (provided by fftw package)
<<
DescPackaging: <<
Single and double precision libs built, single precision libs have
altivec support.
Originally packaged by Jeffrey Whitaker.
<<
Homepage: http://www.fftw.org
--- fftw-3.2.1/tests/Makefile.in.orig 2009-02-09 19:50:28.000000000 -0500
+++ fftw-3.2.1/tests/Makefile.in 2009-04-11 17:47:34.000000000 -0400
@@ -232,9 +232,9 @@
@COMBINED_THREADS_FALSE@@SMP_TRUE@LIBFFTWTHREADS = $(top_builddir)/threads/libfftw3@PREC_SUFFIX@_threads.la
@SMP_FALSE@LIBFFTWTHREADS =
bench_SOURCES = bench.c hook.c fftw-bench.c fftw-bench.h
-bench_LDADD = $(LIBFFTWTHREADS) \
+bench_LDADD = $(top_builddir)/libbench2/libbench2.a $(LIBFFTWTHREADS) \
$(top_builddir)/libfftw3@PREC_SUFFIX@.la \
-$(top_builddir)/libbench2/libbench2.a $(THREADLIBS)
+$(THREADLIBS)
all: all-am
--- fftw-3.2.1/tools/Makefile.in.orig 2009-02-09 19:50:28.000000000 -0500
+++ fftw-3.2.1/tools/Makefile.in 2009-04-11 17:50:17.000000000 -0400
@@ -246,10 +246,10 @@
@COMBINED_THREADS_FALSE@@SMP_TRUE@LIBFFTWTHREADS = $(top_builddir)/threads/libfftw3@PREC_SUFFIX@_threads.la
@SMP_FALSE@LIBFFTWTHREADS =
fftw@PREC_SUFFIX@_wisdom_SOURCES = fftw-wisdom.c
-fftw@PREC_SUFFIX@_wisdom_LDADD = $(top_builddir)/tests/bench.o \
+fftw@PREC_SUFFIX@_wisdom_LDADD = $(top_builddir)/tests/bench.o $(top_builddir)/libbench2/libbench2.a \
$(top_builddir)/tests/fftw-bench.o $(LIBFFTWTHREADS) \
$(top_builddir)/libfftw3@PREC_SUFFIX@.la \
-$(top_builddir)/libbench2/libbench2.a $(THREADLIBS)
+$(THREADLIBS)
all: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) all-am