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.

76 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  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:=htop
  9. PKG_VERSION:=3.2.0
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/htop-dev/htop/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=1a1dd174cc828521fe5fd0e052cff8c30aa50809cf80d3ce3a481c37d476ac54
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:htop:htop
  17. PKG_FIXUP:=autoreconf
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. PKG_CONFIG_DEPENDS:= CONFIG_HTOP_LMSENSORS
  21. PKG_BUILD_DEPENDS:= HTOP_LMSENSORS:lm-sensors
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/htop
  24. SECTION:=admin
  25. CATEGORY:=Administration
  26. TITLE:=Interactive processes viewer
  27. DEPENDS:=+libncurses
  28. URL:=https://hisham.hm/htop/
  29. MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
  30. endef
  31. define Package/htop/description
  32. Htop is an ncursed-based process viewer similar to top, but
  33. it allows to scroll the list vertically and horizontally to
  34. see all processes and their full command lines.
  35. endef
  36. define Package/htop/config
  37. config HTOP_LMSENSORS
  38. bool "Compile Htop with lm-sensors support"
  39. depends on PACKAGE_htop
  40. default y if TARGET_x86
  41. help
  42. Build htop with lm-sensors support.
  43. This doesn't add lm-sensors as dependency,
  44. if present it'll loaded using dlopen().
  45. endef
  46. CONFIGURE_ARGS += \
  47. --$(if $(CONFIG_HTOP_LMSENSORS),en,dis)able-sensors \
  48. --enable-affinity \
  49. --disable-capabilities \
  50. --disable-delayacct \
  51. --disable-unicode \
  52. --disable-unwind \
  53. --disable-hwloc
  54. CONFIGURE_VARS += \
  55. ac_cv_file__proc_stat=yes \
  56. ac_cv_file__proc_meminfo=yes
  57. define Package/htop/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  60. endef
  61. $(eval $(call BuildPackage,htop))