wok-next annotate fftw/receipt @ rev 21034
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 05 01:38:46 2018 +0200 (2018-11-05) |
parents | f48456621a9d |
children | 92b22c1adcf0 |
rev | line source |
---|---|
al@20405 | 1 # SliTaz package receipt v2. |
jozee@6823 | 2 |
jozee@6823 | 3 PACKAGE="fftw" |
al@19713 | 4 VERSION="3.3.6-pl2" |
jozee@6823 | 5 CATEGORY="multimedia" |
al@19713 | 6 SHORT_DESC="A library for computing the discrete Fourier transform (DFT)" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15588 | 8 LICENSE="GPL2" |
al@19713 | 9 WEB_SITE="http://www.fftw.org/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/fftw.html" |
al@19713 | 11 |
al@19713 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19713 | 13 WGET_URL="http://www.fftw.org/$TARBALL" |
al@19713 | 14 |
jozee@6823 | 15 BUILD_DEPENDS="gfortran" |
al@21020 | 16 SPLIT="$PACKAGE-dev" |
jozee@6823 | 17 |
al@19713 | 18 compile_rules() { |
al@20470 | 19 # --enable-threads: ardour need it: cannot find -lfftw3f_threads |
al@20470 | 20 |
al@20470 | 21 # build double precision (fftw3) |
al@19713 | 22 ./configure \ |
al@19713 | 23 F77=gfortran \ |
al@19713 | 24 --enable-shared \ |
al@20470 | 25 --enable-threads \ |
al@19713 | 26 $CONFIGURE_ARGS && |
al@20569 | 27 fix libtool && |
al@19713 | 28 make $MAKEFLAGS && |
al@21020 | 29 make DESTDIR=$install install |
jozee@6823 | 30 |
al@20470 | 31 # build long double precission (fftw3l) |
al@19713 | 32 make clean |
al@19713 | 33 ./configure \ |
al@19713 | 34 F77=gfortran \ |
al@19713 | 35 --enable-long-double \ |
al@19713 | 36 --enable-shared \ |
al@20470 | 37 --enable-threads \ |
al@19713 | 38 $CONFIGURE_ARGS && |
al@20569 | 39 fix libtool && |
al@19713 | 40 make $MAKEFLAGS && |
al@21020 | 41 make DESTDIR=$install install |
al@19713 | 42 |
al@20470 | 43 # build single precision (fftw3f) |
al@19713 | 44 make clean |
al@19713 | 45 ./configure \ |
al@19713 | 46 F77=gfortran \ |
al@19713 | 47 --enable-float \ |
al@19713 | 48 --enable-shared \ |
al@20470 | 49 --enable-threads \ |
al@19713 | 50 $CONFIGURE_ARGS && |
al@20569 | 51 fix libtool && |
al@19713 | 52 make $MAKEFLAGS && |
al@21020 | 53 make DESTDIR=$install install |
jozee@6823 | 54 } |
al@19713 | 55 |
al@20405 | 56 genpkg_rules() { |
al@20405 | 57 case $PACKAGE in |
al@20405 | 58 fftw) copy @std;; |
al@20405 | 59 *-dev) copy @dev;; |
al@20405 | 60 esac |
jozee@6823 | 61 } |