From: Bernd Kuhls Date: Sun, 17 Apr 2016 15:24:28 +0000 (+0200) Subject: package/freeswitch: add optional dependency to unixodbc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df15486ef51e61960a5eb68a13ec8b7257ccb9a3;p=buildroot.git package/freeswitch: add optional dependency to unixodbc Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk index c00fc85cfe..6a5a2c6b28 100644 --- a/package/freeswitch/freeswitch.mk +++ b/package/freeswitch/freeswitch.mk @@ -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))