package/freeswitch: add optional dependency to unixodbc
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 17 Apr 2016 15:24:28 +0000 (17:24 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 17 Apr 2016 20:17:11 +0000 (22:17 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/freeswitch/freeswitch.mk

index c00fc85cfe5e6e99f22cb82f70f037de8781c486..6a5a2c6b28c6a4798eb0b3ebcb0fd954eb7165da 100644 (file)
@@ -69,7 +69,6 @@ FREESWITCH_CONF_ENV += \
        ac_cv_gcc_supports_w_no_unused_result=no
 
 FREESWITCH_CONF_OPTS = \
-       --disable-core-odbc-support \
        --disable-libvpx \
        --disable-libyuv \
        --without-erlang \
@@ -176,4 +175,13 @@ FREESWITCH_DEPENDENCIES += libpng
 FREESWITCH_ENABLED_MODULES += formats/mod_png
 endif
 
+ifeq ($(BR2_PACKAGE_UNIXODBC),y)
+FREESWITCH_DEPENDENCIES += unixodbc
+FREESWITCH_CONF_OPTS += \
+       --enable-core-odbc-support \
+       --with-odbc=$(STAGING_DIR)/usr
+else
+FREESWITCH_CONF_OPTS += --disable-core-odbc-support
+endif
+
 $(eval $(autotools-package))