comment "exiv2 needs a uClibc or glibc toolchain w/ C++, wchar, dynamic library, threads"
	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \
		|| !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \
		|| BR2_TOOLCHAIN_USES_MUSL

config BR2_PACKAGE_EXIV2
	bool "exiv2"
	depends on !BR2_STATIC_LIBS
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on !BR2_TOOLCHAIN_USES_MUSL # PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
	depends on BR2_USE_WCHAR
	help
	  Exiv2 is a C++ library and a command line utility to manage
	  image metadata. It provides fast and easy read and write
	  access to the Exif, IPTC and XMP metadata of images in
	  various formats.

	  http://www.exiv2.org/

if BR2_PACKAGE_EXIV2

config BR2_PACKAGE_EXIV2_PNG
	bool "PNG image support"
	select BR2_PACKAGE_ZLIB
	help
	  Build with PNG image support

config BR2_PACKAGE_EXIV2_XMP
	bool "XMP support"
	select BR2_PACKAGE_EXPAT
	help
	  Build with XMP support

config BR2_PACKAGE_EXIV2_LENSDATA
	bool "Nikon lens name database"
	help
	  Integrate Nikon lens name database.

	  This database comes from a thirdparty and is free to use in
	  non-commercial, GPL or open source software only.
	  For more informations src/nikonmn_int.cpp.

endif
