config BR2_PACKAGE_POSTGIS
	bool "postgis"
	depends on BR2_PACKAGE_POSTGRESQL_FULL
	depends on !BR2_microblazeel && !BR2_microblazebe # ICE
	depends on BR2_INSTALL_LIBSTDCPP # proj
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11, proj
	depends on BR2_TOOLCHAIN_HAS_THREADS # proj
	depends on BR2_USE_WCHAR # libgeos, proj
	depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464 # libgeos
	depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597 # libgeos
	select BR2_PACKAGE_LIBGEOS
	select BR2_PACKAGE_PROJ
	select BR2_PACKAGE_LIBXML2
	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
	help
	  PostGIS is a spatial database extender for PostgreSQL
	  object-relational database. It adds support for
	  geographic objects allowing location queries
	  to be run in SQL.

	  https://postgis.net/

comment "postgis needs a toolchain w/ C++, threads, wchar, gcc >= 4.7, not binutils bug 21464, 27597"
	depends on !BR2_microblazeel && !BR2_microblazebe # ICE
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \
		!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
		BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464 || \
		BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597
