[Buildroot] [PATCH 45/49 v2] package/asterisk: add optional libcap dependency

Yann E. MORIN yann.morin.1998 at free.fr
Sat Sep 9 21:39:51 UTC 2017


Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
---
 package/asterisk/asterisk.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 9327451254..cd3325ce9e 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -42,7 +42,6 @@ ASTERISK_CONF_OPTS = \
 	--disable-asteriskssl \
 	--disable-rpath \
 	--without-bfd \
-	--without-cap \
 	--without-curses \
 	--without-gtk2 \
 	--without-gmime \
@@ -157,6 +156,13 @@ else
 ASTERISK_CONF_OPTS += --without-ldap
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+ASTERISK_DEPENDENCIES += libcap
+ASTERISK_CONF_OPTS += --with-cap
+else
+ASTERISK_CONF_OPTS += --without-cap
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 ASTERISK_DEPENDENCIES += libcurl
 ASTERISK_CONF_OPTS += --with-libcurl
-- 
2.11.0




More information about the buildroot mailing list