[Buildroot] [PATCH 34/49 v2] package/asterisk: add optional corosync dependency

Yann E. MORIN yann.morin.1998 at free.fr
Sat Sep 9 21:39:40 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 1a56894f8f..452f61ba67 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -43,7 +43,6 @@ ASTERISK_CONF_OPTS = \
 	--disable-rpath \
 	--without-bfd \
 	--without-cap \
-	--without-cpg \
 	--without-curses \
 	--without-gtk2 \
 	--without-gmime \
@@ -132,6 +131,13 @@ else
 ASTERISK_CONF_OPTS += --without-bluetooth
 endif
 
+ifeq ($(BR2_PACKAGE_COROSYNC),y)
+ASTERISK_DEPENDENCIES += corosync
+ASTERISK_CONF_OPTS += --with-cpg
+else
+ASTERISK_CONF_OPTS += --without-cpg
+endif
+
 ifeq ($(BR2_PACKAGE_LIBICAL),y)
 ASTERISK_DEPENDENCIES += libical
 ASTERISK_CONF_OPTS += --with-ical
-- 
2.11.0



More information about the buildroot mailing list