strip quotes in gcc version check
[openwrt/svn-archive/archive.git] / utils / usbutils / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=usbutils
12 PKG_VERSION:=0.72
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/linux-usb
17 PKG_MD5SUM:=ee345fe605ffcfce843dae4aed81122b
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/usbutils
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=+libusb
29 TITLE:=USB devices listing utilities
30 URL:=http://linux-usb.sourceforge.net/
31 endef
32
33 # uses GNU configure
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 all install
39 endef
40
41 define Package/usbutils/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/usr/share
45 $(CP) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(1)/usr/share/
46 endef
47
48 $(eval $(call BuildPackage,usbutils))