DESCRIPTION = 'The PCI Utilities package contains a library for portable access \ to PCI bus configuration space and several utilities based on this library.' DESCRIPTION_pciutils-ids = 'The list of PCI IDs for pciutils' SECTION = "console/utils" HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" LICENSE = "GPLv2" DEPENDS = "zlib" SRC_URI = "ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-${PV}.tar.bz2 \ file://configure.patch \ file://configure-uclibc.patch \ file://pcimodules-pciutils.diff" PARALLEL_MAKE = "" PR ="r3" do_configure () { (cd lib && ./configure ${datadir} ${PV} ${TARGET_OS} 2.4.21 ${TARGET_ARCH}) } export PREFIX = "${D}${prefix}" export SBINDIR = "${D}${sbindir}" export SHAREDIR = "${D}${datadir}" export MANDIR = "${D}${mandir}" LDFLAGS += "-lz" do_install () { oe_runmake install } do_install_append () { install -d ${D}/${prefix}/share install -m 6440 ${WORKDIR}/${PN}-${PV}/pci.ids ${D}/${prefix}/share # The makefile does not install the development files: # libpci.a pci.h header.h config.h types.s install -d ${D}/${libdir} install -d ${D}/${includedir}/pci oe_libinstall -a -C lib libpci ${D}/${libdir} install -m 0644 ${S}/lib/pci.h ${D}/${includedir}/pci/ install -m 0644 ${S}/lib/header.h ${D}/${includedir}/pci/ install -m 0644 ${S}/lib/config.h ${D}/${includedir}/pci/ install -m 0644 ${S}/lib/types.h ${D}/${includedir}/pci/ } do_stage () { oe_libinstall -a -C lib libpci ${STAGING_LIBDIR} install -m 0755 -d ${STAGING_INCDIR}/pci install -m 0644 ${S}/lib/pci.h ${STAGING_INCDIR}/pci/ install -m 0644 ${S}/lib/header.h ${STAGING_INCDIR}/pci/ install -m 0644 ${S}/lib/config.h ${STAGING_INCDIR}/pci/ install -m 0644 ${S}/lib/types.h ${STAGING_INCDIR}/pci/ } PACKAGES =+ "pciutils-ids" FILES_pciutils-ids="${prefix}/share/pci.ids" SRC_URI[md5sum] = "10bab01d3c8856426cdf79f124fd4173" SRC_URI[sha256sum] = "61fd2a9225aad67d4e21727a297e571ddd6a973b845646cf10b24a92b88467bc"