1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# -*-makefile-*-
#
# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_POWERTOP) += powertop
#
# Paths and names
#
POWERTOP_VERSION := 1.11
POWERTOP_MD5 := 3498f5983c683c3a57dce7379a722082
POWERTOP := powertop-$(POWERTOP_VERSION)
POWERTOP_SUFFIX := tar.gz
POWERTOP_URL := http://www.lesswatts.org/projects/powertop/download/$(POWERTOP).$(POWERTOP_SUFFIX)
POWERTOP_SOURCE := $(SRCDIR)/$(POWERTOP).$(POWERTOP_SUFFIX)
POWERTOP_DIR := $(BUILDDIR)/$(POWERTOP)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(POWERTOP_SOURCE):
@$(call targetinfo)
@$(call get, POWERTOP)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
POWERTOP_PATH := PATH=$(CROSS_PATH)
POWERTOP_COMPILE_ENV := $(CROSS_ENV)
POWERTOP_MAKEVARS := BINDIR=/usr/sbin
$(STATEDIR)/powertop.prepare:
@$(call targetinfo)
ifdef PTXCONF_NCURSES_WIDE_CHAR
sed -i -e "s/-lncurses[^ ]*/-lncursesw/g" "$(POWERTOP_DIR)/Makefile"
else
sed -i -e "s/-lncurses[^ ]*/-lncurses/g" "$(POWERTOP_DIR)/Makefile"
endif
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/powertop.targetinstall:
@$(call targetinfo)
@$(call install_init, powertop)
@$(call install_fixup, powertop,PRIORITY,optional)
@$(call install_fixup, powertop,SECTION,base)
@$(call install_fixup, powertop,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
@$(call install_fixup, powertop,DESCRIPTION,missing)
@$(call install_copy, powertop, 0, 0, 0755, -, /usr/sbin/powertop)
@$(call install_finish, powertop)
@$(call touch)
# vim: syntax=make
|