[Buildroot] [git commit branch/2021.05.x] package/wavemon: add libcap optional dependency

From: Peter Korsgaard <peter@korsgaard.com>
Date: 2021-10-05 14:54:25
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=c35e140dabcf9c2a2bc68775ce9c1abe55513b26
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.05.x

libcap is an optional dependency which is enabled by default since
version 0.7.1 and
https://github.com/uoaerg/wavemon/commit/669c53e3359af5f6d4044126e22ab95f40a968f4
and can be explicitly enabled or disabled since version 0.9.0 and
https://github.com/uoaerg/wavemon/commit/af36fbe75649f745e205cd961302b656b8461e06

Signed-off-by: Fabrice Fontaine <redacted>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <redacted>
(cherry picked from commit c3712a86adca8f512b0e7c45c9196732841af10c)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/wavemon/wavemon.mk | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/package/wavemon/wavemon.mk b/package/wavemon/wavemon.mk
index 3ae1141ec4..d2af6c2bc0 100644
--- a/package/wavemon/wavemon.mk
+++ b/package/wavemon/wavemon.mk
@@ -13,4 +13,11 @@ WAVEMON_DEPENDENCIES = host-pkgconf libnl ncurses
 # Handwritten Makefile.in, automake isn't used
 WAVEMON_MAKE_OPTS = CC="$(TARGET_CC)"
 
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+WAVEMON_CONF_OPTS += --with-libcap
+WAVEMON_DEPENDENCIES += libcap
+else
+WAVEMON_CONF_OPTS += --without-libcap
+endif
+
 $(eval $(autotools-package))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help