config BR2_PACKAGE_LIBDECOR
	bool "libdecor"
	depends on !BR2_STATIC_LIBS # wayland
	depends on BR2_USE_MMU # pango
	depends on BR2_USE_WCHAR # pango
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango
	depends on BR2_INSTALL_LIBSTDCPP # pango
	depends on BR2_TOOLCHAIN_HAS_THREADS # pango, wayland
	select BR2_PACKAGE_CAIRO
	select BR2_PACKAGE_PANGO
	select BR2_PACKAGE_WAYLAND
	select BR2_PACKAGE_WAYLAND_PROTOCOLS
	help
	  libdecor is a library that can help Wayland clients draw
	  window decorations for them. It aims to provide multiple
	  backends that implements the decoration drawing.

	  https://gitlab.freedesktop.org/libdecor/libdecor

comment "libdecor needs a toolchain w/ wchar, threads, C++, gcc >= 4.9"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
