add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache
[openwrt/svn-archive/archive.git] / utils / pciutils / 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:=pciutils
12 PKG_VERSION:=2.2.1
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.kernel.org/pub/software/utils/pciutils/ \
18 ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
19 PKG_MD5SUM:=c18e2a5f04e9abae5a42439de294f086
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/pciutils
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=Linux PCI Utilities
30 DESCRIPTION:=Linux PCI Utilities.\\\
31 This package contains various utilities for inspecting and setting of \\\
32 devices connected to the PCI bus.
33 URL:=http://www.kernel.org/pub/software/utils/pciutils/
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" IDSDIR="/usr/share" HOST=$(GNU_TARGET_NAME)
42 endef
43
44 define Package/pciutils/install
45 install -d -m0755 $(1)/usr/sbin
46 $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(1)/usr/sbin/
47 install -d -m0755 $(1)/usr/share
48 $(CP) $(PKG_BUILD_DIR)/pci.ids $(1)/usr/share/
49 endef
50
51 $(eval $(call BuildPackage,pciutils))