Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "ACPI data gathering library" |
| 2 | DESCRIPTION = "General purpose shared library for programs gathering ACPI data on Linux. \ |
| 3 | Thermal zones, battery infomration, fan information and AC states are implemented." |
| 4 | SECTION = "base" |
| 5 | HOMEPAGE = "http://www.ngolde.de/libacpi.html" |
| 6 | LICENSE = "MIT" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fec17f82f16630adf2dfb7d2a46f21c5" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
| 9 | SRC_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 Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 13 | file://ldflags.patch \ |
| 14 | file://0001-libacpi-Fix-build-witth-fno-commom.patch \ |
| 15 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
| 17 | SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c" |
| 18 | SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29" |
| 19 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 20 | UPSTREAM_CHECK_URI = "http://www.ngolde.de/libacpi.html" |
| 21 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | inherit lib_package |
| 23 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 24 | COMPATIBLE_HOST = '(x86_64|i.86|aarch64).*-(linux|freebsd.*)' |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | |
| 26 | CFLAGS += "-fPIC" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 27 | EXTRA_OEMAKE = '-e MAKEFLAGS= STRIP="echo"' |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | |
| 29 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 30 | |
| 31 | do_install() { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 32 | oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix} LIBDIR=${libdir} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | } |