htop: bump version to 1.03
[openwrt/svn-archive/archive.git] / admin / htop / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=htop
11 PKG_VERSION:=1.0.3
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_MD5SUM:=e768b9b55c033d9c1dffda72db3a6ac7
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/htop
24 SECTION:=admin
25 CATEGORY:=Administration
26 TITLE:=Interactive processes viewer
27 DEPENDS:=+libncurses
28 URL:=http://htop.sourceforge.net/
29 endef
30
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
37 CONFIGURE_ARGS += \
38 --disable-native-affinity \
39 --disable-unicode \
40 --enable-hwloc
41
42 CONFIGURE_VARS += \
43 ac_cv_file__proc_stat=yes \
44 ac_cv_file__proc_meminfo=yes \
45 ac_cv_func_malloc_0_nonnull=yes \
46 ac_cv_func_realloc_0_nonnull=yes
47
48 define Package/htop/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,htop))