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

config BR2_PACKAGE_MIDORI
	bool "midori"
	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt, gcr, gnupg2
	depends on BR2_PACKAGE_LIBGTK3
	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/
