wok-next view fftw/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fftw"
4 VERSION="3.3.8"
5 CATEGORY="multimedia"
6 SHORT_DESC="A library for computing the discrete Fourier transform (DFT)"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.fftw.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/fftw.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://www.fftw.org/$TARBALL"
15 BUILD_DEPENDS="gfortran"
16 SPLIT="$PACKAGE-dev"
18 compile_rules()
19 {
20 # --enable-threads: ardour need it: cannot find -lfftw3f_threads
22 # build double precision (fftw3)
23 ./configure \
24 F77=gfortran \
25 --enable-shared \
26 --enable-threads \
27 $CONFIGURE_ARGS &&
28 fix libtool &&
29 make $MAKEFLAGS &&
30 make DESTDIR=$install install
32 # build long double precision (fftw3l)
33 make clean
34 ./configure \
35 F77=gfortran \
36 --enable-long-double \
37 --enable-shared \
38 --enable-threads \
39 $CONFIGURE_ARGS &&
40 fix libtool &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$install install
44 # build single precision (fftw3f)
45 make clean
46 ./configure \
47 F77=gfortran \
48 --enable-float \
49 --enable-shared \
50 --enable-threads \
51 $CONFIGURE_ARGS &&
52 fix libtool &&
53 make $MAKEFLAGS &&
54 make DESTDIR=$install install
55 }
57 genpkg_rules()
58 {
59 case $PACKAGE in
60 fftw) copy @std;;
61 *-dev) copy @dev;;
62 esac
63 }