# $Id$ # Maintainer: Ronald van Haren # Contributor: damir # ALARM: Kevin Mihelich # - removed -malign-double from CFLAGS # - removed --enable-sse2 from double precision # - removed --enable-sse from single precision pkgname=fftw pkgver=3.3.6 pkgrel=1 pkgdesc="A library for computing the discrete Fourier transform (DFT)" arch=('i686' 'x86_64') license=('GPL2') url="http://www.fftw.org/" depends=('bash' 'gcc-libs') makedepends=('gcc-fortran') source=("http://www.fftw.org/${pkgname}-${pkgver}-pl1.tar.gz") sha1sums=('b7730928b6b420733a6fd08c18616bf8ae4f625d') # notes: # http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69 # http://www.fftw.org/faq/section2.html#singleprec # http://www.fftw.org/fftw3_doc/Precision.html#Precision build() { cd ${srcdir} cp -a ${pkgname}-${pkgver}-pl1 ${pkgname}-${pkgver}-double cp -a ${pkgname}-${pkgver}-pl1 ${pkgname}-${pkgver}-long-double mv ${pkgname}-${pkgver}-pl1 ${pkgname}-${pkgver}-single # use upstream default CFLAGS while keeping our -march/-mtune CFLAGS+=" -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math" CONFIGURE="./configure F77=gfortran --prefix=/usr \ --enable-shared --enable-threads" # build double precision cd ${srcdir}/${pkgname}-${pkgver}-double $CONFIGURE make # build & install long double precission cd ${srcdir}/${pkgname}-${pkgver}-long-double $CONFIGURE --enable-long-double make # build & install single precision cd ${srcdir}/${pkgname}-${pkgver}-single $CONFIGURE --enable-float make } package() { cd ${srcdir}/${pkgname}-${pkgver}-double make DESTDIR=${pkgdir} install cd ${srcdir}/${pkgname}-${pkgver}-long-double make DESTDIR=${pkgdir} install cd ${srcdir}/${pkgname}-${pkgver}-single make DESTDIR=${pkgdir} install }