2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.fftw.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Library for computing the Discrete Fourier Transform (DFT) in one or more dimensions"
|
2019-01-20 22:39:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-09-20 18:20:59 +02:00
|
|
|
TERMUX_PKG_VERSION=3.3.10
|
2021-09-21 09:12:32 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2020-01-13 02:00:07 +01:00
|
|
|
TERMUX_PKG_SRCURL=http://www.fftw.org/fftw-${TERMUX_PKG_VERSION}.tar.gz
|
2021-09-20 18:20:59 +02:00
|
|
|
TERMUX_PKG_SHA256=56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="fftw-dev"
|
|
|
|
TERMUX_PKG_REPLACES="fftw-dev"
|
2017-03-08 23:52:22 +01:00
|
|
|
# ac_cv_func_clock_gettime=no avoids having clock_gettime(CLOCK_SGI_CYCLE, &t)
|
|
|
|
# being used. It's not supported on Android but fails at runtime and, fftw
|
|
|
|
# does not check the return value so gets bogus values.
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-threads ac_cv_func_clock_gettime=no"
|
2017-03-08 00:49:13 +01:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="include/fftw*.f*"
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
2017-03-08 23:52:22 +01:00
|
|
|
local COMMON_ARGS="$TERMUX_PKG_EXTRA_CONFIGURE_ARGS"
|
2017-03-08 00:49:13 +01:00
|
|
|
local feature
|
|
|
|
for feature in float long-double; do
|
|
|
|
make clean
|
2017-03-08 23:52:22 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="$COMMON_ARGS --enable-$feature"
|
2017-03-08 00:49:13 +01:00
|
|
|
rm -Rf $TERMUX_PKG_TMPDIR/config-scripts
|
|
|
|
termux_step_configure
|
|
|
|
make -j $TERMUX_MAKE_PROCESSES install
|
|
|
|
done
|
|
|
|
}
|