pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/mupdf Fix linking with openjpeg-2.1.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f774ecf45d5b
branches:  trunk
changeset: 349741:f774ecf45d5b
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Jul 15 12:32:33 2016 +0000

description:
Fix linking with openjpeg-2.1.1

Restrict OPJ_STATIC definition to Windows (as the comment suggests).
This avoid linking errors with openjpeg-2.1.1.

Bump PKGREVISION

diffstat:

 print/mupdf/Makefile                             |   3 ++-
 print/mupdf/distinfo                             |   4 ++--
 print/mupdf/patches/patch-source_fitz_load-jpx.c |  23 +++++++++++++++++------
 3 files changed, 21 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r 816cee3d63f2 -r f774ecf45d5b print/mupdf/Makefile
--- a/print/mupdf/Makefile      Fri Jul 15 12:29:42 2016 +0000
+++ b/print/mupdf/Makefile      Fri Jul 15 12:32:33 2016 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.36 2016/04/27 12:34:58 leot Exp $
+# $NetBSD: Makefile,v 1.37 2016/07/15 12:32:33 leot Exp $
 
 DISTNAME=      mupdf-1.9a-source
 PKGNAME=       ${DISTNAME:S/-source//}
+PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES=  http://mupdf.com/downloads/archive/
 
diff -r 816cee3d63f2 -r f774ecf45d5b print/mupdf/distinfo
--- a/print/mupdf/distinfo      Fri Jul 15 12:29:42 2016 +0000
+++ b/print/mupdf/distinfo      Fri Jul 15 12:32:33 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2016/04/27 12:34:58 leot Exp $
+$NetBSD: distinfo,v 1.25 2016/07/15 12:32:33 leot Exp $
 
 SHA1 (mupdf-1.9a-source.tar.gz) = f2b3c21e5060d6ec56ea0d0c32b0feac7eac0e5f
 RMD160 (mupdf-1.9a-source.tar.gz) = 0cb0d098c603b16be217e42299052a928d95c3fc
@@ -8,5 +8,5 @@
 SHA1 (patch-ab) = c1ee4dd0b79aa0d905c0a0b634fbd016c063cd64
 SHA1 (patch-ac) = 51b62ef8ff3e6c44ad954b2405bd982f9d682d37
 SHA1 (patch-ae) = c6b113818b32cb4470e8549c00a16e0b2f364ede
-SHA1 (patch-source_fitz_load-jpx.c) = 661b6a7f1d4da4f0cf5de3762db2f77d91239a6b
+SHA1 (patch-source_fitz_load-jpx.c) = cb33828a6ca638c1b61ff017708a41cc586d1b0e
 SHA1 (patch-thirdparty_mujs_Makefile) = f1da7cdf2c9e2e4bbac3e80ef486204a39b27e34
diff -r 816cee3d63f2 -r f774ecf45d5b print/mupdf/patches/patch-source_fitz_load-jpx.c
--- a/print/mupdf/patches/patch-source_fitz_load-jpx.c  Fri Jul 15 12:29:42 2016 +0000
+++ b/print/mupdf/patches/patch-source_fitz_load-jpx.c  Fri Jul 15 12:32:33 2016 +0000
@@ -1,11 +1,22 @@
-$NetBSD: patch-source_fitz_load-jpx.c,v 1.2 2016/02/04 11:50:24 leot Exp $
+$NetBSD: patch-source_fitz_load-jpx.c,v 1.3 2016/07/15 12:32:33 leot Exp $
+
+ o Restrict OPJ_STATIC to Windows (avoid linking errors due to hidden symbols)
+ o Fix build with openjpeg-2.1.
+   I have misgivings about the code though.
 
-Fix build with openjpeg-2.1.
-I have misgivings about the code though.
-
---- source/fitz/load-jpx.c.orig        2015-11-10 16:19:51.000000000 +0000
+--- source/fitz/load-jpx.c.orig        2016-04-21 11:14:32.000000000 +0000
 +++ source/fitz/load-jpx.c
-@@ -117,7 +117,8 @@ fz_load_jpx(fz_context *ctx, unsigned ch
+@@ -3,7 +3,9 @@
+ /* 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. */
++#ifdef _WIN32
+ #define OPJ_STATIC
++#endif
+ #ifndef _MSC_VER
+ #define OPJ_HAVE_STDINT_H
+ #endif
+@@ -117,7 +119,8 @@ 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);



Home | Main Index | Thread Index | Old Index