package/libsigrok: add optional bluez-utils dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 6 Jan 2020 18:24:19 +0000 (19:24 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 10 Jan 2020 22:12:12 +0000 (23:12 +0100)
bluez-utils has been added since version 0.5.2 and
https://github.com/sigrokproject/libsigrok/commit/f085705f4888f8127c80539e0fcd1cb3974bdff2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libsigrok/libsigrok.mk

index 971e90c94ae3ac3e3726544fd9f437ad66cec152..922011af7c5398ea9d5c7b6656765cee9accc03f 100644 (file)
@@ -12,6 +12,16 @@ LIBSIGROK_INSTALL_STAGING = YES
 LIBSIGROK_DEPENDENCIES = libglib2 libzip host-pkgconf
 LIBSIGROK_CONF_OPTS = --disable-java --disable-python
 
+ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
+LIBSIGROK_CONF_OPTS += --with-libbluez
+LIBSIGROK_DEPENDENCIES += bluez_utils
+else ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
+LIBSIGROK_CONF_OPTS += --with-libbluez
+LIBSIGROK_DEPENDENCIES += bluez_utils5
+else
+LIBSIGROK_CONF_OPTS += --without-libbluez
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSERIALPORT),y)
 LIBSIGROK_CONF_OPTS += --with-libserialport
 LIBSIGROK_DEPENDENCIES += libserialport