summaryrefslogtreecommitdiff
path: root/package/liquid-dsp/liquid-dsp.mk
diff options
context:
space:
mode:
authorguillaume william brs <guillaume.bressaix@gmail.com>2015-10-09 11:20:16 -0600
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-11 15:45:49 +0200
commitf9e4ccac112e87c924ef9ff78049e35e65f3b465 (patch)
tree5aa91e57a13357257f83c6f3d2a4a1e59f9a8fed /package/liquid-dsp/liquid-dsp.mk
parenteec69cdcaff10c6221ff0be603eacb3fdb9d6448 (diff)
liquid-dsp: new package
[Thomas: - add patch to fix autoreconf issue, and use LIQUID_DSP_AUTORECONF = YES instead of an horrible hack calling aclocal/autoconf manually. - use the github macro instead of hand-coding <pkg>_SITE and <pkg>_SITE_METHOD. This allows to remove <pkg>_SITE_METHOD entirely. - use a full hash as the <pkg>_VERSION - remove trailing whitespace everywhere. - use one single assignment of LIQUID_DSP_CONF_OPTS - fix the comment about the eglibc/musl dependency (it was only mentioning eglibc, and the condition was inverted) - add the musl/glibc dependency on the package option itself - make the package depend on dynamic library support, since the makefile unconditionally builds a shared library. - add hash file.] Signed-off-by: Guillaume William Bres <guillaume.bressaix@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/liquid-dsp/liquid-dsp.mk')
-rw-r--r--package/liquid-dsp/liquid-dsp.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/liquid-dsp/liquid-dsp.mk b/package/liquid-dsp/liquid-dsp.mk
new file mode 100644
index 000000000..5a5f583da
--- /dev/null
+++ b/package/liquid-dsp/liquid-dsp.mk
@@ -0,0 +1,39 @@
+################################################################################
+#
+# liquid-dsp
+#
+################################################################################
+
+LIQUID_DSP_VERSION = df5a459fa05dba4199c1299555891104cc1fdca7
+LIQUID_DSP_SITE = $(call github,jgaeddert,liquid-dsp,$(LIQUID_DSP_VERSION))
+LIQUID_DSP_LICENSE = MIT
+LIQUID_DSP_LICENSE_FILES = COPYING
+LIQUID_DSP_INSTALL_STAGING = YES
+LIQUID_DSP_AUTORECONF = YES
+
+LIQUID_DSP_CFLAGS = $(TARGET_CFLAGS)
+LIQUID_DSP_LDFLAGS = $(TARGET_LDFLAGS)
+
+# Speed over accuracy trade off
+ifeq ($(BR2_PACKAGE_LIQUID_DSP_FAST),y)
+LIQUID_DSP_CFLAGS += -ffast-math
+endif
+
+# use FFTW instead of built-in FFT
+ifeq ($(BR2_PACKAGE_FFTW_PRECISION_SINGLE),y)
+LIQUID_DSP_LDFLAGS += -lfftw3f
+endif
+
+ifeq ($(BR2_PACKAGE_FFTW_PRECISION_DOUBLE),y)
+LIQUID_DSP_LDFLAGS += -lfftw3
+endif
+
+ifeq ($(BR2_PACKAGE_FFTW_PRECISION_LONG_DOUBLE),y)
+LIQUID_DSP_LDFLAGS += -lfftw3l
+endif
+
+LIQUID_DSP_CONF_OPTS += \
+ CFLAGS="$(LIQUID_DSP_CFLAGS)" \
+ LDFLAGS="$(LIQUID_DSP_LDFLAGS)"
+
+$(eval $(autotools-package))