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
:=21dc2f8c03dae9db87da351c735510bb
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/bluez-utils
27 DEPENDS
:=+bluez-libs
+libpthread
+dbus
+libintl
+libiconv
28 TITLE
:=Bluetooth utilities
29 URL
:=http
://www.bluez.org
/
32 define Package
/bluez-utils
/conffiles
33 /etc
/bluetooth
/hcid.conf
34 /etc
/bluetooth
/rfcomm.conf
46 --with-bluez
="$(STAGING_DIR)/usr/include" \
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 LDFLAGS
="-L$(STAGING_DIR)/usr/lib \
52 -L$(STAGING_DIR)/usr/lib/libintl/lib \
53 -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
54 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 #copy bluetooth.conf nach /etc/dbus-1/system.d/
60 define Package
/bluez-utils
/install
61 $(INSTALL_DIR
) $(1)/usr
/bin
62 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
63 $(INSTALL_DIR
) $(1)/usr
/sbin
64 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
65 $(INSTALL_DIR
) $(1)/etc
/bluetooth
66 $(CP
) $(PKG_INSTALL_DIR
)/..
/hcid
/hcid.conf
$(1)/etc
/bluetooth
/
67 $(CP
) $(PKG_INSTALL_DIR
)/..
/rfcomm
/rfcomm.conf
$(1)/etc
/bluetooth
/
68 $(INSTALL_DIR
) $(1)/etc
/config
69 $(INSTALL_DATA
) .
/files
/bluetooth.conf
$(1)/etc
/config
/bluetooth
70 $(INSTALL_DIR
) $(1)/etc
/dbus-1
/system.d
/
71 $(INSTALL_DIR
) $(1)/etc
/init.d
72 $(INSTALL_BIN
) .
/files
/bluez-utils.init
$(1)/etc
/init.d
/bluez-utils
75 $(eval
$(call BuildPackage
,bluez-utils
))