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