postgis.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ################################################################################
  2. #
  3. # postgis
  4. #
  5. ################################################################################
  6. POSTGIS_VERSION = 3.4.2
  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-3-Clause (xsl), GPL-2.0+ or LGPL-3.0+ (SFCGAL), 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. POSTGIS_DEPENDENCIES = postgresql libgeos proj libxml2
  14. POSTGIS_CONF_OPTS += \
  15. --with-pgconfig=$(STAGING_DIR)/usr/bin/pg_config \
  16. --with-geosconfig=$(STAGING_DIR)/usr/bin/geos-config \
  17. --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config
  18. ifeq ($(BR2_PACKAGE_JSON_C),y)
  19. POSTGIS_DEPENDENCIES += json-c
  20. POSTGIS_CONF_OPTS += --with-json
  21. else
  22. POSTGIS_CONF_OPTS += --without-json
  23. endif
  24. ifeq ($(BR2_PACKAGE_GDAL),y)
  25. POSTGIS_DEPENDENCIES += gdal
  26. POSTGIS_CONF_OPTS += --with-raster --with-gdalconfig=$(STAGING_DIR)/usr/bin/gdal-config
  27. else
  28. POSTGIS_CONF_OPTS += --without-raster
  29. endif
  30. ifeq ($(BR2_PACKAGE_PCRE),y)
  31. POSTGIS_DEPENDENCIES += pcre
  32. endif
  33. ifeq ($(BR2_PACKAGE_PROTOBUF_C),y)
  34. POSTGIS_DEPENDENCIES += protobuf-c
  35. POSTGIS_CONF_OPTS += --with-protobuf
  36. else
  37. POSTGIS_CONF_OPTS += --without-protobuf
  38. endif
  39. $(eval $(autotools-package))