diff options
author | root <root@rshg054.dnsready.net> | 2013-02-04 00:06:56 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-02-04 00:06:56 -0800 |
commit | 3e78397cb031dee2b5874f1c0c9e4c9977f0dbb7 (patch) | |
tree | 13cd29450035c478b8a064e0ff16f5a10e3fced6 /extra/fftw | |
parent | e363875b14479aa4c6ff12f3e4e7ed920df4e45f (diff) |
Mon Feb 4 00:06:56 PST 2013
Diffstat (limited to 'extra/fftw')
-rw-r--r-- | extra/fftw/PKGBUILD | 34 | ||||
-rw-r--r-- | extra/fftw/fftw.install | 2 |
2 files changed, 26 insertions, 10 deletions
diff --git a/extra/fftw/PKGBUILD b/extra/fftw/PKGBUILD index db4322f0b..54a1c08ee 100644 --- a/extra/fftw/PKGBUILD +++ b/extra/fftw/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 159277 2012-05-20 10:35:50Z ronald $ +# $Id: PKGBUILD 176986 2013-02-03 11:04:50Z allan $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: damir <damir@archlinux.org> pkgname=fftw -pkgver=3.3.2 +pkgver=3.3.3 pkgrel=1 pkgdesc="A library for computing the discrete Fourier transform (DFT)" arch=('i686' 'x86_64') @@ -14,7 +14,7 @@ makedepends=('gcc-fortran') options=('!libtool') source=("http://www.fftw.org/${pkgname}-${pkgver}.tar.gz") install=fftw.install -sha1sums=('11a8c31186ff5a7d686a79a3f21b2530888e0dc2') +sha1sums=('11487180928d05746d431ebe7a176b52fe205cf9') # notes: # http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69 @@ -23,28 +23,42 @@ sha1sums=('11a8c31186ff5a7d686a79a3f21b2530888e0dc2') build() { - cd ${srcdir}/${pkgname}-${pkgver} + 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 -malign-double -fstrict-aliasing -ffast-math" CONFIGURE="./configure F77=gfortran --prefix=/usr \ - --enable-shared --enable-threads --enable-type-prefix" + --enable-shared --enable-threads" - # build & install double precision + # build double precision + cd ${srcdir}/${pkgname}-${pkgver}-double $CONFIGURE --enable-sse2 make - make DESTDIR=${pkgdir} install - make clean # build & install long double precission + cd ${srcdir}/${pkgname}-${pkgver}-long-double $CONFIGURE --enable-long-double make - make DESTDIR=${pkgdir} install - make clean # build & install single precision + cd ${srcdir}/${pkgname}-${pkgver}-single $CONFIGURE --enable-float --enable-sse 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 } diff --git a/extra/fftw/fftw.install b/extra/fftw/fftw.install index a3748aae1..b2b22ac67 100644 --- a/extra/fftw/fftw.install +++ b/extra/fftw/fftw.install @@ -2,6 +2,7 @@ info_dir=/usr/share/info info_files=(fftw3.info) post_install() { + [[ -x usr/bin/install-info ]] || return 0 for f in ${info_files[@]}; do install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null done @@ -12,6 +13,7 @@ post_upgrade() { } pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 for f in ${info_files[@]}; do install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null done |