config BR2_PACKAGE_POSTGIS
	bool "postgis"
	depends on BR2_PACKAGE_POSTGRESQL_FULL
	depends on BR2_INSTALL_LIBSTDCPP # libgeos, proj
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # libgeos
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # proj
	depends on BR2_USE_WCHAR # libgeos, proj
	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++, NPTL, wchar, gcc >= 7"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_USE_WCHAR
