[packages] Use default templates instead of custom reimplementations where applicable
[openwrt/svn-archive/archive.git] / utils / bluez-hcidump / 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-hcidump
11 PKG_VERSION:=1.42
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
16 PKG_MD5SUM:=5704737aaf72104eeaf77335218a1827
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/bluez-hcidump
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+bluez-libs
26 TITLE:=Bluetooth packet analyzer
27 URL:=http://www.bluez.org/
28 endef
29
30 define Build/Configure
31 $(call Build/Configure/Default, \
32 --with-bluez="$(STAGING_DIR)/usr/include" \
33 )
34 endef
35
36 define Package/bluez-hcidump/install
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hcidump $(1)/usr/sbin/
39 endef
40
41 $(eval $(call BuildPackage,bluez-hcidump))