summaryrefslogtreecommitdiff
path: root/recipes/libacpi/libacpi_0.2.bb
blob: f3990306b1da0b21cc268d317b8d98c0e43bf58d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DESCRIPTION = "ACPI data gathering library."
SECTION = "base"
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
LICENSE = "MIT"
PR = "r1"

SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
	   file://makefile-fix.patch;patch=1 "

PACKAGES += "${PN}-bin"

FILES_${PN} = "${libdir}/libacpi.so.*"
FILES_${PN}-bin = "${bindir}"

COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)'

do_stage() {
	install -m 0644 libacpi.h ${STAGING_INCDIR}
	oe_libinstall -so libacpi ${STAGING_LIBDIR}
}

do_install() {
	oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
}