2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://bluez.sourceforge.net
/download
17 PKG_MD5SUM
:=5f5488ff3d31bdb9cd36b7991fe68408
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/bluez-utils
28 DEPENDS
:=+bluez-libs
+libpthread
29 TITLE
:=Bluetooth utilities
30 URL
:=http
://www.bluez.org
/
33 define Package
/bluez-utils
/conffiles
34 /etc
/bluetooth
/givepin
35 /etc
/bluetooth
/hcid.conf
36 /etc
/bluetooth
/rfcomm.conf
39 define Build
/Configure
40 $(call Build
/Configure
/Default
, \
47 --disable-initscripts \
54 --with-bluez
="$(STAGING_DIR)/usr/include" \
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 DESTDIR
="$(PKG_INSTALL_DIR)" \
65 define Package
/bluez-utils
/install
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
68 $(INSTALL_DIR
) $(1)/usr
/sbin
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
70 $(INSTALL_DIR
) $(1)/etc
/bluetooth
71 $(CP
) $(PKG_INSTALL_DIR
)/..
/hcid
/hcid.conf
$(1)/etc
/bluetooth
/
72 $(CP
) $(PKG_INSTALL_DIR
)/..
/rfcomm
/rfcomm.conf
$(1)/etc
/bluetooth
/
73 install -m0700 .
/files
/givepin
$(1)/etc
/bluetooth
/
76 $(eval
$(call BuildPackage
,bluez-utils
))