2015-01-29 12:35:38 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libsigrok
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-01-06 11:01:02 +01:00
|
|
|
LIBSIGROK_VERSION = 0.5.2
|
2016-01-31 14:58:54 +01:00
|
|
|
LIBSIGROK_SITE = http://sigrok.org/download/source/libsigrok
|
2017-03-30 15:43:33 +02:00
|
|
|
LIBSIGROK_LICENSE = GPL-3.0+
|
2015-01-29 12:35:38 +01:00
|
|
|
LIBSIGROK_LICENSE_FILES = COPYING
|
|
|
|
LIBSIGROK_INSTALL_STAGING = YES
|
|
|
|
LIBSIGROK_DEPENDENCIES = libglib2 libzip host-pkgconf
|
2019-10-27 18:49:47 +01:00
|
|
|
LIBSIGROK_CONF_OPTS = --disable-java --disable-python
|
2015-01-29 12:35:38 +01:00
|
|
|
|
2020-01-12 23:08:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
2020-01-06 19:24:19 +01:00
|
|
|
LIBSIGROK_CONF_OPTS += --with-libbluez
|
2020-01-11 09:32:50 +01:00
|
|
|
LIBSIGROK_DEPENDENCIES += bluez5_utils
|
2020-01-06 19:24:19 +01:00
|
|
|
else
|
|
|
|
LIBSIGROK_CONF_OPTS += --without-libbluez
|
|
|
|
endif
|
|
|
|
|
2020-01-11 16:07:49 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HIDAPI),y)
|
|
|
|
LIBSIGROK_CONF_OPTS += --with-libhidapi
|
|
|
|
LIBSIGROK_DEPENDENCIES += hidapi
|
|
|
|
else
|
|
|
|
LIBSIGROK_CONF_OPTS += --without-libhidapi
|
|
|
|
endif
|
|
|
|
|
2015-02-20 13:28:58 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSERIALPORT),y)
|
2019-10-27 18:49:47 +01:00
|
|
|
LIBSIGROK_CONF_OPTS += --with-libserialport
|
2015-02-20 13:28:58 +01:00
|
|
|
LIBSIGROK_DEPENDENCIES += libserialport
|
|
|
|
else
|
2019-10-27 18:49:47 +01:00
|
|
|
LIBSIGROK_CONF_OPTS += --without-libserialport
|
2015-02-20 13:28:58 +01:00
|
|
|
endif
|
|
|
|
|
2019-10-28 12:24:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1),y)
|
2019-10-27 18:49:47 +01:00
|
|
|
LIBSIGROK_CONF_OPTS += --with-libftdi
|
2019-10-28 12:24:11 +01:00
|
|
|
LIBSIGROK_DEPENDENCIES += libftdi1
|
2015-01-29 12:35:38 +01:00
|
|
|
else
|
2019-10-27 18:49:47 +01:00
|
|
|
LIBSIGROK_CONF_OPTS += --without-libftdi
|
2015-01-29 12:35:38 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
2019-10-27 18:49:47 +01:00
|
|
|
LIBSIGROK_CONF_OPTS += --with-libusb
|
2015-01-29 12:35:38 +01:00
|
|
|
LIBSIGROK_DEPENDENCIES += libusb
|
|
|
|
else
|
2019-10-27 18:49:47 +01:00
|
|
|
LIBSIGROK_CONF_OPTS += --without-libusb
|
2015-01-29 12:35:38 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GLIBMM),y)
|
|
|
|
LIBSIGROK_DEPENDENCIES += glibmm
|
|
|
|
endif
|
|
|
|
|
2015-02-23 12:32:48 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSIGROKCXX),y)
|
|
|
|
LIBSIGROK_CONF_OPTS += --enable-cxx
|
2015-04-10 11:49:58 +02:00
|
|
|
LIBSIGROK_DEPENDENCIES += \
|
|
|
|
glibmm \
|
|
|
|
host-doxygen \
|
|
|
|
$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
|
2015-02-23 12:32:48 +01:00
|
|
|
else
|
|
|
|
LIBSIGROK_CONF_OPTS += --disable-cxx
|
|
|
|
endif
|
|
|
|
|
2015-01-29 12:35:38 +01:00
|
|
|
$(eval $(autotools-package))
|