[Buildroot] [git commit] package/postgis: add optional json-c dependency

From: Arnout Vandecappelle (Essensium/Mind) <hidden>
Date: 2021-04-15 19:03:48
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=b4e7fd305ae25f205aff19b0318f57b6fdb75cba
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Peter Seiderer <redacted>
Reviewed-by: Maxim Kochetkov <redacted>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <redacted>
---
 package/postgis/postgis.mk | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/package/postgis/postgis.mk b/package/postgis/postgis.mk
index 92a9968993..5a2987b182 100644
--- a/package/postgis/postgis.mk
+++ b/package/postgis/postgis.mk
@@ -28,4 +28,11 @@ else
 POSTGIS_CONF_OPTS += --without-raster
 endif
 
+ifeq ($(BR2_PACKAGE_JSON_C),y)
+POSTGIS_DEPENDENCIES += json-c
+POSTGIS_CONF_OPTS += --with-json
+else
+POSTGIS_CONF_OPTS += --without-json
+endif
+
 $(eval $(autotools-package))
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help