summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Ehrhardt <TEhrhardt@innovaphone.com>2018-07-27 07:41:25 +0000
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2018-07-28 16:06:07 +0200
commit568172d35578eea8fd097611f2ce7a802da2fc4c (patch)
treeb7cf291641666cf73000bd94fc77de49a48c5ffb
parent9dd076dd301c1c9e88acb3616942958a002aaae3 (diff)
downloadbuildroot-568172d35578eea8fd097611f2ce7a802da2fc4c.tar.gz
buildroot-568172d35578eea8fd097611f2ce7a802da2fc4c.zip
postgresql: add optional dependency on libxml2
The postgresql package is now built with --with-libxml if BR2_PACKAGE_LIBXML2 is selected to allow the use of XML functions in postgresql. Signed-off-by: Daniel Deterding <dde@innovaphone.com> Signed-off-by: Thomas Ehrhardt <tehrhardt@innovaphone.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--package/postgresql/postgresql.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk
index 94b3e60e59..0940873686 100644
--- a/package/postgresql/postgresql.mk
+++ b/package/postgresql/postgresql.mk
@@ -70,6 +70,14 @@ else
POSTGRESQL_CONF_OPTS += --without-ldap
endif
+ifeq ($(BR2_PACKAGE_LIBXML2),y)
+POSTGRESQL_DEPENDENCIES += libxml2
+POSTGRESQL_CONF_OPTS += --with-libxml
+POSTGRESQL_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
+else
+POSTGRESQL_CONF_OPTS += --without-libxml
+endif
+
define POSTGRESQL_USERS
postgres -1 postgres -1 * /var/lib/pgsql /bin/sh - PostgreSQL Server
endef
OpenPOWER on IntegriCloud