PKGBUILDs/extra/fftw/PKGBUILD

58 lines
1.5 KiB
Bash
Raw Normal View History

2011-09-03 16:47:29 +00:00
# $Id: PKGBUILD 136896 2011-09-02 17:27:59Z ronald $
2011-02-22 06:37:08 +00:00
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>
2011-08-01 22:30:01 +00:00
# ALARM: Kevin Mihelich <kevin@plugapps.com>
2011-09-03 16:47:29 +00:00
# - removed -malign-double from CFLAGS
2011-02-22 06:37:08 +00:00
# - removed --enable-sse2 from double precision
# - removed --enable-sse from single precision
plugrel=1
pkgname=fftw
2012-05-21 16:04:09 +00:00
pkgver=3.3.2
2012-04-02 14:21:17 +00:00
pkgrel=1
2011-02-22 06:37:08 +00:00
pkgdesc="A library for computing the discrete Fourier transform (DFT)"
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.fftw.org/"
depends=('glibc' 'bash')
makedepends=('gcc-fortran')
2012-02-26 16:43:49 +00:00
options=('!libtool')
source=("http://www.fftw.org/${pkgname}-${pkgver}.tar.gz")
2011-02-22 06:37:08 +00:00
install=fftw.install
2012-05-21 16:04:09 +00:00
sha1sums=('11a8c31186ff5a7d686a79a3f21b2530888e0dc2')
2011-02-22 06:37:08 +00:00
# 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}/${pkgname}-${pkgver}
# use upstream default CFLAGS while keeping our -march/-mtune
CFLAGS+=" -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math"
CONFIGURE="./configure F77=gfortran --prefix=/usr \
2012-05-21 16:04:09 +00:00
--enable-shared --enable-threads --enable-type-prefix"
2011-02-22 06:37:08 +00:00
# build & install double precision
$CONFIGURE
make
make DESTDIR=${pkgdir} install
make clean
# build & install long double precission
$CONFIGURE --enable-long-double
make
make DESTDIR=${pkgdir} install
make clean
# build & install single precision
$CONFIGURE --enable-float
make
make DESTDIR=${pkgdir} install
}