2 # Copyright (C) 2007-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/htop-dev
/htop
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=1e5cc328eee2bd1acff89f860e3179ea24b85df3ac483433f92a29977b14b045
18 PKG_LICENSE
:=GPL-2.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_CPE_ID
:=cpe
:/a
:htop
:htop
27 PKG_CONFIG_DEPENDS
:= CONFIG_HTOP_LMSENSORS
28 PKG_BUILD_DEPENDS
:= HTOP_LMSENSORS
:lm-sensors
30 include $(INCLUDE_DIR
)/package.mk
34 CATEGORY
:=Administration
35 TITLE
:=Interactive processes viewer
37 URL
:=https
://hisham.hm
/htop
/
38 MAINTAINER
:=Etienne CHAMPETIER
<champetier.etienne@gmail.com
>
41 define Package
/htop
/description
42 Htop is an ncursed-based process viewer similar to top
, but
43 it allows to scroll the list vertically and horizontally to
44 see
all processes and their full command lines.
47 define Package
/htop
/config
49 bool
"Compile Htop with lm-sensors support"
50 depends on PACKAGE_htop
51 default y if TARGET_x86
53 Build htop with lm-sensors support.
54 This doesn
't add lm-sensors as dependency,
55 if present it'll loaded using dlopen
().
59 --$(if
$(CONFIG_HTOP_LMSENSORS
),en
,dis
)able-sensors \
61 --disable-capabilities \
68 ac_cv_file__proc_stat
=yes \
69 ac_cv_file__proc_meminfo
=yes
71 define Package
/htop
/install
72 $(INSTALL_DIR
) $(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
76 $(eval
$(call BuildPackage
,htop
))