15265c7380de5e65a67ad488c901cd4c04297b64
[packages.git] / admin / htop / Makefile
1 #
2 # Copyright (C) 2007-2010 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:=0.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=7c5507f35f363f3f40183a2ba3c561f8
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 CONFIGURE_VARS += \
24         ac_cv_file__proc_stat=yes \
25         ac_cv_file__proc_meminfo=yes
26
27 define Package/htop
28   SECTION:=admin
29   CATEGORY:=Administration
30   TITLE:=Interactive processes viewer
31   DEPENDS:=+libncurses
32   URL:=http://htop.sourceforge.net/
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_VARS += \
42         ac_cv_file__proc_stat=yes \
43         ac_cv_file__proc_meminfo=yes \
44
45 define Package/htop/install
46         $(INSTALL_DIR) $(1)/usr/bin
47         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
48 endef
49
50 $(eval $(call BuildPackage,htop))