[packages] lftp: update to 4.1.3
[openwrt/svn-archive/archive.git] / utils / bluez-utils / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=7
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 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 define Package/bluez-utils
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=+bluez-libs +libpthread +dbus $(INTL_DEPENDS) $(ICONV_DEPENDS)
27 TITLE:=Bluetooth utilities
28 URL:=http://www.bluez.org/
29 endef
30
31 define Package/bluez-utils/conffiles
32 /etc/bluetooth/hcid.conf
33 /etc/bluetooth/rfcomm.conf
34 /etc/config/bluetooth
35 endef
36
37 CONFIGURE_ARGS += \
38 --disable-glib \
39 --enable-pand \
40 --enable-rfcomm \
41 --enable-dund \
42 --enable-serial \
43 --enable-network \
44 --enable-usb \
45 --enable-input \
46 --disable-audio \
47 --with-bluez="$(STAGING_DIR)/usr/include" \
48 --with-usb=yes \
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 LDFLAGS="$(TARGET_LDFLAGS) \
53 -L$(ICONV_PREFIX)/lib \
54 -L$(INTL_PREFIX)/lib" \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 all install
57 endef
58
59 #copy bluetooth.conf nach /etc/dbus-1/system.d/
60
61 define Package/bluez-utils/install
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
66 $(INSTALL_DIR) $(1)/etc/bluetooth
67 $(CP) $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(1)/etc/bluetooth/
68 $(CP) $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(1)/etc/bluetooth/
69 $(INSTALL_DIR) $(1)/etc/config
70 $(INSTALL_DATA) ./files/bluetooth.conf $(1)/etc/config/bluetooth
71 $(INSTALL_DIR) $(1)/etc/dbus-1/system.d/
72 $(INSTALL_DATA) ./files/bluetooth.dbus $(1)/etc/dbus-1/system.d/bluetooth.conf
73 $(INSTALL_DIR) $(1)/etc/init.d
74 $(INSTALL_BIN) ./files/bluez-utils.init $(1)/etc/init.d/bluez-utils
75 endef
76
77 $(eval $(call BuildPackage,bluez-utils))