comment "libmediaart needs a toolchain w/ wchar, threads"
	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS

config BR2_PACKAGE_LIBMEDIAART
	bool "libmediaart"
	depends on BR2_USE_MMU # glib2
	depends on BR2_USE_WCHAR # glib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
	select BR2_PACKAGE_LIBGLIB2
	help
	  Library tasked with managing, extracting and handling media
	  art caches

	  https://github.com/GNOME/libmediaart

if BR2_PACKAGE_LIBMEDIAART

choice
	prompt "media art backend"
	default BR2_PACKAGE_LIBMEDIAART_BACKEND_GDK_PIXBUF

config BR2_PACKAGE_LIBMEDIAART_BACKEND_GDK_PIXBUF
	bool "gdk-pixbuf"
	select BR2_PACKAGE_GDK_PIXBUF

config BR2_PACKAGE_LIBMEDIAART_BACKEND_QT
	bool "Qt"
	depends on BR2_PACKAGE_QT5
	select BR2_PACKAGE_QT5BASE_GUI

comment "Qt backend depends on Qt5"
	depends on !BR2_PACKAGE_QT5

endchoice

endif # BR2_PACKAGE_LIBMEDIAART
