2008-01-21 23:25:05 +00:00
|
|
|
#
|
2012-05-29 01:47:54 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-07-28 15:04:33 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bluez-utils
|
2008-07-19 18:00:19 +00:00
|
|
|
PKG_VERSION:=3.36
|
2012-06-05 06:36:54 +00:00
|
|
|
PKG_RELEASE:=12
|
2006-07-28 15:04:33 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
|
2008-07-19 18:00:19 +00:00
|
|
|
PKG_MD5SUM:=4fc292b635ba7b442c7aaf5680199012
|
2006-07-28 15:04:33 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
|
2006-07-28 15:04:33 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2006-07-28 15:04:33 +00:00
|
|
|
|
|
|
|
define Package/bluez-utils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2011-02-02 18:54:24 +00:00
|
|
|
DEPENDS:=+bluez-libs +libpthread +dbus $(INTL_DEPENDS) $(ICONV_DEPENDS)
|
2006-07-28 15:04:33 +00:00
|
|
|
TITLE:=Bluetooth utilities
|
|
|
|
URL:=http://www.bluez.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bluez-utils/conffiles
|
|
|
|
/etc/bluetooth/hcid.conf
|
|
|
|
/etc/bluetooth/rfcomm.conf
|
2007-09-19 15:53:33 +00:00
|
|
|
/etc/config/bluetooth
|
2006-07-28 15:04:33 +00:00
|
|
|
endef
|
|
|
|
|
2008-07-06 18:42:38 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2008-08-30 20:59:40 +00:00
|
|
|
--disable-glib \
|
2008-07-06 18:42:38 +00:00
|
|
|
--enable-pand \
|
|
|
|
--enable-rfcomm \
|
|
|
|
--enable-dund \
|
|
|
|
--enable-serial \
|
|
|
|
--enable-network \
|
|
|
|
--enable-usb \
|
|
|
|
--enable-input \
|
2008-07-19 18:00:19 +00:00
|
|
|
--disable-audio \
|
2008-07-06 18:42:38 +00:00
|
|
|
--with-bluez="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-usb=yes \
|
2006-07-28 15:04:33 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2009-04-29 12:56:17 +00:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) \
|
2011-02-02 18:54:24 +00:00
|
|
|
-L$(ICONV_PREFIX)/lib \
|
2012-02-15 19:19:47 +00:00
|
|
|
-L$(INTL_PREFIX)/lib -lm" \
|
2006-07-28 15:04:33 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bluez-utils/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2011-11-17 11:49:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2011-11-17 11:49:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/bluetooth
|
2011-12-14 10:16:25 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/bluetooth/hcid.conf $(1)/etc/bluetooth/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/bluetooth/rfcomm.conf $(1)/etc/bluetooth/
|
2007-09-19 15:53:33 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2011-11-17 11:49:08 +00:00
|
|
|
$(INSTALL_DATA) ./files/bluetooth.config $(1)/etc/config/bluetooth
|
2008-01-21 23:25:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/dbus-1/system.d/
|
2008-08-30 21:20:52 +00:00
|
|
|
$(INSTALL_DATA) ./files/bluetooth.dbus $(1)/etc/dbus-1/system.d/bluetooth.conf
|
2007-09-19 15:53:33 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/bluez-utils.init $(1)/etc/init.d/bluez-utils
|
2006-07-28 15:04:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bluez-utils))
|