aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mupdf/openjpeg-2.1.1.patch
diff options
context:
space:
mode:
authorDaniel Sabogal <dsabogalcc@gmail.com>2016-08-21 23:23:20 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2016-09-06 08:09:08 +0000
commita9971d953bd0eef09cf3a04927da6a6b03e66ba9 (patch)
treedfa72f25011f7299c1d0349825d0928d5bcf909d /testing/mupdf/openjpeg-2.1.1.patch
parentbbbe6b7f7a33fafe77015ba15083438823636ef2 (diff)
downloadaports-a9971d953bd0eef09cf3a04927da6a6b03e66ba9.tar.bz2
aports-a9971d953bd0eef09cf3a04927da6a6b03e66ba9.tar.xz
testing/mupdf: rebuild against openjpeg-2.1.1
Patch taken from the FreeBSD ports
Diffstat (limited to 'testing/mupdf/openjpeg-2.1.1.patch')
-rw-r--r--testing/mupdf/openjpeg-2.1.1.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/mupdf/openjpeg-2.1.1.patch b/testing/mupdf/openjpeg-2.1.1.patch
new file mode 100644
index 0000000000..80288f5378
--- /dev/null
+++ b/testing/mupdf/openjpeg-2.1.1.patch
@@ -0,0 +1,28 @@
+--- mupdf-1.9a-source/source/fitz/load-jpx.c.orig
++++ mupdf-1.9a-source/source/fitz/load-jpx.c
+@@ -1,15 +1,7 @@
+ #include "mupdf/fitz.h"
+
+-/* Without the definition of OPJ_STATIC, compilation fails on windows
+- * due to the use of __stdcall. We believe it is required on some
+- * linux toolchains too. */
+-#define OPJ_STATIC
+-#ifndef _MSC_VER
+-#define OPJ_HAVE_STDINT_H
+-#endif
++#include <openjpeg-2.1/openjpeg.h>
+
+-#include <openjpeg.h>
+-
+ static void fz_opj_error_callback(const char *msg, void *client_data)
+ {
+ fz_context *ctx = (fz_context *)client_data;
+@@ -117,7 +109,7 @@
+ 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);
+