The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gnuradio / gnuradio.mk
1 ################################################################################
2 #
3 # gnuradio
4 #
5 ################################################################################
6
7 GNURADIO_VERSION = 3.7.5
8 GNURADIO_SITE = http://gnuradio.org/redmine/attachments/download/792
9 GNURADIO_LICENSE = GPLv3+
10 GNURADIO_LICENSE_FILES = COPYING
11
12 GNURADIO_SUPPORTS_IN_SOURCE_BUILD = NO
13
14 # host-python-cheetah is needed for volk to compile
15 GNURADIO_DEPENDENCIES = \
16         host-python-cheetah \
17         host-swig \
18         boost
19
20 GNURADIO_CONF_OPTS = \
21         -DENABLE_DEFAULT=OFF \
22         -DENABLE_VOLK=ON \
23         -DENABLE_GNURADIO_RUNTIME=ON
24
25 # For third-party blocks, the gnuradio libraries are mandatory at
26 # compile time.
27 GNURADIO_INSTALL_STAGING = YES
28
29 # Yes, this is silly, because -march is already known by the compiler
30 # with the internal toolchain, and passed by the external wrapper for
31 # external toolchains. Nonetheless, gnuradio does some matching on the
32 # CFLAGS to decide whether to build the NEON functions or not, and
33 # wants to see the string 'armv7' in the CFLAGS.
34 ifeq ($(BR2_ARM_CPU_ARMV7A)$(BR2_ARM_CPU_HAS_NEON),yy)
35 GNURADIO_CONF_OPTS += -DCMAKE_C_FLAGS="-march=armv7-a"
36 endif
37
38 # As soon as -mfpu=neon is supported by the compiler, gnuradio will try
39 # to use it. But having NEON support in the compiler doesn't necessarily
40 # mean we have NEON support in our CPU.
41 ifeq ($(BR2_ARM_CPU_HAS_NEON),)
42 GNURADIO_CONF_OPTS += -Dhave_mfpu_neon=0
43 endif
44
45 ifeq ($(BR2_PACKAGE_GNURADIO_BLOCKS),y)
46 GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=ON
47 else
48 GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=OFF
49 endif
50
51 ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
52 GNURADIO_DEPENDENCIES += python
53 GNURADIO_CONF_OPTS += -DENABLE_PYTHON=ON
54 else
55 GNURADIO_CONF_OPTS += -DENABLE_PYTHON=OFF
56 endif
57
58 $(eval $(cmake-package))