comment "midori needs libgtk3 and a glibc toolchain w/ C++, gcc >= 7, host gcc >= 4.9"
	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
	depends on BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_LIBGTK3 || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
		!BR2_HOST_GCC_AT_LEAST_4_9 || \
		!BR2_TOOLCHAIN_USES_GLIBC

config BR2_PACKAGE_MIDORI
	bool "midori"
	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # host-librsvg
	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt, gcr, gnupg2
	depends on BR2_PACKAGE_LIBGTK3
	depends on BR2_HOST_GCC_AT_LEAST_4_9 # webkitgtk
	depends on BR2_INSTALL_LIBSTDCPP # webkitgtk
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # webkitgtk
	depends on BR2_TOOLCHAIN_USES_GLIBC # webkitgtk
	depends on BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS
	# GCR can only be used with the X11 backend
	select BR2_PACKAGE_GCR if BR2_PACKAGE_LIBGTK3_X11
	select BR2_PACKAGE_GRANITE
	select BR2_PACKAGE_LIBSOUP
	select BR2_PACKAGE_LIBSOUP_GNOME
	select BR2_PACKAGE_LIBXML2
	select BR2_PACKAGE_SQLITE
	select BR2_PACKAGE_WEBKITGTK
	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
	help
	  Midori is a lightweight web browser based on WebKit

	  http://www.midori-browser.org/
