1 ################################################################################
5 ################################################################################
7 LIBSIGROK_VERSION
= 0.4.0
8 LIBSIGROK_SITE
= http
://sigrok.org
/download
/source
/libsigrok
9 LIBSIGROK_LICENSE
= GPLv3
+
10 LIBSIGROK_LICENSE_FILES
= COPYING
11 LIBSIGROK_INSTALL_STAGING
= YES
12 LIBSIGROK_DEPENDENCIES
= libglib2 libzip host-pkgconf
13 LIBSIGROK_CONF_OPTS
= --disable-glibtest
--disable-java
--disable-python
15 ifeq ($(BR2_PACKAGE_LIBSERIALPORT
),y
)
16 LIBSIGROK_CONF_OPTS
+= --enable-libserialport
17 LIBSIGROK_DEPENDENCIES
+= libserialport
19 LIBSIGROK_CONF_OPTS
+= --disable-libserialport
22 ifeq ($(BR2_PACKAGE_LIBFTDI
),y
)
23 LIBSIGROK_CONF_OPTS
+= --enable-libftdi
24 LIBSIGROK_DEPENDENCIES
+= libftdi
26 LIBSIGROK_CONF_OPTS
+= --disable-libftdi
29 ifeq ($(BR2_PACKAGE_LIBUSB
),y
)
30 LIBSIGROK_CONF_OPTS
+= --enable-libusb
31 LIBSIGROK_DEPENDENCIES
+= libusb
33 LIBSIGROK_CONF_OPTS
+= --disable-libusb
36 ifeq ($(BR2_PACKAGE_GLIBMM
),y
)
37 LIBSIGROK_DEPENDENCIES
+= glibmm
40 ifeq ($(BR2_PACKAGE_LIBSIGROKCXX
),y
)
41 LIBSIGROK_CONF_OPTS
+= --enable-cxx
42 LIBSIGROK_AUTORECONF_OPTS
+= -I
$(HOST_DIR
)/usr
/share
/autoconf-archive
43 LIBSIGROK_DEPENDENCIES
+= \
44 host-autoconf-archive \
47 $(if
$(BR2_PACKAGE_PYTHON3
),host-python3
,host-python
)
49 LIBSIGROK_CONF_OPTS
+= --disable-cxx
52 $(eval
$(autotools-package
))