config BR2_PACKAGE_LENSFUN
	bool "lensfun"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_USE_WCHAR # libglib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
	depends on BR2_USE_MMU # libglib2
	select BR2_PACKAGE_LIBGLIB2
	help
	  Lensfun itself is only a library for correcting several
	  artefacts and a database for storing lens profiles. To
	  actually use Lensfun to process your images you need an
	  image editing application with Lensfun support.

	  http://lensfun.sourceforge.net

if BR2_PACKAGE_LENSFUN

config BR2_PACKAGE_LENSFUN_TOOLS
	bool "lensfun tools"
	select BR2_PACKAGE_LIBPNG
	help
	  Build 'lenstool'.

endif

comment "lensfun needs a toolchain w/ C++, threads, wchar"
	depends on BR2_USE_MMU
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
		|| !BR2_USE_WCHAR
