blob: 6aae34b310090213c95596e3bf270349d37973eb [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"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
10 file://makefile-fix.patch \
11 file://libacpi_fix_for_x32.patch \
12 file://use_correct_strip_in_cross_environment.patch \
Andrew Geissler635e0e42020-08-21 15:58:33 -050013 file://ldflags.patch \
14 file://0001-libacpi-Fix-build-witth-fno-commom.patch \
15 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c"
18SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
19
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020UPSTREAM_CHECK_URI = "http://www.ngolde.de/libacpi.html"
21
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022inherit lib_package
23
Andrew Geissler9aee5002022-03-30 16:27:02 +000024COMPATIBLE_HOST = '(x86_64|i.86|aarch64).*-(linux|freebsd.*)'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025
26CFLAGS += "-fPIC"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027EXTRA_OEMAKE = '-e MAKEFLAGS= STRIP="echo"'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028
29TARGET_CC_ARCH += "${LDFLAGS}"
30
31do_install() {
Brad Bishop316dfdd2018-06-25 12:45:53 -040032 oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix} LIBDIR=${libdir}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033}