config BR2_PACKAGE_LIBGEOS
	bool "libgeos"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_USE_WCHAR
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
	help
	  GEOS (Geometry Engine - Open Source) is a C++ port of the
	  JTS Topology Suite (JTS). It aims to contain the complete
	  functionality of JTS in C++. This includes all the OpenGIS
	  Simple Features for SQL spatial predicate functions and
	  spatial operators, as well as specific JTS enhanced functions.

	  https://trac.osgeo.org/geos

comment "libgeos needs a toolchain w/ C++, wchar, gcc >= 7, threads"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
		   !BR2_TOOLCHAIN_HAS_THREADS || \
		   !BR2_TOOLCHAIN_GCC_AT_LEAST_7
