1 ################################################################################
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
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
27 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_PYTHON
=OFF
30 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_IQFILE
),y
)
31 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_FILE
=ON
33 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_FILE
=OFF
36 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR
),y
)
37 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_RTL
=ON
38 GR_OSMOSDR_DEPENDENCIES
+= librtlsdr
40 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_RTL
=OFF
43 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP
),y
)
44 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_RTL_TCP
=ON
46 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_RTL_TCP
=OFF
49 ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RFSPACE
),y
)
50 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_RFSPACE
=ON
52 GR_OSMOSDR_CONF_OPTS
+= -DENABLE_RFSPACE
=OFF
55 $(eval
$(cmake-package
))