2 # Copyright (C) 2019 Lucian Cristain <lucian.cristian@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-v
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://01.org
/sites
/default
/files
/downloads
/
16 PKG_HASH
:=d3b7459eaba7d01c8841dd33a3b4d369416c01e9bd8951b0d88234cf18fe4a75
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-v
$(PKG_VERSION
)
19 PKG_MAINTAINER
:=Lucian Cristain
<lucian.cristian@gmail.com
>
25 include $(INCLUDE_DIR
)/uclibc
++.mk
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
29 define Package
/powertop
32 DEPENDS
:=$(CXX_DEPENDS
) $(INTL_DEPENDS
) +libpci
+libncursesw
+libnl-genl
33 TITLE
:=Power consumption monitor
34 URL
:=https
://01.org
/powertop
37 define Package
/powertop
/description
38 PowerTOP is a Linux tool to diagnose issues with power consumption
42 TARGET_CFLAGS
+= $(FPIC
)
43 ifeq ($(CONFIG_USE_UCLIBC
),y
)
44 TARGET_CFLAGS
+= -fno-stack-protector
46 TARGET_LDFLAGS
+= $(if
$(INTL_FULL
),-lintl
)
48 CONFIGURE_ARGS
+= --without-pic
50 define Package
/powertop
/install
51 $(INSTALL_DIR
) $(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/powertop \
56 $(eval
$(call BuildPackage
,powertop
))