2 # Copyright (C) 2006-2015 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
:=http
://www.kernel.org
/pub
/linux
/bluetooth
/
16 PKG_MD5SUM
:=a8fc508690e497e88c2c0b373cd653a8
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/nls.mk
27 define Package
/bluez
/Default
29 URL
:=http
://www.bluez.org
/
32 define Package
/bluez-libs
33 $(call Package
/bluez
/Default
)
40 define Package
/bluez-utils
41 $(call Package
/bluez
/Default
)
45 DEPENDS
:=+bluez-libs
+libpthread
+dbus
+glib2
+libical
+libncurses
+libreadline
$(INTL_DEPENDS
) $(ICONV_DEPENDS
)
48 define Package
/bluez-utils
/conffiles
49 /etc
/bluetooth
/hcid.conf
50 /etc
/bluetooth
/rfcomm.conf
59 --enable-experimental \
76 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/include
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/bluetooth
$(1)/usr
/include/
79 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*} $(1)/usr
/lib
/
81 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/bluez.
pc $(1)/usr
/lib
/pkgconfig
/
85 define Package
/bluez-libs
/install
86 $(INSTALL_DIR
) $(1)/usr
/lib
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.so.
* $(1)/usr
/lib
/
90 define Package
/bluez-utils
/install
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
93 $(INSTALL_DIR
) $(1)/etc
/config
94 $(INSTALL_DATA
) .
/files
/bluetooth.config
$(1)/etc
/config
/bluetooth
95 $(INSTALL_DIR
) $(1)/etc
/dbus-1
/system.d
/
96 $(INSTALL_DATA
) .
/files
/bluetooth.dbus
$(1)/etc
/dbus-1
/system.d
/bluetooth.conf
97 $(INSTALL_DIR
) $(1)/etc
/init.d
98 $(INSTALL_BIN
) .
/files
/bluez-utils.init
$(1)/etc
/init.d
/bluez-utils
101 $(eval
$(call BuildPackage
,bluez-libs
))
102 $(eval
$(call BuildPackage
,bluez-utils
))