[Buildroot] [PATCH 1/2] package/mtr: use ncurses option
Fabrice Fontaine
fontaine.fabrice at gmail.com
Sun Sep 26 21:15:02 UTC 2021
Use --with-ncurses and --without-ncurses options which are available
since version 0.88 and
https://github.com/traviscross/mtr/commit/4e2a948a167d9b8a0a63b46a423d4ae1519ad759
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
package/mtr/mtr.mk | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/package/mtr/mtr.mk b/package/mtr/mtr.mk
index 7198cbcc1c..0400a12021 100644
--- a/package/mtr/mtr.mk
+++ b/package/mtr/mtr.mk
@@ -10,10 +10,16 @@ MTR_AUTORECONF = YES
MTR_CONF_OPTS = --without-gtk
MTR_DEPENDENCIES = \
host-pkgconf \
- $(if $(BR2_PACKAGE_LIBCAP),libcap) \
- $(if $(BR2_PACKAGE_NCURSES),ncurses)
+ $(if $(BR2_PACKAGE_LIBCAP),libcap)
MTR_LICENSE = GPL-2.0
MTR_LICENSE_FILES = COPYING
MTR_SELINUX_MODULES = netutils
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+MTR_CONF_OPTS += --with-ncurses
+MTR_DEPENDENCIES += ncurses
+else
+MTR_CONF_OPTS += --without-ncurses
+endif
+
$(eval $(autotools-package))
--
2.33.0
More information about the buildroot
mailing list