package/postgis: add optional json-c dependency
authorPeter Seiderer <ps.report@gmx.net>
Wed, 14 Apr 2021 20:10:41 +0000 (22:10 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 15 Apr 2021 19:03:48 +0000 (21:03 +0200)
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/postgis/postgis.mk

index 92a9968993f580a89087f660af1f2755b284e1e1..5a2987b182cf30ff252298650cb11c613afbe8d3 100644 (file)
@@ -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))