2008-01-21 23:25:05 +00:00
|
|
|
#
|
2006-07-28 15:04:33 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bluez-utils
|
2008-07-06 18:42:38 +00:00
|
|
|
PKG_VERSION:=3.35
|
|
|
|
PKG_RELEASE:=1
|
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-06 18:42:38 +00:00
|
|
|
PKG_MD5SUM:=21dc2f8c03dae9db87da351c735510bb
|
2006-07-28 15:04:33 +00:00
|
|
|
|
2006-10-28 21:52:04 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-07-28 15:04:33 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bluez-utils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2008-07-06 18:42:38 +00:00
|
|
|
DEPENDS:=+bluez-libs +libpthread +dbus +libintl +libiconv
|
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 += \
|
|
|
|
--enable-pand \
|
|
|
|
--enable-rfcomm \
|
|
|
|
--enable-dund \
|
|
|
|
--enable-serial \
|
|
|
|
--enable-network \
|
|
|
|
--enable-usb \
|
|
|
|
--enable-input \
|
|
|
|
--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) \
|
2008-07-06 18:42:38 +00:00
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib" \
|
2006-07-28 15:04:33 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
2008-01-21 23:25:05 +00:00
|
|
|
#copy bluetooth.conf nach /etc/dbus-1/system.d/
|
|
|
|
|
2006-07-28 15:04:33 +00:00
|
|
|
define Package/bluez-utils/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/bluetooth
|
2006-07-28 15:04:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(1)/etc/bluetooth/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(1)/etc/bluetooth/
|
2007-09-19 15:53:33 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/bluetooth.conf $(1)/etc/config/bluetooth
|
2008-01-21 23:25:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/dbus-1/system.d/
|
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))
|