diff mbox

[16/22] lmsensors: Version 3.3.4

Message ID 4909bb18a5cc8f9151e75716955a04548a85623d.1389173315.git.kibo@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Kim Bøndergaard Jan. 8, 2014, 9:30 a.m. UTC
---
 .../lmsensors-3.3.4/makefile_machine_fix.patch       | 13 +++++++++++++
 recipes/lmsensors/lmsensors.inc                      | 20 ++++++++++++++++----
 recipes/lmsensors/lmsensors_3.3.4.oe                 |  7 +++++++
 recipes/lmsensors/lmsensors_3.3.4.oe.sig             |  1 +
 4 files changed, 37 insertions(+), 4 deletions(-)
 create mode 100644 recipes/lmsensors/lmsensors-3.3.4/makefile_machine_fix.patch
 create mode 100644 recipes/lmsensors/lmsensors_3.3.4.oe
 create mode 100644 recipes/lmsensors/lmsensors_3.3.4.oe.sig
diff mbox

Patch

diff --git a/recipes/lmsensors/lmsensors-3.3.4/makefile_machine_fix.patch b/recipes/lmsensors/lmsensors-3.3.4/makefile_machine_fix.patch
new file mode 100644
index 0000000..abd72f8
--- /dev/null
+++ b/recipes/lmsensors/lmsensors-3.3.4/makefile_machine_fix.patch
@@ -0,0 +1,13 @@ 
+--- b/Makefile	2013-03-18 14:19:22.297921165 +0100
++++ a/Makefile	2013-03-18 14:26:05.053909264 +0100
+@@ -77,7 +77,7 @@
+ # manual pages will be installed.
+ MANDIR := $(PREFIX)/man
+ 
+-MACHINE := $(shell uname -m)
++MACHINE := $(HOST_CPU)
+ 
+ # Extra non-default programs to build; e.g., sensord
+ #PROG_EXTRA := sensord
+
+Diff finished.  Mon Mar 18 14:26:32 2013
diff --git a/recipes/lmsensors/lmsensors.inc b/recipes/lmsensors/lmsensors.inc
index 3b5d773..941642e 100644
--- a/recipes/lmsensors/lmsensors.inc
+++ b/recipes/lmsensors/lmsensors.inc
@@ -7,7 +7,8 @@  inherit make c
 
 DEPENDS = "kernel-dev native:flex native:bison libm"
 
-RDEPENDS_${PN} = "libm"
+DEPENDS_${PN} += "libc libm"
+RDEPENDS_${PN} += "libc libm"
 
 SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2"
 S = "${SRCDIR}/lm_sensors-${PV}"
@@ -34,9 +35,20 @@  do_install() {
         mv ${D}/usr/man/ ${D}${mandir}
 }
 
-PACKAGES = "${PN}-dbg ${PN}-doc ${PN} ${PN}-dev ${PN}-locale"
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-dev ${PN}-locale ${PN}-libsensors ${PN}"
 inherit auto-package-utils
 AUTO_PACKAGE_UTILS = "fancontrol isadump isaset pwmconfig sensors-detect sensors sensors-conf-convert"
-RDEPENDS_${PN} += "${PN}-sensors"
+RDEPENDS_${PN} += "${AUTO_PACKAGE_UTILS_PACKAGES}"
 
-FILES_${PN} += "${libdir}/libsensors.so"
+PROVIDES_${PN}-libsensors += "libsensors"
+PROVIDES_${PN}-libsensors[qa] += "is-library"
+DEPENDS_${PN}-libsensors += "libc libm"
+RDEPENDS_${PN}-libsensors += "libc libm"
+
+DEPENDS_${PN}-sensors += "libc libsensors"
+RDEPENDS_${PN}-sensors += "libc libsensors"
+
+DEPENDS_${PN}-dev += "libsensors"
+
+FILES_${PN}-dev += "${libdir}/libsensors.so"
+FILES_${PN}-libsensors += "${libdir}/libsensors.so.*"
diff --git a/recipes/lmsensors/lmsensors_3.3.4.oe b/recipes/lmsensors/lmsensors_3.3.4.oe
new file mode 100644
index 0000000..14777f3
--- /dev/null
+++ b/recipes/lmsensors/lmsensors_3.3.4.oe
@@ -0,0 +1,7 @@ 
+require lmsensors.inc
+
+LICENCE = "LGPL"
+
+SRC_URI += "file://makefile_machine_fix.patch"
+
+export HOST_CPU
diff --git a/recipes/lmsensors/lmsensors_3.3.4.oe.sig b/recipes/lmsensors/lmsensors_3.3.4.oe.sig
new file mode 100644
index 0000000..4c73fa5
--- /dev/null
+++ b/recipes/lmsensors/lmsensors_3.3.4.oe.sig
@@ -0,0 +1 @@ 
+4e62538ca99973ff505f2eeb5b841bb402e996d8  lm_sensors-3.3.4.tar.bz2