1################################################################################ 2# 3# postgis 4# 5################################################################################ 6 7POSTGIS_VERSION = 3.1.4 8POSTGIS_SITE = https://download.osgeo.org/postgis/source 9# parallel build issues 10POSTGIS_MAKE = $(MAKE1) 11POSTGIS_LICENSE = GPL-2.0+ (PostGIS), BSD-2-Clause, MIT, Apache-2.0, ISC, BSL-1.0, CC-BY-SA-3.0 12POSTGIS_LICENSE_FILES = LICENSE.TXT 13POSTGIS_CPE_ID_VENDOR = postgis 14# configure.ac is patched so need to run autoreconf 15POSTGIS_AUTORECONF = YES 16 17POSTGIS_DEPENDENCIES = postgresql libgeos proj libxml2 18 19POSTGIS_CONF_OPTS += \ 20 --with-pgconfig=$(STAGING_DIR)/usr/bin/pg_config \ 21 --with-geosconfig=$(STAGING_DIR)/usr/bin/geos-config \ 22 --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config 23 24ifeq ($(BR2_PACKAGE_LIBGDAL),y) 25POSTGIS_DEPENDENCIES += libgdal 26POSTGIS_CONF_OPTS += --with-raster 27else 28POSTGIS_CONF_OPTS += --without-raster 29endif 30 31ifeq ($(BR2_PACKAGE_JSON_C),y) 32POSTGIS_DEPENDENCIES += json-c 33POSTGIS_CONF_OPTS += --with-json 34else 35POSTGIS_CONF_OPTS += --without-json 36endif 37 38ifeq ($(BR2_PACKAGE_PCRE),y) 39POSTGIS_DEPENDENCIES += pcre 40endif 41 42ifeq ($(BR2_PACKAGE_PROTOBUF_C),y) 43POSTGIS_DEPENDENCIES += protobuf-c 44POSTGIS_CONF_OPTS += --with-protobuf 45else 46POSTGIS_CONF_OPTS += --without-protobuf 47endif 48 49$(eval $(autotools-package)) 50