diff options
Diffstat (limited to 'meta/packages/pciutils/pciutils_3.1.5.bb')
-rw-r--r-- | meta/packages/pciutils/pciutils_3.1.5.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/packages/pciutils/pciutils_3.1.5.bb b/meta/packages/pciutils/pciutils_3.1.5.bb new file mode 100644 index 0000000000..73fe1cca68 --- /dev/null +++ b/meta/packages/pciutils/pciutils_3.1.5.bb | |||
@@ -0,0 +1,56 @@ | |||
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 | HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" | ||
5 | SECTION = "console/utils" | ||
6 | |||
7 | LICENSE = "GPLv2+" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
9 | DEPENDS = "zlib" | ||
10 | RDEPENDS_${PN} = "${PN}-ids" | ||
11 | PR = "r0" | ||
12 | |||
13 | SRC_URI = "ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-${PV}.tar.bz2 \ | ||
14 | file://configure.patch \ | ||
15 | file://pcimodules-pciutils.diff \ | ||
16 | file://lib-build-fix.patch \ | ||
17 | file://guess-fix.patch" | ||
18 | |||
19 | PARALLEL_MAKE = "" | ||
20 | |||
21 | PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes" | ||
22 | |||
23 | # see configure.patch | ||
24 | do_configure () { | ||
25 | ( | ||
26 | cd lib && \ | ||
27 | ${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH} | ||
28 | ) | ||
29 | } | ||
30 | |||
31 | export PREFIX = "${prefix}" | ||
32 | export SBINDIR = "${sbindir}" | ||
33 | export SHAREDIR = "${datadir}" | ||
34 | export MANDIR = "${mandir}" | ||
35 | |||
36 | EXTRA_OEMAKE += "${PCI_CONF_FLAG}" | ||
37 | |||
38 | # The configure script breaks if the HOST variable is set | ||
39 | HOST[unexport] = "1" | ||
40 | |||
41 | do_install () { | ||
42 | oe_runmake DESTDIR=${D} install install-lib | ||
43 | |||
44 | install -d ${D}${bindir} | ||
45 | ln -s ../sbin/lspci ${D}${bindir}/lspci | ||
46 | |||
47 | install -d ${D}${datadir} | ||
48 | install -m 644 ${S}/pci.ids ${D}${datadir} | ||
49 | } | ||
50 | |||
51 | PACKAGES =+ "pciutils-ids libpci libpci-dev libpci-dbg" | ||
52 | FILES_pciutils-ids = "${datadir}/pci.ids*" | ||
53 | FILES_libpci = "${libdir}/libpci.so.*" | ||
54 | FILES_libpci-dbg = "${libdir}/.debug" | ||
55 | FILES_libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \ | ||
56 | ${includedir}/pci ${libdir}/pkgconfig" | ||