2016-02-02 18:37:42 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gr-osmosdr
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-11 11:33:53 +02:00
|
|
|
GR_OSMOSDR_VERSION = 0.2.0
|
|
|
|
GR_OSMOSDR_SITE = $(call github,osmocom,gr-osmosdr,v$(GR_OSMOSDR_VERSION))
|
2017-03-30 15:43:33 +02:00
|
|
|
GR_OSMOSDR_LICENSE = GPL-3.0+
|
2016-02-02 18:37:42 +01:00
|
|
|
GR_OSMOSDR_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
# gr-osmosdr prevents doing an in-source-tree build
|
|
|
|
GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
2020-04-11 11:33:53 +02:00
|
|
|
GR_OSMOSDR_DEPENDENCIES = gnuradio host-python3
|
2016-02-02 18:37:42 +01:00
|
|
|
|
2020-03-08 20:47:47 +01:00
|
|
|
GR_OSMOSDR_CONF_OPTS = \
|
|
|
|
-DENABLE_DEFAULT=OFF \
|
|
|
|
-DENABLE_DOXYGEN=OFF
|
2016-02-02 18:37:42 +01:00
|
|
|
|
|
|
|
# For third-party blocks, the gr-osmosdr libraries are mandatory at
|
|
|
|
# compile time.
|
|
|
|
GR_OSMOSDR_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_PYTHON),y)
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=ON
|
2020-04-11 11:33:53 +02:00
|
|
|
GR_OSMOSDR_DEPENDENCIES += python3
|
2016-02-02 18:37:42 +01:00
|
|
|
else
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_IQFILE),y)
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=ON
|
|
|
|
else
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR),y)
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=ON
|
|
|
|
GR_OSMOSDR_DEPENDENCIES += librtlsdr
|
|
|
|
else
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP),y)
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=ON
|
|
|
|
else
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RFSPACE),y)
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=ON
|
|
|
|
else
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|