[48/49,v2] package/asterisk: add optional unixodbc dependency

Message ID de4e62d0de07797a5f2168c80a873cb04634e56c.1504993178.git.yann.morin.1998@free.fr
State Changes Requested
Headers show
Series
  • [01/49,v2] package/asterisk: new package
Related show

Commit Message

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

Patch

diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 54007f46b3..3bf37da709 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -79,7 +79,6 @@  ASTERISK_CONF_OPTS = \
 	--without-timerfd \
 	--without-tinfo \
 	--without-unbound \
-	--without-unixodbc \
 	--without-vpb \
 	--without-x11 \
 	--with-crypt \
@@ -292,6 +291,13 @@  else
 ASTERISK_CONF_OPTS += --without-vorbis
 endif
 
+ifeq ($(BR2_PACKAGE_UNIXODBC),y)
+ASTERISK_DEPENDENCIES += unixodbc
+ASTERISK_CONF_OPTS += --with-unixodbc
+else
+ASTERISK_CONF_OPTS += --without-unixodbc
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 ASTERISK_DEPENDENCIES += zlib
 ASTERISK_CONF_OPTS += --with-z