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_8 # harfbuzz
	depends on BR2_PACKAGE_XORG7
	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_XLIB_LIBX11
	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.8"
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
