config BR2_PACKAGE_LIBOSMIUM
	bool "libosmium"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # C++14
	depends on BR2_TOOLCHAIN_HAS_THREADS # boost
	depends on BR2_USE_WCHAR # boost
	select BR2_PACKAGE_BOOST
	select BR2_PACKAGE_PROTOZERO
	select BR2_PACKAGE_LZ4
	help
	  A fast and flexible C++ library for working with OpenStreetMap
	  data. Libosmium works on Linux, macOS and Windows.

	  https://osmcode.org/libosmium/

comment "libosmium needs a toolchain w/ C++, wchar, threads, gcc >= 5"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || !BR2_TOOLCHAIN_HAS_THREADS
