xref: /OK3568_Linux_fs/buildroot/package/libsigrok/libsigrok.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# libsigrok
4#
5################################################################################
6
7LIBSIGROK_VERSION = 0.5.2
8LIBSIGROK_SITE = http://sigrok.org/download/source/libsigrok
9LIBSIGROK_LICENSE = GPL-3.0+
10LIBSIGROK_LICENSE_FILES = COPYING
11LIBSIGROK_INSTALL_STAGING = YES
12LIBSIGROK_DEPENDENCIES = libglib2 libzip host-pkgconf
13LIBSIGROK_CONF_OPTS = --disable-java --disable-python
14
15ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
16LIBSIGROK_CONF_OPTS += --with-libbluez
17LIBSIGROK_DEPENDENCIES += bluez5_utils
18else
19LIBSIGROK_CONF_OPTS += --without-libbluez
20endif
21
22ifeq ($(BR2_PACKAGE_HIDAPI),y)
23LIBSIGROK_CONF_OPTS += --with-libhidapi
24LIBSIGROK_DEPENDENCIES += hidapi
25else
26LIBSIGROK_CONF_OPTS += --without-libhidapi
27endif
28
29ifeq ($(BR2_PACKAGE_LIBSERIALPORT),y)
30LIBSIGROK_CONF_OPTS += --with-libserialport
31LIBSIGROK_DEPENDENCIES += libserialport
32else
33LIBSIGROK_CONF_OPTS += --without-libserialport
34endif
35
36ifeq ($(BR2_PACKAGE_LIBFTDI1),y)
37LIBSIGROK_CONF_OPTS += --with-libftdi
38LIBSIGROK_DEPENDENCIES += libftdi1
39else
40LIBSIGROK_CONF_OPTS += --without-libftdi
41endif
42
43ifeq ($(BR2_PACKAGE_LIBUSB),y)
44LIBSIGROK_CONF_OPTS += --with-libusb
45LIBSIGROK_DEPENDENCIES += libusb
46else
47LIBSIGROK_CONF_OPTS += --without-libusb
48endif
49
50ifeq ($(BR2_PACKAGE_GLIBMM),y)
51LIBSIGROK_DEPENDENCIES += glibmm
52endif
53
54ifeq ($(BR2_PACKAGE_LIBSIGROKCXX),y)
55LIBSIGROK_CONF_OPTS += --enable-cxx
56# host-doxygen is used by C++ bindings to parse libsigrok symbols
57LIBSIGROK_DEPENDENCIES += \
58	glibmm \
59	host-doxygen \
60	$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
61else
62LIBSIGROK_CONF_OPTS += --disable-cxx
63endif
64
65$(eval $(autotools-package))
66