python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / gr-osmosdr / gr-osmosdr.mk
blobd7c3d624c467ccc721777537b26269d9b61a84e5
1 ################################################################################
3 # gr-osmosdr
5 ################################################################################
7 GR_OSMOSDR_VERSION = 164a09fc11cec2d8b15b38e8b512fa542d6cecc7
8 GR_OSMOSDR_SITE = $(call github,osmocom,gr-osmosdr,$(GR_OSMOSDR_VERSION))
9 GR_OSMOSDR_LICENSE = GPLv3+
10 GR_OSMOSDR_LICENSE_FILES = COPYING
12 # gr-osmosdr prevents doing an in-source-tree build
13 GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD = NO
15 GR_OSMOSDR_DEPENDENCIES = gnuradio
17 GR_OSMOSDR_CONF_OPTS = -DENABLE_DEFAULT=OFF
19 # For third-party blocks, the gr-osmosdr libraries are mandatory at
20 # compile time.
21 GR_OSMOSDR_INSTALL_STAGING = YES
23 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_PYTHON),y)
24 GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=ON
25 GR_OSMOSDR_DEPENDENCIES += python
26 else
27 GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=OFF
28 endif
30 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_IQFILE),y)
31 GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=ON
32 else
33 GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=OFF
34 endif
36 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR),y)
37 GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=ON
38 GR_OSMOSDR_DEPENDENCIES += librtlsdr
39 else
40 GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=OFF
41 endif
43 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP),y)
44 GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=ON
45 else
46 GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=OFF
47 endif
49 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RFSPACE),y)
50 GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=ON
51 else
52 GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=OFF
53 endif
55 $(eval $(cmake-package))