kumquat-buildroot/package/gr-osmosdr/gr-osmosdr.mk
Gwenhael Goavec-Merou 89d210449c gr-osmosdr: new package
Add support for gr-osmosdr - a GNU Radio block for interfacing with various
radio hardware.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
[Thomas:
 - instead of selecting BR2_PACKAGE_GNURADIO, use "depends
   on". Indeed, it is fairly obvious for a user that some GNURadio
   extensions require GNURadio to be built. And it avoids the need to
   replicate all the complex dependencies of GNURadio.
 - remove comment that the Python support needs Python. It's fairly
   obvious, no?
 - remove comment about the thread dependency of
   BR2_PACKAGE_GR_OSMOSDR_RTLSDR, since anyway GNURadio already need
   threads. Yes, we sometimes still add such dependencies, but in the
   case of GNURadio, it's highly unlikely that GNURadio will ever
   loose the thread dependency.
 - use "NO" instead of "no" as the value for
   GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD since we always use upper-case
   letters for the value of such booleans.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-02-21 22:50:41 +01:00

56 lines
1.4 KiB
Makefile

################################################################################
#
# gr-osmosdr
#
################################################################################
GR_OSMOSDR_VERSION = a45968f3381f33b86ca344bb76bd62c131d98d93
GR_OSMOSDR_SITE = $(call github,osmocom,gr-osmosdr,$(GR_OSMOSDR_VERSION))
GR_OSMOSDR_LICENSE = GPLv3+
GR_OSMOSDR_LICENSE_FILES = COPYING
# gr-osmosdr prevents doing an in-source-tree build
GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD = NO
GR_OSMOSDR_DEPENDENCIES = gnuradio
GR_OSMOSDR_CONF_OPTS = -DENABLE_DEFAULT=OFF
# 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
GR_OSMOSDR_DEPENDENCIES += python
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))