postgis.mk 1.3 KB

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