1 ################################################################################
5 ################################################################################
7 BLUEZ5_UTILS_VERSION
= 5.44
8 BLUEZ5_UTILS_SOURCE
= bluez-
$(BLUEZ5_UTILS_VERSION
).
tar.xz
9 BLUEZ5_UTILS_SITE
= $(BR2_KERNEL_MIRROR
)/linux
/bluetooth
10 BLUEZ5_UTILS_INSTALL_STAGING
= YES
11 BLUEZ5_UTILS_DEPENDENCIES
= dbus libglib2
12 BLUEZ5_UTILS_LICENSE
= GPLv2
+, LGPLv2.1
+
13 BLUEZ5_UTILS_LICENSE_FILES
= COPYING COPYING.LIB
15 BLUEZ5_UTILS_CONF_OPTS
= \
20 ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_OBEX
),y
)
21 BLUEZ5_UTILS_CONF_OPTS
+= --enable-obex
22 BLUEZ5_UTILS_DEPENDENCIES
+= libical
24 BLUEZ5_UTILS_CONF_OPTS
+= --disable-obex
27 ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_CLIENT
),y
)
28 BLUEZ5_UTILS_CONF_OPTS
+= --enable-client
29 BLUEZ5_UTILS_DEPENDENCIES
+= readline
31 BLUEZ5_UTILS_CONF_OPTS
+= --disable-client
34 # experimental plugins
35 ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL
),y
)
36 BLUEZ5_UTILS_CONF_OPTS
+= --enable-experimental
38 BLUEZ5_UTILS_CONF_OPTS
+= --disable-experimental
41 # enable sixaxis plugin
42 ifeq ($(BR2_PACKAGE_BLUEZ5_PLUGINS_SIXAXIS
),y
)
43 BLUEZ5_UTILS_CONF_OPTS
+= --enable-sixaxis
45 BLUEZ5_UTILS_CONF_OPTS
+= --disable-sixaxis
48 # install gatttool (For some reason upstream choose not to do it by default)
49 ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOL
),y
)
50 define BLUEZ5_UTILS_INSTALL_GATTTOOL
51 $(INSTALL
) -D
-m
0755 $(@D
)/attrib
/gatttool
$(TARGET_DIR
)/usr
/bin
/gatttool
53 BLUEZ5_UTILS_POST_INSTALL_TARGET_HOOKS
+= BLUEZ5_UTILS_INSTALL_GATTTOOL
57 ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_TEST
),y
)
58 BLUEZ5_UTILS_CONF_OPTS
+= --enable-test
60 BLUEZ5_UTILS_CONF_OPTS
+= --disable-test
63 # use udev if available
64 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
65 BLUEZ5_UTILS_CONF_OPTS
+= --enable-udev
66 BLUEZ5_UTILS_DEPENDENCIES
+= udev
68 BLUEZ5_UTILS_CONF_OPTS
+= --disable-udev
71 # integrate with systemd if available
72 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
73 BLUEZ5_UTILS_CONF_OPTS
+= --enable-systemd
74 BLUEZ5_UTILS_DEPENDENCIES
+= systemd
76 BLUEZ5_UTILS_CONF_OPTS
+= --disable-systemd
79 define BLUEZ5_UTILS_INSTALL_INIT_SYSTEMD
80 mkdir
-p
$(TARGET_DIR
)/etc
/systemd
/system
/bluetooth.target.wants
81 ln
-fs ..
/..
/..
/..
/usr
/lib
/systemd
/system
/bluetooth.service \
82 $(TARGET_DIR
)/etc
/systemd
/system
/bluetooth.target.wants
/bluetooth.service
83 ln
-fs ..
/..
/..
/..
/usr
/lib
/systemd
/system
/bluetooth.service \
84 $(TARGET_DIR
)/etc
/systemd
/system
/dbus-org.bluez.service
87 $(eval
$(autotools-package
))