aboutsummaryrefslogtreecommitdiff
path: root/package/bluez-tools
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2017-02-09 22:26:16 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-01 22:48:26 +0200
commit0e3d0582bb259c4d76efb2c3f08e7eae4094e0e4 (patch)
tree6b7b8efcd7edfcdbecad2a54bcedeb13abb12d7c /package/bluez-tools
parente066bfa66487f5754ab69a750f49866ace3f4c72 (diff)
downloadbuildroot-0e3d0582bb259c4d76efb2c3f08e7eae4094e0e4.tar.gz
buildroot-0e3d0582bb259c4d76efb2c3f08e7eae4094e0e4.tar.bz2
package/bluez-tools: new package
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: add licensing information.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/bluez-tools')
-rw-r--r--package/bluez-tools/Config.in19
-rw-r--r--package/bluez-tools/bluez-tools.hash3
-rw-r--r--package/bluez-tools/bluez-tools.mk36
3 files changed, 58 insertions, 0 deletions
diff --git a/package/bluez-tools/Config.in b/package/bluez-tools/Config.in
new file mode 100644
index 0000000000..5a1b7d0412
--- /dev/null
+++ b/package/bluez-tools/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_BLUEZ_TOOLS
+ bool "bluez-tools"
+ depends on BR2_PACKAGE_BLUEZ_UTILS || BR2_PACKAGE_BLUEZ5_UTILS
+ depends on BR2_USE_MMU # dbus, libglib2
+ depends on BR2_USE_WCHAR # libglib2
+ depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
+ select BR2_PACKAGE_DBUS
+ select BR2_PACKAGE_DBUS_GLIB
+ select BR2_PACKAGE_LIBGLIB2
+ select BR2_PACKAGE_READLINE if BR2_PACKAGE_BLUEZ5_UTILS
+ help
+ A set of tools to manage bluetooth devices for linux
+
+ https://github.com/khvzak/bluez-tools
+
+comment "bluez-tools needs a toolchain w/ wchar, threads"
+ depends on BR2_PACKAGE_BLUEZ_UTILS || BR2_PACKAGE_BLUEZ5_UTILS
+ depends on BR2_USE_MMU
+ depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/bluez-tools/bluez-tools.hash b/package/bluez-tools/bluez-tools.hash
new file mode 100644
index 0000000000..214fa5bdff
--- /dev/null
+++ b/package/bluez-tools/bluez-tools.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 56204ddd1cc7890d60f6a47507755f786fa3ee28f1da370a32ca7d7e0795a953 bluez-tools-171181b6ef6c94aefc828dc7fd8de136b9f97532.tar.gz
+sha256 62ca98af63d2ae142dbc77995c6bd4c259eaba4a5832daa33ae9e3d585b9205f bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1.tar.gz
diff --git a/package/bluez-tools/bluez-tools.mk b/package/bluez-tools/bluez-tools.mk
new file mode 100644
index 0000000000..49891bd2d1
--- /dev/null
+++ b/package/bluez-tools/bluez-tools.mk
@@ -0,0 +1,36 @@
+################################################################################
+#
+# bluez-tools
+#
+################################################################################
+
+ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
+# this is the last version compatible with BlueZ 4 API
+BLUEZ_TOOLS_VERSION = 171181b6ef6c94aefc828dc7fd8de136b9f97532
+else
+BLUEZ_TOOLS_VERSION = 97efd293491ad7ec96a655665339908f2478b3d1
+endif
+BLUEZ_TOOLS_SITE = $(call github,khvzak,bluez-tools,$(BLUEZ_TOOLS_VERSION))
+
+# sources fetched from github, no configure script)
+BLUEZ_TOOLS_AUTORECONF = YES
+BLUEZ_TOOLS_DEPENDENCIES = host-pkgconf dbus dbus-glib
+BLUEZ_TOOLS_LICENSE = GPL-2.0+
+BLUEZ_TOOLS_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
+BLUEZ_TOOLS_DEPENDENCIES += bluez_utils
+# readline is an optional dependency when used with bluez_utils
+# obex support depends on readline so enable it optionally
+ifeq ($(BR2_PACKAGE_READLINE),y)
+BLUEZ_TOOLS_CONF_OPTS += --enable-obex
+BLUEZ_TOOLS_DEPENDENCIES += readline
+else
+BLUEZ_TOOLS_CONF_OPTS += --disable-obex
+endif
+else
+# readline is a hard dependency when used with bluez5_utils
+BLUEZ_TOOLS_DEPENDENCIES += bluez5_utils readline
+endif
+
+$(eval $(autotools-package))