forked from pool/mupdf
f7bbc23fc0
- update to version 1.4 * Headline changes: * CMYK rendering (mudraw PWG and PAM formats) * TIFF viewer (with multi-page support). * Added MuJS Javascript interpreter. * MuJS is the default, V8 and JavaScriptCore are compile time options. * Javascript support has to be explicitly enabled with pdf_enable_js. * All viewers now have JavaScript enabled in the default builds. * Viewers: * X11: Horizontal scroll wheel support. * X11: Status bar display with warnings. * Android: Digital signatures. * iOS: Links, form filling, annotation editing, and javascript. * iOS: Reflow mode. * WinRT: Printing. * WinRT: Improved zooming behaviour. * Tools: * mudraw: Banded rendering with -B /band-height/. * mudraw: Select output format with -F /format/. * mudraw: Write to stdout if you use '-' as the output file name. * mudraw: Add TGA output format. * mudraw: Improved SVG output. * mutool show: Write output to file instead of stdout with -o /filename/. * mutool clean: Clean content streams with -s option. * Annotations: OBS-URL: https://build.opensuse.org/request/show/235816 OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=16
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
Index: mupdf-1.4-source/Makerules
|
|
===================================================================
|
|
--- mupdf-1.4-source.orig/Makerules
|
|
+++ mupdf-1.4-source/Makerules
|
|
@@ -71,8 +71,8 @@ SYS_X11_LIBS = $(shell pkg-config --libs
|
|
|
|
SYS_FREETYPE_CFLAGS = $(shell pkg-config --cflags freetype2)
|
|
SYS_FREETYPE_LIBS = $(shell pkg-config --libs freetype2)
|
|
-SYS_OPENJPEG_CFLAGS = $(shell pkg-config --cflags libopenjpeg1)
|
|
-SYS_OPENJPEG_LIBS = $(shell pkg-config --libs libopenjpeg1)
|
|
+SYS_OPENJPEG_CFLAGS = $(shell pkg-config --cflags libopenjp2)
|
|
+SYS_OPENJPEG_LIBS = $(shell pkg-config --libs libopenjp2)
|
|
SYS_JBIG2DEC_LIBS = -ljbig2dec
|
|
SYS_JPEG_LIBS = -ljpeg
|
|
SYS_ZLIB_LIBS = -lz
|
|
Index: mupdf-1.4-source/source/fitz/load-jpx.c
|
|
===================================================================
|
|
--- mupdf-1.4-source.orig/source/fitz/load-jpx.c
|
|
+++ mupdf-1.4-source/source/fitz/load-jpx.c
|
|
@@ -117,7 +117,7 @@ fz_load_jpx(fz_context *ctx, unsigned ch
|
|
opj_stream_set_read_function(stream, fz_opj_stream_read);
|
|
opj_stream_set_skip_function(stream, fz_opj_stream_skip);
|
|
opj_stream_set_seek_function(stream, fz_opj_stream_seek);
|
|
- opj_stream_set_user_data(stream, &sb);
|
|
+ opj_stream_set_user_data(stream, &sb, NULL);
|
|
/* Set the length to avoid an assert */
|
|
opj_stream_set_user_data_length(stream, size);
|
|
|