wok-6.x annotate fftw/receipt @ rev 25494
Add finch & btop (thanks ceel)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 30 08:50:05 2022 +0000 (23 months ago) |
parents | 4af5a3ba8ed3 |
children |
rev | line source |
---|---|
jozee@6823 | 1 # SliTaz package receipt. |
jozee@6823 | 2 |
jozee@6823 | 3 PACKAGE="fftw" |
Hans-G?nter@24363 | 4 VERSION="3.3.10" |
jozee@6823 | 5 CATEGORY="multimedia" |
jozee@6823 | 6 MAINTAINER="jozee@slitaz.org" |
pascal@15588 | 7 LICENSE="GPL2" |
Hans-G?nter@22722 | 8 SHORT_DESC="A library for computing the discrete Fourier transform (DFT)." |
Hans-G?nter@24363 | 9 WEB_SITE="https://www.fftw.org/" |
Hans-G?nter@22722 | 10 |
jozee@6823 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@6823 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
Hans-G?nter@22722 | 13 |
Hans-G?nter@22722 | 14 BUILD_DEPENDS="gfortran" |
jozee@6823 | 15 |
jozee@6823 | 16 # Rules to configure and make the package. |
jozee@6823 | 17 |
pascal@24373 | 18 # What is the latest version available today? |
pascal@24373 | 19 current_version() |
pascal@24373 | 20 { |
pascal@24373 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24373 | 22 sed '/FFTW [0-9]/!d;s|^FFTW ||;s| is.*||;q' |
pascal@24373 | 23 } |
pascal@24373 | 24 |
Hans-G?nter@22722 | 25 compile_rules() |
Hans-G?nter@22722 | 26 { |
Hans-G?nter@22722 | 27 # build double precision |
Hans-G?nter@24363 | 28 ./configure \ |
Hans-G?nter@24363 | 29 F77=gfortran \ |
Hans-G?nter@24363 | 30 --prefix=/usr \ |
Hans-G?nter@24363 | 31 --enable-shared \ |
Hans-G?nter@24363 | 32 --enable-threads \ |
Hans-G?nter@22722 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@22722 | 34 make $MAKEFLAGS && |
Hans-G?nter@24363 | 35 make install DESTDIR=$DESTDIR |
Hans-G?nter@22722 | 36 |
Hans-G?nter@22722 | 37 # build long double precission |
Hans-G?nter@24363 | 38 make clean && |
Hans-G?nter@22722 | 39 ./configure \ |
Hans-G?nter@22722 | 40 F77=gfortran \ |
Hans-G?nter@22722 | 41 --prefix=/usr \ |
Hans-G?nter@22722 | 42 --enable-long-double \ |
Hans-G?nter@22722 | 43 --enable-shared \ |
Hans-G?nter@24363 | 44 --enable-threads \ |
Hans-G?nter@22722 | 45 $CONFIGURE_ARGS && |
Hans-G?nter@22722 | 46 make $MAKEFLAGS && |
Hans-G?nter@24363 | 47 make install DESTDIR=$DESTDIR |
Hans-G?nter@22722 | 48 |
Hans-G?nter@22722 | 49 # build single precision |
Hans-G?nter@24363 | 50 make clean && |
Hans-G?nter@24363 | 51 ./configure \ |
Hans-G?nter@24363 | 52 F77=gfortran \ |
Hans-G?nter@24363 | 53 --prefix=/usr \ |
Hans-G?nter@24363 | 54 --enable-float \ |
Hans-G?nter@24363 | 55 --enable-shared \ |
Hans-G?nter@24363 | 56 --enable-threads \ |
Hans-G?nter@22722 | 57 $CONFIGURE_ARGS && |
Hans-G?nter@22722 | 58 make $MAKEFLAGS && |
Hans-G?nter@24363 | 59 make install DESTDIR=$DESTDIR |
jozee@6823 | 60 } |
jozee@6823 | 61 |
jozee@6823 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@6823 | 63 genpkg_rules() |
jozee@6823 | 64 { |
Hans-G?nter@24363 | 65 cook_copy_folders bin |
Hans-G?nter@24363 | 66 cook_copy_files *.so* |
jozee@6823 | 67 } |