pbr: bugfix: filter only static routes for new tables
[feed/packages.git] / utils / powertop / Makefile
1 #
2 # Copyright (C) 2019 Lucian Cristain <lucian.cristian@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=powertop
11 PKG_VERSION:=2.14
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
16 PKG_SOURCE_URL:=https://github.com/fenrus75/powertop
17 PKG_MIRROR_HASH:=52366fb27a67a2a877de449fbbad61f4347f7428cdc976b84b5702b527d440a4
18
19 PKG_MAINTAINER:=Lucian Cristain <lucian.cristian@gmail.com>
20 PKG_LICENSE:=GPL-2.0-only
21 PKG_LICENSE_FILES:=COPYING
22
23 PKG_FIXUP:=autoreconf gettext-version
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26 PKG_BUILD_DEPENDS:=gettext-full/host
27
28 include $(INCLUDE_DIR)/package.mk
29 include $(INCLUDE_DIR)/nls.mk
30
31 define Package/powertop
32 SECTION:=utils
33 CATEGORY:=Utilities
34 DEPENDS:=$(INTL_DEPENDS) +libstdcpp +libpci +libncursesw +libnl-genl
35 TITLE:=Power consumption monitor
36 URL:=https://01.org/powertop
37 endef
38
39 define Package/powertop/description
40 PowerTOP is a Linux tool to diagnose issues with power consumption
41 and power management.
42 endef
43
44 TARGET_LDFLAGS += \
45 $(if $(INTL_FULL),-lintl)
46
47 define Package/powertop/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/powertop \
50 $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,powertop))