You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=powertop
  9. PKG_VERSION:=2.14
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  13. PKG_SOURCE_URL:=https://github.com/fenrus75/powertop
  14. PKG_MIRROR_HASH:=9b49054a7e9684781287eb25c50003f68669e7dcad1c234573bd6a5e26474da7
  15. PKG_MAINTAINER:=Lucian Cristain <lucian.cristian@gmail.com>
  16. PKG_LICENSE:=GPL-2.0-only
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf gettext-version
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_BUILD_DEPENDS:=gettext-full/host
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. define Package/powertop
  25. SECTION:=utils
  26. CATEGORY:=Utilities
  27. DEPENDS:=$(INTL_DEPENDS) +libstdcpp +libpci +libncursesw +libnl-genl
  28. TITLE:=Power consumption monitor
  29. URL:=https://01.org/powertop
  30. endef
  31. define Package/powertop/description
  32. PowerTOP is a Linux tool to diagnose issues with power consumption
  33. and power management.
  34. endef
  35. TARGET_LDFLAGS += \
  36. $(if $(INTL_FULL),-lintl)
  37. define Package/powertop/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/powertop \
  40. $(1)/usr/sbin/
  41. endef
  42. $(eval $(call BuildPackage,powertop))