2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/bluetooth
/
16 PKG_HASH
:=499d7fa345a996c1bb650f5c6749e1d929111fa6ece0be0e98687fee6124536e
18 PKG_LICENSE
:=GPL-2.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:bluez
:bluez
25 PKG_BUILD_FLAGS
:=gc-sections
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/nls.mk
30 define Package
/bluez
/Default
32 URL
:=https
://www.bluez.org
/
35 define Package
/bluez-libs
36 $(call Package
/bluez
/Default
)
40 DEPENDS
:=+libpthread
+USB_SUPPORT
:kmod-bluetooth
43 define Package
/bluez-utils
44 $(call Package
/bluez
/Default
)
51 define Package
/bluez-utils-btmon
52 $(call Package
/bluez
/Default
)
56 DEPENDS
:=+bluez-libs
+glib2
59 define Package
/bluez-utils-extra
60 $(call Package
/bluez
/Default
)
63 TITLE
+= additional utilities
64 DEPENDS
:=+bluez-libs
+libpthread
+librt
+glib2
+libncurses
+libreadline
$(INTL_DEPENDS
) $(ICONV_DEPENDS
) +dbus
67 define Package
/bluez-daemon
68 $(call Package
/bluez
/Default
)
72 DEPENDS
:=+bluez-libs
+bluez-utils
+bluez-utils-extra
+glib2
+libncurses
+libreadline
+dbus
+libical
$(INTL_DEPENDS
) $(ICONV_DEPENDS
)
75 define Package
/bluez-daemon
/conffiles
76 /etc
/bluetooth
/main.conf
77 /etc
/bluetooth
/network.conf
78 /etc
/bluetooth
/input.conf
87 --enable-experimental \
102 define Build
/InstallDev
103 $(INSTALL_DIR
) $(1)/usr
/include
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/bluetooth
$(1)/usr
/include/
105 $(INSTALL_DIR
) $(1)/usr
/lib
106 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*} $(1)/usr
/lib
/
107 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/bluez.
pc $(1)/usr
/lib
/pkgconfig
/
111 define Package
/bluez-libs
/install
112 $(INSTALL_DIR
) $(1)/usr
/lib
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.so.
* $(1)/usr
/lib
/
116 define Package
/bluez-utils
/install
117 $(INSTALL_DIR
) $(1)/usr
/bin
118 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tools
/bdaddr
$(1)/usr
/bin
/
119 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/bluemoon
$(1)/usr
/bin
/
120 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/btattach
$(1)/usr
/bin
/
121 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ciptool
$(1)/usr
/bin
/
122 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/hciattach
$(1)/usr
/bin
/
123 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/hciconfig
$(1)/usr
/bin
/
124 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/hcidump
$(1)/usr
/bin
/
125 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/hcitool
$(1)/usr
/bin
/
126 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/hex2hcd
$(1)/usr
/bin
/
127 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/l2ping
$(1)/usr
/bin
/
128 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/l2test
$(1)/usr
/bin
/
129 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/rctest
$(1)/usr
/bin
/
130 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/rfcomm
$(1)/usr
/bin
/
133 define Package
/bluez-utils-btmon
/install
134 $(INSTALL_DIR
) $(1)/usr
/bin
135 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/btmon
$(1)/usr
/bin
/
138 define Package
/bluez-utils-extra
/install
139 $(INSTALL_DIR
) $(1)/usr
/bin
140 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tools
/btmgmt
$(1)/usr
/bin
/
141 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mpris-proxy
$(1)/usr
/bin
/
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/sdptool
$(1)/usr
/bin
/
143 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/attrib
/gatttool
$(1)/usr
/bin
/
146 define Package
/bluez-daemon
/install
147 $(INSTALL_DIR
) $(1)/usr
/bin
148 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/bluetooth
/bluetoothd
$(1)/usr
/bin
/
149 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/bluetoothctl
$(1)/usr
/bin
/
150 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/bluetooth
/obexd
$(1)/usr
/bin
/
151 $(INSTALL_DIR
) $(1)/etc
/dbus-1
/system.d
/
152 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/bluetooth.conf
$(1)/etc
/dbus-1
/system.d
/bluetooth.conf
153 $(INSTALL_DIR
) $(1)/etc
/bluetooth
154 $(INSTALL_DIR
) $(1)/etc
/bluetooth
/keys
155 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/main.conf
$(1)/etc
/bluetooth
/main.conf
156 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/profiles
/network
/network.conf
$(1)/etc
/bluetooth
/network.conf
157 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/profiles
/input
/input.conf
$(1)/etc
/bluetooth
/input.conf
158 $(INSTALL_DIR
) $(1)/etc
/init.d
159 $(INSTALL_BIN
) .
/files
/bluetoothd.init
$(1)/etc
/init.d
/bluetoothd
162 $(eval
$(call BuildPackage
,bluez-libs
))
163 $(eval
$(call BuildPackage
,bluez-utils
))
164 $(eval
$(call BuildPackage
,bluez-utils-btmon
))
165 $(eval
$(call BuildPackage
,bluez-utils-extra
))
166 $(eval
$(call BuildPackage
,bluez-daemon
))