blob: 5e7f7fa8e0c37bcdcc68de29bb0bf48d6eab7c32 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "ACPI data gathering library"
2DESCRIPTION = "General purpose shared library for programs gathering ACPI data on Linux. \
3Thermal zones, battery infomration, fan information and AC states are implemented."
4SECTION = "base"
5HOMEPAGE = "http://www.ngolde.de/libacpi.html"
6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=fec17f82f16630adf2dfb7d2a46f21c5"
8PR = "r6"
9
10SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
11 file://makefile-fix.patch \
12 file://libacpi_fix_for_x32.patch \
13 file://use_correct_strip_in_cross_environment.patch \
14 file://ldflags.patch "
15
16SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c"
17SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
18
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019UPSTREAM_CHECK_URI = "http://www.ngolde.de/libacpi.html"
20
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021inherit lib_package
22
23COMPATIBLE_HOST = '(x86_64|i.86).*-(linux|freebsd.*)'
24
25CFLAGS += "-fPIC"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050026EXTRA_OEMAKE = '-e MAKEFLAGS= STRIP="echo"'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
28TARGET_CC_ARCH += "${LDFLAGS}"
29
30do_install() {
Brad Bishop316dfdd2018-06-25 12:45:53 -040031 oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix} LIBDIR=${libdir}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032}