htop: Add PKG_LICENSE_FILES
[feed/packages.git] / admin / htop / Makefile
1 #
2 # Copyright (C) 2007-2014 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_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-native-affinity \
43 --disable-unicode \
44 --enable-hwloc
45
46 CONFIGURE_VARS += \
47 ac_cv_file__proc_stat=yes \
48 ac_cv_file__proc_meminfo=yes \
49 ac_cv_func_malloc_0_nonnull=yes \
50 ac_cv_func_realloc_0_nonnull=yes
51
52 define Package/htop/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
55 endef
56
57 $(eval $(call BuildPackage,htop))