Fix compilation, change rpl_malloc detection, closes #423
[openwrt.git] / package / pciutils / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=pciutils
6 PKG_VERSION:=2.2.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c18e2a5f04e9abae5a42439de294f086
9
10 PKG_SOURCE_URL:=http://www.kernel.org/pub/software/utils/pciutils/ \
11 ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,PCIUTILS,pciutils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" IDSDIR="/usr/share" HOST=$(GNU_TARGET_NAME)
28 touch $@
29
30 $(IPKG_PCIUTILS):
31 install -d -m0755 $(IDIR_PCIUTILS)/usr/sbin
32 install -d -m0755 $(IDIR_PCIUTILS)/usr/share
33 $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(IDIR_PCIUTILS)/usr/sbin/
34 $(CP) $(PKG_BUILD_DIR)/pci.ids $(IDIR_PCIUTILS)/usr/share/
35 $(RSTRIP) $(IDIR_PCIUTILS)/
36 $(IPKG_BUILD) $(IDIR_PCIUTILS) $(PACKAGE_DIR)
This page took 0.047501 seconds and 5 git commands to generate.