package/logrotate: update upstream site in Config.in help
[buildroot-gz.git] / package / gnuradio / gnuradio.mk
blobf1817f61c2c7e1e30d20598aa25ac4b91dad5073
1 ################################################################################
3 # gnuradio
5 ################################################################################
7 GNURADIO_VERSION = 3.7.9.1
8 GNURADIO_SITE = http://gnuradio.org/releases/gnuradio
9 GNURADIO_LICENSE = GPLv3+
10 GNURADIO_LICENSE_FILES = COPYING
12 GNURADIO_SUPPORTS_IN_SOURCE_BUILD = NO
14 # host-python-cheetah is needed for volk to compile
15 GNURADIO_DEPENDENCIES = \
16 host-python-cheetah \
17 host-swig \
18 boost
20 ifeq ($(BR2_PACKAGE_ORC),y)
21 GNURADIO_DEPENDENCIES += orc
22 endif
24 GNURADIO_CONF_OPTS = \
25 -DENABLE_DEFAULT=OFF \
26 -DENABLE_VOLK=ON \
27 -DENABLE_GNURADIO_RUNTIME=ON
29 # For third-party blocks, the gnuradio libraries are mandatory at
30 # compile time.
31 GNURADIO_INSTALL_STAGING = YES
33 # Yes, this is silly, because -march is already known by the compiler
34 # with the internal toolchain, and passed by the external wrapper for
35 # external toolchains. Nonetheless, gnuradio does some matching on the
36 # CFLAGS to decide whether to build the NEON functions or not, and
37 # wants to see the string 'armv7' in the CFLAGS.
38 ifeq ($(BR2_ARM_CPU_ARMV7A)$(BR2_ARM_CPU_HAS_NEON),yy)
39 GNURADIO_CONF_OPTS += -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -march=armv7-a"
40 endif
42 # As soon as -mfpu=neon is supported by the compiler, gnuradio will try
43 # to use it. But having NEON support in the compiler doesn't necessarily
44 # mean we have NEON support in our CPU.
45 ifeq ($(BR2_ARM_CPU_HAS_NEON),)
46 GNURADIO_CONF_OPTS += -Dhave_mfpu_neon=0
47 endif
49 ifeq ($(BR2_PACKAGE_GNURADIO_ANALOG),y)
50 GNURADIO_CONF_OPTS += -DENABLE_GR_ANALOG=ON
51 else
52 GNURADIO_CONF_OPTS += -DENABLE_GR_ANALOG=OFF
53 endif
55 ifeq ($(BR2_PACKAGE_GNURADIO_AUDIO),y)
56 ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
57 GNURADIO_DEPENDENCIES += alsa-lib
58 endif
59 ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
60 GNURADIO_DEPENDENCIES += portaudio
61 endif
62 GNURADIO_CONF_OPTS += -DENABLE_GR_AUDIO=ON
63 else
64 GNURADIO_CONF_OPTS += -DENABLE_GR_AUDIO=OFF
65 endif
67 ifeq ($(BR2_PACKAGE_GNURADIO_BLOCKS),y)
68 GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=ON
69 else
70 GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=OFF
71 endif
73 ifeq ($(BR2_PACKAGE_GNURADIO_CHANNELS),y)
74 GNURADIO_CONF_OPTS += -DENABLE_GR_CHANNELS=ON
75 else
76 GNURADIO_CONF_OPTS += -DENABLE_GR_CHANNELS=OFF
77 endif
79 ifeq ($(BR2_PACKAGE_GNURADIO_CTRLPORT),y)
80 GNURADIO_CONF_OPTS += -DENABLE_GR_CTRLPORT=ON
81 else
82 GNURADIO_CONF_OPTS += -DENABLE_GR_CTRLPORT=OFF
83 endif
85 ifeq ($(BR2_PACKAGE_GNURADIO_DIGITAL),y)
86 GNURADIO_CONF_OPTS += -DENABLE_GR_DIGITAL=ON
87 else
88 GNURADIO_CONF_OPTS += -DENABLE_GR_DIGITAL=OFF
89 endif
91 ifeq ($(BR2_PACKAGE_GNURADIO_FEC),y)
92 GNURADIO_DEPENDENCIES += gsl
93 GNURADIO_CONF_OPTS += -DENABLE_GR_FEC=ON
94 else
95 GNURADIO_CONF_OPTS += -DENABLE_GR_FEC=OFF
96 endif
98 ifeq ($(BR2_PACKAGE_GNURADIO_FFT),y)
99 GNURADIO_DEPENDENCIES += fftw
100 GNURADIO_CONF_OPTS += -DENABLE_GR_FFT=ON
101 else
102 GNURADIO_CONF_OPTS += -DENABLE_GR_FFT=OFF
103 endif
105 ifeq ($(BR2_PACKAGE_GNURADIO_FILTER),y)
106 GNURADIO_CONF_OPTS += -DENABLE_GR_FILTER=ON
107 else
108 GNURADIO_CONF_OPTS += -DENABLE_GR_FILTER=OFF
109 endif
111 ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
112 GNURADIO_DEPENDENCIES += python
113 GNURADIO_CONF_OPTS += -DENABLE_PYTHON=ON
114 else
115 GNURADIO_CONF_OPTS += -DENABLE_PYTHON=OFF
116 endif
118 ifeq ($(BR2_PACKAGE_GNURADIO_PAGER),y)
119 GNURADIO_CONF_OPTS += -DENABLE_PAGER=ON
120 else
121 GNURADIO_CONF_OPTS += -DENABLE_PAGER=OFF
122 endif
124 ifeq ($(BR2_PACKAGE_GNURADIO_QTGUI),y)
125 GNURADIO_DEPENDENCIES += python-pyqt qwt
126 GNURADIO_CONF_OPTS += -DENABLE_GR_QTGUI=ON
127 else
128 GNURADIO_CONF_OPTS += -DENABLE_GR_QTGUI=OFF
129 endif
131 ifeq ($(BR2_PACKAGE_GNURADIO_TRELLIS),y)
132 GNURADIO_CONF_OPTS += -DENABLE_GR_TRELLIS=ON
133 else
134 GNURADIO_CONF_OPTS += -DENABLE_GR_TRELLIS=OFF
135 endif
137 ifeq ($(BR2_PACKAGE_GNURADIO_UTILS),y)
138 GNURADIO_CONF_OPTS += -DENABLE_GR_UTILS=ON
139 else
140 GNURADIO_CONF_OPTS += -DENABLE_GR_UTILS=OFF
141 endif
143 $(eval $(cmake-package))