board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / liquid-dsp / liquid-dsp.mk
blob35994137e93d4d05cded0ed0482ef0bb290480a3
1 ################################################################################
3 # liquid-dsp
5 ################################################################################
7 LIQUID_DSP_VERSION = 1191179b786703b3af20abf7e1404d91099b335d
8 LIQUID_DSP_SITE = $(call github,jgaeddert,liquid-dsp,$(LIQUID_DSP_VERSION))
9 LIQUID_DSP_LICENSE = MIT
10 LIQUID_DSP_LICENSE_FILES = LICENSE
11 LIQUID_DSP_INSTALL_STAGING = YES
12 LIQUID_DSP_AUTORECONF = YES
14 LIQUID_DSP_CONF_ENV = \
15 ax_cv_have_mmx_ext=$(if $(BR2_X86_CPU_HAS_MMX),yes,no) \
16 ax_cv_have_sse_ext=$(if $(BR2_X86_CPU_HAS_SSE),yes,no) \
17 ax_cv_have_sse2_ext=$(if $(BR2_X86_CPU_HAS_SSE2),yes,no) \
18 ax_cv_have_sse3_ext=$(if $(BR2_X86_CPU_HAS_SSE3),yes,no) \
19 ax_cv_have_ssse3_ext=$(if $(BR2_X86_CPU_HAS_SSSE3),yes,no) \
20 ax_cv_have_sse41_ext=$(if $(BR2_X86_CPU_HAS_SSE4),yes,no) \
21 ax_cv_have_sse42_ext=$(if $(BR2_X86_CPU_HAS_SSE42),yes,no) \
22 ax_cv_have_avx_ext=$(if $(BR2_X86_CPU_HAS_AVX),yes,no)
24 LIQUID_DSP_CFLAGS = $(TARGET_CFLAGS)
25 LIQUID_DSP_LDFLAGS = $(TARGET_LDFLAGS)
27 # Speed over accuracy trade off
28 ifeq ($(BR2_PACKAGE_LIQUID_DSP_FAST),y)
29 LIQUID_DSP_CFLAGS += -ffast-math
30 endif
32 # use FFTW instead of built-in FFT
33 ifeq ($(BR2_PACKAGE_FFTW_PRECISION_SINGLE),y)
34 LIQUID_DSP_LDFLAGS += -lfftw3f
35 endif
37 # disable altivec, it has build issues
38 ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
39 LIQUID_DSP_CONF_OPTS += --enable-simdoverride
40 endif
42 ifeq ($(BR2_PACKAGE_FFTW_PRECISION_DOUBLE),y)
43 LIQUID_DSP_LDFLAGS += -lfftw3
44 endif
46 ifeq ($(BR2_PACKAGE_FFTW_PRECISION_LONG_DOUBLE),y)
47 LIQUID_DSP_LDFLAGS += -lfftw3l
48 endif
50 LIQUID_DSP_CONF_OPTS += \
51 CFLAGS="$(LIQUID_DSP_CFLAGS)" \
52 LDFLAGS="$(LIQUID_DSP_LDFLAGS)"
54 $(eval $(autotools-package))