[package] add cryptsetup, patch from Jan Willies
[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
22 define Package/bluez-utils
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+bluez-libs +libpthread +dbus +libintl +libiconv
26 TITLE:=Bluetooth utilities
27 URL:=http://www.bluez.org/
28 endef
29
30 define Package/bluez-utils/conffiles
31 /etc/bluetooth/hcid.conf
32 /etc/bluetooth/rfcomm.conf
33 /etc/config/bluetooth
34 endef
35
36 CONFIGURE_ARGS += \
37 --disable-glib \
38 --enable-pand \
39 --enable-rfcomm \
40 --enable-dund \
41 --enable-serial \
42 --enable-network \
43 --enable-usb \
44 --enable-input \
45 --disable-audio \
46 --with-bluez="$(STAGING_DIR)/usr/include" \
47 --with-usb=yes \
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 LDFLAGS="$(TARGET_LDFLAGS) \
52 -L$(STAGING_DIR)/usr/lib/libintl/lib \
53 -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 endef
57
58 #copy bluetooth.conf nach /etc/dbus-1/system.d/
59
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_DATA) ./files/bluetooth.dbus $(1)/etc/dbus-1/system.d/bluetooth.conf
72 $(INSTALL_DIR) $(1)/etc/init.d
73 $(INSTALL_BIN) ./files/bluez-utils.init $(1)/etc/init.d/bluez-utils
74 endef
75
76 $(eval $(call BuildPackage,bluez-utils))