mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
68 lines
1.8 KiB
Bash
68 lines
1.8 KiB
Bash
# $Id$
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
# Contributor: damir <damir@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - removed -malign-double from CFLAGS
|
|
# - removed --enable-sse2 from double precision
|
|
# - removed --enable-sse from single precision
|
|
|
|
pkgname=fftw
|
|
pkgver=3.3.3
|
|
pkgrel=2
|
|
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')
|
|
source=("http://www.fftw.org/${pkgname}-${pkgver}.tar.gz")
|
|
install=fftw.install
|
|
sha1sums=('11487180928d05746d431ebe7a176b52fe205cf9')
|
|
|
|
# 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} ${pkgname}-${pkgver}-double
|
|
cp -a ${pkgname}-${pkgver} ${pkgname}-${pkgver}-long-double
|
|
mv ${pkgname}-${pkgver} ${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
|
|
}
|