package/freeswitch: add optional support for postgresql

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bernd Kuhls 2018-05-04 20:26:34 +02:00 committed by Peter Korsgaard
parent 16012f56ca
commit 71b9679034

View File

@ -275,6 +275,17 @@ FREESWITCH_DEPENDENCIES += opencv
FREESWITCH_ENABLED_MODULES += applications/mod_cv
endif
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
FREESWITCH_CONF_ENV += \
ac_cv_path_PG_CONFIG=$(STAGING_DIR)/usr/bin/pg_config
FREESWITCH_CONF_OPTS += \
--enable-core-pgsql-pkgconfig \
--enable-core-pgsql-support
FREESWITCH_DEPENDENCIES += postgresql
else
FREESWITCH_CONF_OPTS += --disable-core-pgsql-support
endif
ifeq ($(BR2_PACKAGE_UNIXODBC),y)
FREESWITCH_DEPENDENCIES += unixodbc
FREESWITCH_CONF_OPTS += \