python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / pciutils / pciutils.mk
blobe65eadcaf183441ab4ff5b458ebf8c0c84d82086
1 ################################################################################
3 # pciutils
5 ################################################################################
7 PCIUTILS_VERSION = 3.5.2
8 PCIUTILS_SITE = $(BR2_KERNEL_MIRROR)/software/utils/pciutils
9 PCIUTILS_SOURCE = pciutils-$(PCIUTILS_VERSION).tar.xz
10 PCIUTILS_INSTALL_STAGING = YES
11 PCIUTILS_LICENSE = GPLv2+
12 PCIUTILS_LICENSE_FILES = COPYING
13 PCIUTILS_MAKE_OPTS = \
14 CC="$(TARGET_CC)" \
15 HOST="$(KERNEL_ARCH)-linux" \
16 OPT="$(TARGET_CFLAGS)" \
17 LDFLAGS="$(TARGET_LDFLAGS)" \
18 RANLIB=$(TARGET_RANLIB) \
19 AR=$(TARGET_AR) \
20 DNS=no
22 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
23 PCIUTILS_DEPENDENCIES += udev
24 PCIUTILS_MAKE_OPTS += HWDB=yes
25 else
26 PCIUTILS_MAKE_OPTS += HWDB=no
27 endif
29 ifeq ($(BR2_PACKAGE_ZLIB),y)
30 PCIUTILS_MAKE_OPTS += ZLIB=yes
31 PCIUTILS_DEPENDENCIES += zlib
32 else
33 PCIUTILS_MAKE_OPTS += ZLIB=no
34 endif
36 ifeq ($(BR2_PACKAGE_KMOD),y)
37 PCIUTILS_DEPENDENCIES += kmod
38 PCIUTILS_MAKE_OPTS += LIBKMOD=yes
39 else
40 PCIUTILS_MAKE_OPTS += LIBKMOD=no
41 endif
43 ifeq ($(BR2_STATIC_LIBS),y)
44 PCIUTILS_MAKE_OPTS += SHARED=no
45 else
46 PCIUTILS_MAKE_OPTS += SHARED=yes
47 endif
49 # Build after busybox since it's got a lightweight lspci
50 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
51 PCIUTILS_DEPENDENCIES += busybox
52 endif
54 define PCIUTILS_CONFIGURE_CMDS
55 $(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
56 $(SED) 's/uname -s/echo Linux/' \
57 -e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
58 $(PCIUTILS_DIR)/lib/configure
59 $(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
60 endef
62 define PCIUTILS_BUILD_CMDS
63 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
64 PREFIX=/usr
65 endef
67 define PCIUTILS_INSTALL_TARGET_CMDS
68 $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
69 PREFIX=$(TARGET_DIR)/usr SBINDIR=$(TARGET_DIR)/usr/bin \
70 install install-lib install-pcilib
71 endef
73 define PCIUTILS_INSTALL_STAGING_CMDS
74 $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
75 PREFIX=$(STAGING_DIR)/usr SBINDIR=$(STAGING_DIR)/usr/bin \
76 install install-lib install-pcilib
77 endef
79 $(eval $(generic-package))