Browse Source

fftw: fix path to WISDOM_DIR

android-5
Leonid Plyushch 7 years ago
committed by Fredrik Fornwall
parent
commit
ca55346dc9
  1. 2
      packages/fftw/build.sh
  2. 12
      packages/fftw/fix-wisdom_dir.patch

2
packages/fftw/build.sh

@ -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)

12
packages/fftw/fix-wisdom_dir.patch

@ -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)
Loading…
Cancel
Save