[1/5] powertop: Add recipe for powertop (2.5)

Submitted by christian.braunersorensen@prevas.dk on July 28, 2014, 7:50 a.m.

Details

Message ID 5d63c392b8a2ab952105fe845527f99a3ed04809.1406533543.git.christian.braunersorensen@prevas.dk
State Under Review
Delegated to: Kim
Headers show

Commit Message

christian.braunersorensen@prevas.dk July 28, 2014, 7:50 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 recipes/powertop/powertop_2.5.oe     | 23 +++++++++++++++++++++++
 recipes/powertop/powertop_2.5.oe.sig |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 recipes/powertop/powertop_2.5.oe
 create mode 100644 recipes/powertop/powertop_2.5.oe.sig

Patch hide | download patch | download mbox

diff --git a/recipes/powertop/powertop_2.5.oe b/recipes/powertop/powertop_2.5.oe
new file mode 100644
index 0000000..e8c007a
--- /dev/null
+++ b/recipes/powertop/powertop_2.5.oe
@@ -0,0 +1,23 @@ 
+SUMMARY = "Power usage tool"
+DESCRIPTION = "Linux tool to diagnose issues with power consumption and power management."
+HOMEPAGE = "http://01.org/powertop/"
+BUGTRACKER = "http://bugzilla.lesswatts.org/"
+LICENSE = "GPL-2.0"
+
+POWERTOP_COMMON_DEPENDS = "libncurses libnl-3 libnl-genl-3 libnl-nf-3 \
+	libnl-nf-3 libnl-route-3 libpci libpthread libstdc++ libm"
+DEPENDS = "${POWERTOP_COMMON_DEPENDS} libpci-dev"
+
+inherit autotools-autoreconf gettext pkgconfig c++
+
+SRC_URI = "https://github.com/fenrus75/powertop/archive/v${PV}.tar.gz"
+
+# we do not want libncursesw if we can
+do_configure[prefuncs] += "do_configure_ncurses_fixup"
+do_configure_ncurses_fixup() {
+    # configure.ac checks for delwin() in "ncursesw ncurses" so let's drop first one
+    sed -i -e "s/ncursesw//g" ${S}/configure.ac
+}
+
+DEPENDS_${PN} += "${POWERTOP_COMMON_DEPENDS} libgcc-s libc"
+RDEPENDS_${PN} += "${POWERTOP_COMMON_DEPENDS} libgcc-s libc"
diff --git a/recipes/powertop/powertop_2.5.oe.sig b/recipes/powertop/powertop_2.5.oe.sig
new file mode 100644
index 0000000..deecd61
--- /dev/null
+++ b/recipes/powertop/powertop_2.5.oe.sig
@@ -0,0 +1 @@ 
+e4136b330b7227381c3a5a45f8ef5d49104a67cf  v2.5.tar.gz