2014-03-31 10:58:00 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bluez5_utils
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-30 15:43:27 +01:00
|
|
|
BLUEZ5_UTILS_VERSION = 5.25
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_SOURCE = bluez-$(BLUEZ5_UTILS_VERSION).tar.xz
|
|
|
|
BLUEZ5_UTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
|
|
|
|
BLUEZ5_UTILS_INSTALL_STAGING = YES
|
|
|
|
BLUEZ5_UTILS_DEPENDENCIES = dbus libglib2
|
|
|
|
BLUEZ5_UTILS_LICENSE = GPLv2+ LGPLv2.1+
|
|
|
|
BLUEZ5_UTILS_LICENSE_FILES = COPYING COPYING.LIB
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS = \
|
2014-03-31 10:58:00 +02:00
|
|
|
--enable-tools \
|
|
|
|
--enable-library \
|
|
|
|
--disable-cups
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_OBEX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-obex
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += libical
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-obex
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_CLIENT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-client
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-client
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# experimental plugins
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-experimental
|
2014-03-31 10:58:00 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-experimental
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# install gatttool (For some reason upstream choose not to do it by default)
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOL),y)
|
|
|
|
define BLUEZ5_UTILS_INSTALL_GATTTOOL
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/attrib/gatttool $(TARGET_DIR)/usr/bin/gatttool
|
|
|
|
endef
|
|
|
|
BLUEZ5_UTILS_POST_INSTALL_TARGET_HOOKS += BLUEZ5_UTILS_INSTALL_GATTTOOL
|
|
|
|
endif
|
|
|
|
|
|
|
|
# enable test
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_TEST),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-test
|
2014-03-31 10:58:00 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-test
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# use udev if available
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-udev
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += udev
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-udev
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# integrate with systemd if available
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --enable-systemd
|
2014-03-31 10:58:00 +02:00
|
|
|
BLUEZ5_UTILS_DEPENDENCIES += systemd
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BLUEZ5_UTILS_CONF_OPTS += --disable-systemd
|
2014-03-31 10:58:00 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|