[packages] libtorrent: update to 0.12.6_r1130 (#6685)
[openwrt/svn-archive/archive.git] / utils / bluez-utils / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bluez-utils
11 PKG_VERSION:=3.36
12 PKG_RELEASE:=6
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
16 PKG_MD5SUM:=4fc292b635ba7b442c7aaf5680199012
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/bluez-utils
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=+bluez-libs +libpthread +dbus +libintl +libiconv
24 TITLE:=Bluetooth utilities
25 URL:=http://www.bluez.org/
26 endef
27
28 define Package/bluez-utils/conffiles
29 /etc/bluetooth/hcid.conf
30 /etc/bluetooth/rfcomm.conf
31 /etc/config/bluetooth
32 endef
33
34 CONFIGURE_ARGS += \
35 --disable-glib \
36 --enable-pand \
37 --enable-rfcomm \
38 --enable-dund \
39 --enable-serial \
40 --enable-network \
41 --enable-usb \
42 --enable-input \
43 --disable-audio \
44 --with-bluez="$(STAGING_DIR)/usr/include" \
45 --with-usb=yes \
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 LDFLAGS="$(TARGET_LDFLAGS) \
50 -L$(STAGING_DIR)/usr/lib/libintl/lib \
51 -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 all install
54 endef
55
56 #copy bluetooth.conf nach /etc/dbus-1/system.d/
57
58 define Package/bluez-utils/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
61 $(INSTALL_DIR) $(1)/usr/sbin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
63 $(INSTALL_DIR) $(1)/etc/bluetooth
64 $(CP) $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(1)/etc/bluetooth/
65 $(CP) $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(1)/etc/bluetooth/
66 $(INSTALL_DIR) $(1)/etc/config
67 $(INSTALL_DATA) ./files/bluetooth.conf $(1)/etc/config/bluetooth
68 $(INSTALL_DIR) $(1)/etc/dbus-1/system.d/
69 $(INSTALL_DATA) ./files/bluetooth.dbus $(1)/etc/dbus-1/system.d/bluetooth.conf
70 $(INSTALL_DIR) $(1)/etc/init.d
71 $(INSTALL_BIN) ./files/bluez-utils.init $(1)/etc/init.d/bluez-utils
72 endef
73
74 $(eval $(call BuildPackage,bluez-utils))