preload-hacks: Some patches to make it work.
[termux-packages] / packages / fftw / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://www.fftw.org/
2TERMUX_PKG_DESCRIPTION="Library for computing the Discrete Fourier Transform (DFT) in one or more dimensions"
d4cdeb62
FF
3TERMUX_PKG_VERSION=3.3.7
4TERMUX_PKG_SHA256=3b609b7feba5230e8f6dd8d245ddbefac324c5a6ae4186947670d9ac2cd25573
5TERMUX_PKG_SRCURL=http://www.fftw.org/fftw-${TERMUX_PKG_VERSION}.tar.gz
9d934fbc
FF
6# ac_cv_func_clock_gettime=no avoids having clock_gettime(CLOCK_SGI_CYCLE, &t)
7# being used. It's not supported on Android but fails at runtime and, fftw
8# does not check the return value so gets bogus values.
9TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-threads ac_cv_func_clock_gettime=no"
604f8e4b
FF
10TERMUX_PKG_RM_AFTER_INSTALL="include/fftw*.f*"
11TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="bin/ share/man/"
12
13termux_step_post_make_install() {
9d934fbc 14 local COMMON_ARGS="$TERMUX_PKG_EXTRA_CONFIGURE_ARGS"
604f8e4b
FF
15 local feature
16 for feature in float long-double; do
17 make clean
9d934fbc 18 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="$COMMON_ARGS --enable-$feature"
604f8e4b
FF
19 rm -Rf $TERMUX_PKG_TMPDIR/config-scripts
20 termux_step_configure
21 make -j $TERMUX_MAKE_PROCESSES install
22 done
23}