mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-19 05:43:51 -09:00
It appears that python-pymupdf needs swig when building since mupdf was bumped to 1.18.0 in commitf00da714a2. This was not noticed before because when building on a machine where swig is already available outside buildroot, it is used and the build succeeds. This fixes the following build failure: swigging fitz/fitz.i to fitz/fitz_wrap.c swig -python -w509 -o fitz/fitz_wrap.c fitz/fitz.i error: command 'swig' failed: No such file or directory make: *** [package/pkg-generic.mk:293: /home/buildroot/autobuild/instance-2/output-1/build/python-pymupdf-1.21.1/.stamp_built] Error 1 Fixes: - http://autobuild.buildroot.net/results/c689a385d984b87b63f3f2ff30338049774b1bf2 - http://autobuild.buildroot.net/results/cf268d3631330a8288fb8ad2af009abb7f1ca6b0 Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commita650d71434) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
24 lines
751 B
Plaintext
24 lines
751 B
Plaintext
config BR2_PACKAGE_PYTHON_PYMUPDF
|
|
bool "python-pymupdf"
|
|
depends on BR2_INSTALL_LIBSTDCPP # mupdf -> harfbuzz
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mupdf -> harfbuzz
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # mupdf -> harfbuzz
|
|
depends on BR2_PACKAGE_XORG7
|
|
select BR2_PACKAGE_HOST_SWIG
|
|
select BR2_PACKAGE_FREETYPE
|
|
select BR2_PACKAGE_MUPDF
|
|
select BR2_PACKAGE_ZLIB
|
|
help
|
|
Python bindings for the PDF rendering library MuPDF.
|
|
|
|
https://github.com/pymupdf/PyMuPDF
|
|
|
|
comment "python-pymupdf needs Xorg"
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on !BR2_PACKAGE_XORG7
|
|
|
|
comment "python-pymupdf 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
|