1 DESCRIPTION = 'The PCI Utilities package contains a library for portable access \
2 to PCI bus configuration space and several utilities based on this library.'
3 DESCRIPTION_pciutils-ids = 'The list of PCI IDs for pciutils'
4 SECTION = "console/utils"
5 HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
9 SRC_URI = "ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-${PV}.tar.bz2 \
10 file://pciutils.patch;patch=1 "
11 SRC_URI_append_nylon = "file://gcc-3-compatibility.patch;patch=1 "
17 EXTRA_OEMAKE += "'STRIP = ' PREFIX=${prefix} LIBDIR=${libdir}"
19 export DESTDIR = "${D}"
20 export PREFIX = "${prefix}"
21 export SBINDIR = "${sbindir}"
22 export SHAREDIR = "${datadir}"
23 export MANDIR = "${mandir}"
24 export IDSDIR = "${datadir}"
28 (cd lib && ./configure ${datadir} ${PV} ${TARGET_OS} 2.4.21 ${TARGET_ARCH})
32 oe_runmake install install-lib
34 # "make install" misses the debug file for the library
35 oe_libinstall -so -C lib libpci ${D}/${libdir}
37 # Some older versions of hal may need the uncompressed version.
38 # We install it in a separate package, pciutils-ids-uncompressed.
39 install -m 0644 ${S}/pci.ids ${D}/${datadir}
42 PACKAGES =+ "${PN}-ids ${PN}-ids-uncompressed"
43 FILES_${PN}-ids = "${datadir}/pci.ids.gz"
44 FILES_${PN}-ids-uncompressed = "${datadir}/pci.ids"