wok-next annotate fftw/receipt @ rev 20569
Fix libtool where applicable (a*-f* packages yet); combine collectd* receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 13 07:14:16 2018 +0300 (2018-04-13) |
parents | 6e0553fe45e7 |
children | f48456621a9d |
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)" |
jozee@6823 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15588 | 8 LICENSE="GPL2" |
al@19713 | 9 WEB_SITE="http://www.fftw.org/" |
al@20405 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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@20405 | 16 SPLIT="fftw-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@19713 | 29 make DESTDIR=$DESTDIR 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@19713 | 41 make DESTDIR=$DESTDIR 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@19713 | 53 make DESTDIR=$DESTDIR 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 } |