From 604f8e4b18273c7cd45b007b843bb6504ac66d75 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 8 Mar 2017 00:49:13 +0100 Subject: [PATCH] fftw: Build variants thread, float and long double For now we keep them all in the same package, may be split up into subpackages in the future. Fixes #605. --- packages/fftw/build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/fftw/build.sh b/packages/fftw/build.sh index bbd0d9a74..67c84a51d 100644 --- a/packages/fftw/build.sh +++ b/packages/fftw/build.sh @@ -1,5 +1,20 @@ TERMUX_PKG_HOMEPAGE=http://www.fftw.org/ TERMUX_PKG_DESCRIPTION="Library for computing the Discrete Fourier Transform (DFT) in one or more dimensions" TERMUX_PKG_VERSION=3.3.6 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=http://www.fftw.org/fftw-${TERMUX_PKG_VERSION}-pl1.tar.gz TERMUX_PKG_SHA256=1ef4aa8427d9785839bc767f3eb6a84fcb5e9a37c31ed77a04e7e047519a183d +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-threads" +TERMUX_PKG_RM_AFTER_INSTALL="include/fftw*.f*" +TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="bin/ share/man/" + +termux_step_post_make_install() { + local feature + for feature in float long-double; do + make clean + TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-threads --enable-$feature" + rm -Rf $TERMUX_PKG_TMPDIR/config-scripts + termux_step_configure + make -j $TERMUX_MAKE_PROCESSES install + done +}