generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
14
package/htop/Config.in
Normal file
14
package/htop/Config.in
Normal file
@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_HTOP
|
||||
bool "htop"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
htop is an interactive text-mode process viewer for Linux.
|
||||
It aims to be a better top.
|
||||
|
||||
https://htop.dev/
|
||||
|
||||
comment "htop needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
5
package/htop/htop.hash
Normal file
5
package/htop/htop.hash
Normal file
@ -0,0 +1,5 @@
|
||||
# From https://github.com/htop-dev/htop/releases/download/3.2.1/htop-3.2.1.tar.xz.sha256
|
||||
sha256 5a17121cf1c69d2f2e557c0b29d45a2c353ab983f644742e1c2e4ece15aa6cbb htop-3.2.1.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
47
package/htop/htop.mk
Normal file
47
package/htop/htop.mk
Normal file
@ -0,0 +1,47 @@
|
||||
################################################################################
|
||||
#
|
||||
# htop
|
||||
#
|
||||
################################################################################
|
||||
|
||||
HTOP_VERSION = 3.2.1
|
||||
HTOP_SOURCE = htop-$(HTOP_VERSION).tar.xz
|
||||
HTOP_SITE = https://github.com/htop-dev/htop/releases/download/$(HTOP_VERSION)
|
||||
HTOP_DEPENDENCIES = ncurses
|
||||
# Prevent htop build system from searching the host paths
|
||||
HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
|
||||
HTOP_LICENSE = GPL-2.0+
|
||||
HTOP_LICENSE_FILES = COPYING
|
||||
|
||||
# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
|
||||
# provided by autoconf relies on wchar_t.
|
||||
HTOP_CONF_ENV += ac_cv_prog_cc_c99=-std=gnu99
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HWLOC),y)
|
||||
HTOP_CONF_OPTS += --enable-hwloc
|
||||
HTOP_DEPENDENCIES += hwloc
|
||||
else
|
||||
HTOP_CONF_OPTS += --disable-hwloc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
HTOP_CONF_OPTS += --enable-capabilities
|
||||
HTOP_DEPENDENCIES += libcap
|
||||
else
|
||||
HTOP_CONF_OPTS += --disable-capabilities
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
|
||||
HTOP_CONF_OPTS += --enable-sensors
|
||||
HTOP_DEPENDENCIES += lm-sensors
|
||||
else
|
||||
HTOP_CONF_OPTS += --disable-sensors
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
||||
HTOP_CONF_OPTS += --enable-unicode
|
||||
else
|
||||
HTOP_CONF_OPTS += --disable-unicode
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user