glib2: use internal pcre2
[feed/packages.git] / admin / htop / Makefile
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:=3.3.0
12 PKG_RELEASE:=1
13
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
17
18 PKG_LICENSE:=GPL-2.0-or-later
19 PKG_LICENSE_FILES:=COPYING
20 PKG_CPE_ID:=cpe:/a:htop:htop
21
22
23 PKG_FIXUP:=autoreconf
24 PKG_BUILD_PARALLEL:=1
25 PKG_INSTALL:=1
26
27 PKG_CONFIG_DEPENDS:= CONFIG_HTOP_LMSENSORS
28 PKG_BUILD_DEPENDS:= HTOP_LMSENSORS:lm-sensors
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/htop
33 SECTION:=admin
34 CATEGORY:=Administration
35 TITLE:=Interactive processes viewer
36 DEPENDS:=+libncurses
37 URL:=https://hisham.hm/htop/
38 MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
39 endef
40
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.
45 endef
46
47 define Package/htop/config
48 config HTOP_LMSENSORS
49 bool "Compile Htop with lm-sensors support"
50 depends on PACKAGE_htop
51 default y if TARGET_x86
52 help
53 Build htop with lm-sensors support.
54 This doesn't add lm-sensors as dependency,
55 if present it'll loaded using dlopen().
56 endef
57
58 CONFIGURE_ARGS += \
59 --$(if $(CONFIG_HTOP_LMSENSORS),en,dis)able-sensors \
60 --enable-affinity \
61 --disable-capabilities \
62 --disable-delayacct \
63 --disable-unicode \
64 --disable-unwind \
65 --disable-hwloc
66
67 CONFIGURE_VARS += \
68 ac_cv_file__proc_stat=yes \
69 ac_cv_file__proc_meminfo=yes
70
71 define Package/htop/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
74 endef
75
76 $(eval $(call BuildPackage,htop))