1config BR2_PACKAGE_PYTHON_PYMUPDF
2	bool "python-pymupdf"
3	depends on BR2_INSTALL_LIBSTDCPP # mupdf -> harfbuzz
4	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mupdf -> harfbuzz
5	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # mupdf -> harfbuzz
6	depends on BR2_PACKAGE_XORG7
7	select BR2_PACKAGE_HOST_SWIG
8	select BR2_PACKAGE_FREETYPE
9	select BR2_PACKAGE_MUPDF
10	select BR2_PACKAGE_ZLIB
11	help
12	  Python bindings for the PDF rendering library MuPDF.
13
14	  https://github.com/pymupdf/PyMuPDF
15
16comment "python-pymupdf needs Xorg"
17	depends on BR2_TOOLCHAIN_HAS_SYNC_4
18	depends on !BR2_PACKAGE_XORG7
19
20comment "python-pymupdf needs a toolchain w/ C++, gcc >= 4.9"
21	depends on BR2_TOOLCHAIN_HAS_SYNC_4
22	depends on !BR2_INSTALL_LIBSTDCPP || \
23		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
24