mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 13:33:28 +08:00
package/mupdf: make X11 support optional
The X11 support in mupdf is actually optional, and it does require libXext in addition to libX11, so adjust the packaging accordingly. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
90f0a48467
commit
2c0d7b72c0
@ -3,7 +3,6 @@ config BR2_PACKAGE_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
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_FREETYPE
|
||||
select BR2_PACKAGE_GUMBO_PARSER
|
||||
select BR2_PACKAGE_HARFBUZZ
|
||||
@ -11,7 +10,6 @@ config BR2_PACKAGE_MUPDF
|
||||
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.
|
||||
|
@ -19,7 +19,6 @@ MUPDF_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
jbig2dec jpeg \
|
||||
lcms2 openjpeg \
|
||||
xlib_libX11 \
|
||||
zlib
|
||||
|
||||
# mupdf doesn't use CFLAGS and LIBS but XCFLAGS and XLIBS instead.
|
||||
@ -39,6 +38,13 @@ else
|
||||
MUPDF_MAKE_OPTS += shared=yes
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBX11)$(BR2_PACKAGE_XLIB_LIBXEXT),yy)
|
||||
MUPDF_MAKE_OPTS += HAVE_X11=yes
|
||||
MUPDF_DEPENDENCIES += xlib_libX11 xlib_libXext
|
||||
else
|
||||
MUPDF_MAKE_OPTS += HAVE_X11=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
|
||||
MUPDF_DEPENDENCIES += libfreeglut
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user