From 71b9679034a4d9cea66a5fe900ff560ac83e3663 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 4 May 2018 20:26:34 +0200 Subject: [PATCH] package/freeswitch: add optional support for postgresql Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard --- package/freeswitch/freeswitch.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk index 98f2f48356..4d490b0730 100644 --- a/package/freeswitch/freeswitch.mk +++ b/package/freeswitch/freeswitch.mk @@ -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 += \ -- 2.30.2