blob: b423fda6d241e499b7ffa6b5d1506caa319afdb2 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "DMI (Desktop Management Interface) table related utilities"
2HOMEPAGE = "http://www.nongnu.org/dmidecode/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5
6SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/dmidecode/${BP}.tar.xz"
7
8COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|powerpc|powerpc64).*-linux"
9
10EXTRA_OEMAKE = "-e MAKEFLAGS="
11
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012# The upstream buildsystem uses 'docdir' as the path where it puts AUTHORS,
13# README, etc, but we don't want those in the root of our docdir.
14docdir .= "/${BPN}"
15
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016do_install() {
17 oe_runmake DESTDIR="${D}" install
18}
19
20do_unpack_extra() {
21 sed -i -e '/^prefix/s:/usr/local:${exec_prefix}:' ${S}/Makefile
22}
23addtask unpack_extra after do_unpack before do_patch
24
25SRC_URI[md5sum] = "679c2c015c515aa6ca5f229aee49c102"
26SRC_URI[sha256sum] = "d766ce9b25548c59b1e7e930505b4cad9a7bb0b904a1a391fbb604d529781ac0"
27