1 ################################################################################
5 ################################################################################
7 LIBSIGROK_VERSION = 55462b8ba9f48931de9b9a7bfbc182a1d113b3b5
8 # No https access on upstream git
9 LIBSIGROK_SITE = git://sigrok.org/libsigrok
10 LIBSIGROK_LICENSE = GPLv3+
11 LIBSIGROK_LICENSE_FILES = COPYING
12 # Git checkout has no configure script
13 LIBSIGROK_AUTORECONF = YES
14 LIBSIGROK_INSTALL_STAGING = YES
15 LIBSIGROK_DEPENDENCIES = libglib2 libzip host-pkgconf
16 LIBSIGROK_CONF_OPTS = --disable-glibtest --disable-java --disable-python
18 define LIBSIGROK_ADD_MISSING
19 mkdir -p $(@D)/autostuff
22 LIBSIGROK_PRE_CONFIGURE_HOOKS += LIBSIGROK_ADD_MISSING
24 ifeq ($(BR2_PACKAGE_LIBSERIALPORT),y)
25 LIBSIGROK_CONF_OPTS += --enable-libserialport
26 LIBSIGROK_DEPENDENCIES += libserialport
28 LIBSIGROK_CONF_OPTS += --disable-libserialport
31 ifeq ($(BR2_PACKAGE_LIBFTDI),y)
32 LIBSIGROK_CONF_OPTS += --enable-libftdi
33 LIBSIGROK_DEPENDENCIES += libftdi
35 LIBSIGROK_CONF_OPTS += --disable-libftdi
38 ifeq ($(BR2_PACKAGE_LIBUSB),y)
39 LIBSIGROK_CONF_OPTS += --enable-libusb
40 LIBSIGROK_DEPENDENCIES += libusb
42 LIBSIGROK_CONF_OPTS += --disable-libusb
45 ifeq ($(BR2_PACKAGE_GLIBMM),y)
46 LIBSIGROK_DEPENDENCIES += glibmm
49 ifeq ($(BR2_PACKAGE_LIBSIGROKCXX),y)
50 LIBSIGROK_CONF_OPTS += --enable-cxx
51 LIBSIGROK_AUTORECONF_OPTS += -I $(HOST_DIR)/usr/share/autoconf-archive
52 LIBSIGROK_DEPENDENCIES += \
53 host-autoconf-archive \
56 $(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
58 LIBSIGROK_CONF_OPTS += --disable-cxx
61 $(eval $(autotools-package))