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.

57 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2012 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:=1.0.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://hisham.hm/htop/releases/$(PKG_VERSION)/
  13. PKG_MD5SUM:=e768b9b55c033d9c1dffda72db3a6ac7
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/htop
  20. SECTION:=admin
  21. CATEGORY:=Administration
  22. TITLE:=Interactive processes viewer
  23. DEPENDS:=+libncurses
  24. URL:=http://htop.sourceforge.net/
  25. MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
  26. endef
  27. define Package/htop/description
  28. Htop is an ncursed-based process viewer similar to top, but
  29. it allows to scroll the list vertically and horizontally to
  30. see all processes and their full command lines.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --disable-native-affinity \
  34. --disable-unicode \
  35. --enable-hwloc
  36. CONFIGURE_VARS += \
  37. ac_cv_file__proc_stat=yes \
  38. ac_cv_file__proc_meminfo=yes \
  39. ac_cv_func_malloc_0_nonnull=yes \
  40. ac_cv_func_realloc_0_nonnull=yes
  41. define Package/htop/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,htop))