wok-next view fftw/receipt @ rev 20718

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