config BR2_PACKAGE_MUPDF
	bool "mupdf"
	depends on BR2_INSTALL_LIBSTDCPP # harfbuzz
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # harfbuzz
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # harfbuzz
	select BR2_PACKAGE_FREETYPE
	select BR2_PACKAGE_GUMBO_PARSER
	select BR2_PACKAGE_HARFBUZZ
	select BR2_PACKAGE_JBIG2DEC
	select BR2_PACKAGE_JPEG
	select BR2_PACKAGE_LCMS2
	select BR2_PACKAGE_OPENJPEG
	select BR2_PACKAGE_ZLIB
	help
	  MuPDF is a lightweight PDF, XPS, and E-book viewer.

	  https://www.mupdf.com/index.html

comment "mupdf needs a toolchain w/ C++, gcc >= 4.9"
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
