config BR2_PACKAGE_LIBFM
	bool "libfm"
	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # libgtk3
	depends on BR2_USE_WCHAR # libgtk3, libglib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # libgtk3, libglib2
	depends on BR2_USE_MMU # libgtk3, libglib2
	depends on BR2_INSTALL_LIBSTDCPP # libgtk3
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk3
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libgtk3
	depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL # libgtk3
	depends on BR2_PACKAGE_XORG7 # libgtk3-x11
	depends on BR2_PACKAGE_HAS_LIBGL # libgtk3-x11
	select BR2_PACKAGE_CAIRO
	select BR2_PACKAGE_LIBGLIB2
	select BR2_PACKAGE_LIBGTK3
	select BR2_PACKAGE_LIBGTK3_X11
	select BR2_PACKAGE_MENU_CACHE
	help
	  A glib/gio-based library providing some file management
	  utilities and related-widgets missing in gtk+/glib. This is
	  the core of PCManFM.  The library is desktop independent
	  (not LXDE specific) and has clean API. It can be used to
	  develop other applications requiring file management
	  functionality. For example, you can create your own file
	  manager with facilities provided by libfm.

	  http://wiki.lxde.org/en/Libfm

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

comment "libfm needs X.org with an OpenGL backend"
	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_PACKAGE_XORG7 || BR2_PACKAGE_HAS_LIBGL
