[Buildroot] [git commit branch/2021.02.x] package/mtr: use ncurses option
Peter Korsgaard
peter at korsgaard.com
Wed Oct 6 14:19:33 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=43088ce478612a8009d737c21130d483df70ab8e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x
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>
(cherry picked from commit edb65b4e6d7ecfec1bf732b6a4a047e155b22dac)
Signed-off-by: Peter Korsgaard <peter at korsgaard.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))
More information about the buildroot
mailing list