Mathieu Malaterre <mathieu.malate...@gmail.com> writes:

> Control: severity -1 important
>
> This bug is odd. OpenJPEG has explicitely been excluded:
>
> $ apt-get source mupdf
> $ cat disable_openjpeg.patch
> ---
>  Makerules              |    4 +++-
>  source/fitz/load-jpx.c |    4 ++++
>  source/pdf/pdf-image.c |    4 ++++
>  3 files changed, 11 insertions(+), 1 deletion(-)
>
> --- a/Makerules
> +++ b/Makerules
> @@ -62,8 +62,10 @@
>
>  SYS_FREETYPE_CFLAGS = $(shell pkg-config --cflags freetype2)
>  SYS_FREETYPE_LIBS = $(shell pkg-config --libs freetype2)
> -SYS_OPENJPEG_CFLAGS = $(shell pkg-config --cflags libopenjpeg1)
> +ifeq "$(shell pkg-config --exists libopenjpeg1 && echo yes)" "yes"
> +SYS_OPENJPEG_CFLAGS = -DHAVE_OPENJPEG $(shell pkg-config --cflags 
> libopenjpeg1)
>  SYS_OPENJPEG_LIBS = $(shell pkg-config --libs libopenjpeg1)
> +endif
>  SYS_JBIG2DEC_LIBS = -ljbig2dec
>  SYS_JPEG_LIBS = -ljpeg
>  SYS_ZLIB_LIBS = -lz

This patch was for the libopenjpeg2 -> libopenjpeg5 transition.

If we build with libopenjpeg5 we should gain JPEG2000 support
automatically.

But given bug #743103 there seems some problems building against
libopenjpeg5. Which should be fixed shortly.

Kanru

Attachment: signature.asc
Description: PGP signature

Reply via email to