fftw: fix path to WISDOM_DIR

This commit is contained in:
Leonid Pliushch 2017-09-12 13:34:55 +03:00 committed by Fredrik Fornwall
parent ee2158978a
commit 6fcbcb9619
2 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
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=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=http://www.fftw.org/fftw-${TERMUX_PKG_VERSION}-pl1.tar.gz
TERMUX_PKG_SHA256=1ef4aa8427d9785839bc767f3eb6a84fcb5e9a37c31ed77a04e7e047519a183d
# ac_cv_func_clock_gettime=no avoids having clock_gettime(CLOCK_SGI_CYCLE, &t)

View File

@ -0,0 +1,12 @@
diff -uNr fftw-3.3.6-pl1/api/import-system-wisdom.c fftw-3.3.6-pl1.mod/api/import-system-wisdom.c
--- fftw-3.3.6-pl1/api/import-system-wisdom.c 2017-01-15 14:03:24.000000000 +0200
+++ fftw-3.3.6-pl1.mod/api/import-system-wisdom.c 2017-09-12 11:20:08.432992283 +0300
@@ -32,7 +32,7 @@
#if defined(__DJGPP__)
# define WISDOM_DIR "/dev/env/DJDIR/etc/fftw/"
#else
-# define WISDOM_DIR "/etc/fftw/"
+# define WISDOM_DIR "@TERMUX_PREFIX@/etc/fftw/"
#endif
int X(import_system_wisdom)(void)