pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/mupdf Update to 1.15.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/3193b184c32a
branches: trunk
changeset: 395724:3193b184c32a
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Sun May 12 12:27:02 2019 +0000
description:
Update to 1.15.0
* Update lcms2 comment
* Remove removed www/curl option
Changelog:
List of changes in MuPDF 1.15.0
General improvements:
* WebAssembly build target and examples.
* Improved forms API in both C and Java bindings.
* Improved forms JavaScript support.
* Create appearance streams for more form field types.
* Fixed many bugs in ICC color management.
* Fixed many memory leaks in error cleanup.
* Fixed bugs in pdfwrite output.
* Improved text extraction from LaTeX documents with math symbols.
* Improved trace device formatting.
* Support CBZ and CBT files larger than 2Gb.
* Show table of contents for FB2 and XHTML documents.
* Show embedded raster images in SVG and XHTML documents.
* Show FB2 cover page.
* Add option to save PDF files without encryption.
* Add inhibit-spaces option to stext device to turn off missing space detection.
* Simplified fz_try/fz_always/fz_catch macros.
mupdf-gl improvements:
* Automatically open annotation editor when selecting an annotation.
* Full page color tinting option in mupdf-gl.
* Show/hide table of contents sections.
* Trigger a reload with sighup.
* Toggle spot color mode with 'e'.
mutool improvements:
mutool show $PDF outline -- show outline with open/closed state indicator.
mutool show $PDF js -- show document level javascript.
mutool clean -A -- create appearance streams when missing.
mutool clean -AA -- recreate all appearance streams.
mutool run docs/examples/portfolio.js -- extract embedded files from PDF document.
mutool run docs/examples/pdf-dejpx.js -- decompress JPEG2000 images in PDF document.
mutool run docs/examples/fix-s22pdf.js -- fix fonts in documents generated by S22PDF.
Significant API changes:
* New and improved forms API.
* Renamed -DNO_ICC to -DFZ_ENABLE_ICC=0
* Removed fz_annot superclass. Use pdf_annot and pdf_widget directly instead.
* Annotations and Widgets now have separate enumerators.
* Added optional separations argument to pixmap rendering utility functions.
Various cleanups:
Per-function documentation comments moved to the source file.
Hopefully they will stay up to date more often than when they
were hidden away in the header file.
Removed unused internal testing tools: mjsgen and jstest.
Removed TGA output support. Use one of the more common and useful PAM,
PNM, PNG, or TIFF formats instead.
Removed support for PDF portfolios. This work-in-progress feature was
never completed, and only worked for a small subset of files.
Removed support for progressive loading. This rarely used feature added
a lot of complexity and was an unending source of bugs and strange
behaviour. Removing this feature has allowed us to clean up and
simplify large amounts of code, and fix dozens of bugs in one fell
swoop.
diffstat:
print/mupdf/Makefile | 15 +-
print/mupdf/PLIST | 23 +--
print/mupdf/distinfo | 16 +-
print/mupdf/options.mk | 13 +-
print/mupdf/patches/patch-ab | 43 ++----
print/mupdf/patches/patch-ac | 140 ++++++--------------
print/mupdf/patches/patch-thirdparty_mujs_Makefile | 22 +-
7 files changed, 90 insertions(+), 182 deletions(-)
diffs (truncated from 623 to 300 lines):
diff -r 02d26fb0111e -r 3193b184c32a print/mupdf/Makefile
--- a/print/mupdf/Makefile Sun May 12 11:59:03 2019 +0000
+++ b/print/mupdf/Makefile Sun May 12 12:27:02 2019 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.66 2018/12/13 19:51:36 adam Exp $
+# $NetBSD: Makefile,v 1.67 2019/05/12 12:27:02 ryoon Exp $
-DISTNAME= mupdf-1.14.0-source
+DISTNAME= mupdf-1.15.0-source
PKGNAME= ${DISTNAME:S/-source//}
-PKGREVISION= 2
CATEGORIES= print
MASTER_SITES= https://mupdf.com/downloads/archive/
@@ -11,14 +10,6 @@
COMMENT= Lightweight PDF, XPS and E-book viewer and toolkit
LICENSE= gnu-agpl-v3
-# XXX: The tarball originally packaged for mupdf-1.14.0 did not contain commit
-# XXX: id 7f77313e6d60fc917146b80cce2f9c1ab0152349 changes related to mupdf-gl
-# XXX: that defines realpath(3) for Windows and fix an inverted logic
-# XXX: condition regarding FREEGLUT macro check.
-# XXX: The DIST_SUBDIR definition can be removed in the next (post-1.14.0)
-# XXX: stable release of mupdf.
-DIST_SUBDIR= ${PKGNAME_NOREV}
-
USE_LANGUAGES= c99
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
@@ -67,7 +58,7 @@
.include "../../graphics/jbig2dec/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
-# XXX: Needs lcms2-2.9 that ATM is not in pkgsrc.
+# XXX: lcms2-2.9 does not usable for mupdf
#BUILDLINK_API_DEPENDS.lcms2+= lcms2>=2.9
#.include "../../graphics/lcms2/buildlink3.mk"
.include "../../graphics/openjpeg/buildlink3.mk"
diff -r 02d26fb0111e -r 3193b184c32a print/mupdf/PLIST
--- a/print/mupdf/PLIST Sun May 12 11:59:03 2019 +0000
+++ b/print/mupdf/PLIST Sun May 12 12:27:02 2019 +0000
@@ -1,12 +1,9 @@
-@comment $NetBSD: PLIST,v 1.17 2018/10/04 19:02:33 leot Exp $
-bin/mjsgen
-bin/mujstest
+@comment $NetBSD: PLIST,v 1.18 2019/05/12 12:27:02 ryoon Exp $
bin/mupdf
${PLIST.opengl}bin/mupdf-gl
bin/muraster
bin/mutool
include/mupdf/fitz.h
-include/mupdf/fitz/annotation.h
include/mupdf/fitz/archive.h
include/mupdf/fitz/band-writer.h
include/mupdf/fitz/bidi.h
@@ -32,15 +29,7 @@
include/mupdf/fitz/image.h
include/mupdf/fitz/link.h
include/mupdf/fitz/outline.h
-include/mupdf/fitz/output-pcl.h
-include/mupdf/fitz/output-pclm.h
-include/mupdf/fitz/output-png.h
-include/mupdf/fitz/output-pnm.h
-include/mupdf/fitz/output-ps.h
-include/mupdf/fitz/output-psd.h
-include/mupdf/fitz/output-pwg.h
include/mupdf/fitz/output-svg.h
-include/mupdf/fitz/output-tga.h
include/mupdf/fitz/output.h
include/mupdf/fitz/path.h
include/mupdf/fitz/pixmap.h
@@ -58,10 +47,10 @@
include/mupdf/fitz/tree.h
include/mupdf/fitz/util.h
include/mupdf/fitz/version.h
+include/mupdf/fitz/write-pixmap.h
include/mupdf/fitz/writer.h
include/mupdf/fitz/xml.h
include/mupdf/memento.h
-include/mupdf/pdf-tools.h
include/mupdf/pdf.h
include/mupdf/pdf/annot.h
include/mupdf/pdf/clean.h
@@ -69,8 +58,8 @@
include/mupdf/pdf/crypt.h
include/mupdf/pdf/document.h
include/mupdf/pdf/event.h
-include/mupdf/pdf/field.h
include/mupdf/pdf/font.h
+include/mupdf/pdf/form.h
include/mupdf/pdf/interpret.h
include/mupdf/pdf/javascript.h
include/mupdf/pdf/name-table.h
@@ -79,7 +68,6 @@
include/mupdf/pdf/page.h
include/mupdf/pdf/parse.h
include/mupdf/pdf/resource.h
-include/mupdf/pdf/widget.h
include/mupdf/pdf/xref.h
include/mupdf/ucdn.h
lib/libmupdf-pkcs7.la
@@ -93,10 +81,10 @@
share/doc/mupdf/COPYING
share/doc/mupdf/README
share/doc/mupdf/android-sdk.html
+share/doc/mupdf/api-changes.html
share/doc/mupdf/artifex-logo.png
share/doc/mupdf/building.html
share/doc/mupdf/coding-overview.html
-share/doc/mupdf/coding-progressive.html
share/doc/mupdf/coding-style.html
share/doc/mupdf/examples/bbox-device.js
share/doc/mupdf/examples/create-thumbnail.js
@@ -108,7 +96,9 @@
share/doc/mupdf/examples/multi-threaded.c
share/doc/mupdf/examples/pdf-create-lowlevel.js
share/doc/mupdf/examples/pdf-create.js
+share/doc/mupdf/examples/pdf-dejpx.js
share/doc/mupdf/examples/pdf-merge.js
+share/doc/mupdf/examples/pdf-portfolio.js
share/doc/mupdf/examples/trace-device.js
share/doc/mupdf/index.html
share/doc/mupdf/manual-mupdf-gl.html
@@ -118,7 +108,6 @@
share/doc/mupdf/manual-mutool-draw.html
share/doc/mupdf/manual-mutool-extract.html
share/doc/mupdf/manual-mutool-merge.html
-share/doc/mupdf/manual-mutool-portfolio.html
share/doc/mupdf/manual-mutool-run.html
share/doc/mupdf/manual-mutool-show.html
share/doc/mupdf/manual-mutool-trace.html
diff -r 02d26fb0111e -r 3193b184c32a print/mupdf/distinfo
--- a/print/mupdf/distinfo Sun May 12 11:59:03 2019 +0000
+++ b/print/mupdf/distinfo Sun May 12 12:27:02 2019 +0000
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.42 2018/10/09 12:34:16 ryoon Exp $
+$NetBSD: distinfo,v 1.43 2019/05/12 12:27:02 ryoon Exp $
-SHA1 (mupdf-1.14.0/mupdf-1.14.0-source.tar.gz) = b55179569716b9fd85655f6018ffd999b101f3c5
-RMD160 (mupdf-1.14.0/mupdf-1.14.0-source.tar.gz) = 4bff6300792025f5bd76b46d010dcfc8d2edeeb1
-SHA512 (mupdf-1.14.0/mupdf-1.14.0-source.tar.gz) = 2dbe4e1d02e296dd01f59471d34771066eaab10b81d9a357f5ea9661298116b5dbfec61858dc0fb3e6714d66bde9fa22d2b665b90165b8642342ec838289dcf9
-Size (mupdf-1.14.0/mupdf-1.14.0-source.tar.gz) = 55654104 bytes
+SHA1 (mupdf-1.15.0-source.tar.gz) = 4354a1c7245d4351ba604a4deed4a4ecf3e27492
+RMD160 (mupdf-1.15.0-source.tar.gz) = 892247f12a9e85d384c6cbc6c5a394d36e783158
+SHA512 (mupdf-1.15.0-source.tar.gz) = d44091e67c4772cad7bb90d66f6da6e05fed376ff5965636ff56eac4ca2faf262f75e80b34514ce52e6141af585cbb0095d5113d20f5b379e548c31fb664c287
+Size (mupdf-1.15.0-source.tar.gz) = 53023898 bytes
SHA1 (patch-Makethird) = 33b7ccf235e971c44e159a687cecc033155957ba
-SHA1 (patch-ab) = 5ef190923d648165cdf29174f1521bd069c7e6f9
-SHA1 (patch-ac) = 4f685e425bff4d257ca3bce3d2b536d5cea1e8aa
+SHA1 (patch-ab) = abddcb1d72a16bd421b6ae924a4b4d759e8371e3
+SHA1 (patch-ac) = 693f1c98f12450f8e23707cf560094ab6166c8eb
SHA1 (patch-ae) = c6b113818b32cb4470e8549c00a16e0b2f364ede
SHA1 (patch-platform_gl_gl-app.h) = f8682b54821a560b2ba1082bcf215eeefb549644
SHA1 (patch-platform_gl_gl-main.c) = edff1aa77c4d6af59b2eca442340606a0bae9970
SHA1 (patch-source_fitz_load-jpx.c) = 161d21bca13bb57db37807aec844c85dc5b34157
-SHA1 (patch-thirdparty_mujs_Makefile) = fc7cbbbeb2a59c4322e2ed46e12cf3dddfd21d28
+SHA1 (patch-thirdparty_mujs_Makefile) = 833e44f4e23d2a6ff61e6276feede4892feeb9bb
diff -r 02d26fb0111e -r 3193b184c32a print/mupdf/options.mk
--- a/print/mupdf/options.mk Sun May 12 11:59:03 2019 +0000
+++ b/print/mupdf/options.mk Sun May 12 12:27:02 2019 +0000
@@ -1,22 +1,13 @@
-# $NetBSD: options.mk,v 1.6 2017/12/18 15:06:33 leot Exp $
+# $NetBSD: options.mk,v 1.7 2019/05/12 12:27:02 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mupdf
-PKG_SUPPORTED_OPTIONS= curl opengl
+PKG_SUPPORTED_OPTIONS= opengl
.include "../../mk/bsd.options.mk"
PLIST_VARS+= opengl
#
-# curl support
-#
-.if !empty(PKG_OPTIONS:Mcurl)
-.include "../../www/curl/buildlink3.mk"
-.else
-MAKE_ENV+= HAVE_CURL=no
-.endif
-
-#
# glut support
#
.if !empty(PKG_OPTIONS:Mopengl)
diff -r 02d26fb0111e -r 3193b184c32a print/mupdf/patches/patch-ab
--- a/print/mupdf/patches/patch-ab Sun May 12 11:59:03 2019 +0000
+++ b/print/mupdf/patches/patch-ab Sun May 12 12:27:02 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.18 2018/10/04 19:02:33 leot Exp $
+$NetBSD: patch-ab,v 1.19 2019/05/12 12:27:02 ryoon Exp $
- Handle the various operating systems in the same way avoiding hardcoding
- Avoid to use objcopy by setting HAVE_OBJCOPY to no (if `yes', and with
@@ -14,7 +14,7 @@
If no lcms2 is available just pass `-DNO_ICC' to disable it via
CFLAGS.
---- Makerules.orig 2018-09-25 12:39:17.000000000 +0000
+--- Makerules.orig 2019-05-06 11:53:09.000000000 +0000
+++ Makerules
@@ -6,17 +6,6 @@ OS := $(OS:MSYS%=MINGW)
OS := $(OS:Windows_NT=MINGW)
@@ -34,7 +34,7 @@
SANITIZE_FLAGS += -fsanitize=address
SANITIZE_FLAGS += -fsanitize=leak
-@@ -72,77 +61,63 @@ SYS_MUJS_LIBS := -lmujs
+@@ -72,52 +61,40 @@ SYS_MUJS_LIBS := -lmujs
SYS_OPENJPEG_LIBS := -lopenjp2
SYS_ZLIB_LIBS := -lz
@@ -50,11 +50,11 @@
- AR = xcrun ar
- LD = xcrun ld
- RANLIB = xcrun ranlib
+-
+-else ifeq ($(OS),Linux)
+- HAVE_OBJCOPY := yes
+HAVE_OBJCOPY := no
--else ifeq ($(OS),Linux)
-- HAVE_OBJCOPY := yes
--
- ifeq ($(shell pkg-config --exists freetype2 && echo yes),yes)
+ifeq ($(shell pkg-config --exists freetype2 && echo yes),yes)
SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
@@ -74,7 +74,7 @@
- endif
- ifeq ($(shell pkg-config --exists libjpeg && echo yes),yes)
+else
-+ CFLAGS += -DNO_ICC
++ CFLAGS += -DFZ_ENABLE_ICC=0
+endif
+ifeq ($(shell pkg-config --exists libjpeg && echo yes),yes)
SYS_LIBJPEG_CFLAGS := $(shell pkg-config --cflags libjpeg)
@@ -94,34 +94,21 @@
- endif
+endif
-- HAVE_CURL := $(shell pkg-config --exists libcurl && echo yes)
-- ifeq ($(HAVE_CURL),yes)
-+HAVE_CURL := $(shell pkg-config --exists libcurl && echo yes)
-+ifeq ($(HAVE_CURL),yes)
- SYS_CURL_CFLAGS := $(shell pkg-config --cflags libcurl)
- SYS_CURL_LIBS := $(shell pkg-config --libs libcurl)
-- endif
-+endif
-
-- HAVE_GLUT := yes
++ifeq ($(shell pkg-config --exists glut && echo yes),yes)
+ HAVE_GLUT := yes
- ifeq ($(HAVE_GLUT),yes)
- SYS_GLUT_CFLAGS :=
- SYS_GLUT_LIBS := -lglut -lGL
- endif
-+ifeq "$(shell pkg-config --exists glut && pkg-config --exists gl && echo yes)" "yes"
-+HAVE_GLUT ?= yes
-+SYS_GLUT_CFLAGS := $(shell pkg-config --cflags glut)
-+SYS_GLUT_LIBS := $(shell pkg-config --libs glut)
++ SYS_GLUT_CFLAGS :=
++ SYS_GLUT_LIBS := -lglut -lGL
+endif
-- HAVE_X11 := $(shell pkg-config --exists x11 xext && echo yes)
-- ifeq ($(HAVE_X11),yes)
-+HAVE_X11 := $(shell pkg-config --exists x11 xext && echo yes)
-+ifeq ($(HAVE_X11),yes)
- X11_CFLAGS := $(shell pkg-config --cflags x11 xext)
+ HAVE_X11 := $(shell pkg-config --exists x11 xext && echo yes)
+ ifeq ($(HAVE_X11),yes)
+@@ -125,18 +102,16 @@ else ifeq ($(OS),Linux)
X11_LIBS := $(shell pkg-config --libs x11 xext)
-- endif
-+endif
+ endif
- HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)
- ifeq ($(HAVE_LIBCRYPTO),yes)
diff -r 02d26fb0111e -r 3193b184c32a print/mupdf/patches/patch-ac
--- a/print/mupdf/patches/patch-ac Sun May 12 11:59:03 2019 +0000
+++ b/print/mupdf/patches/patch-ac Sun May 12 12:27:02 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.20 2018/10/04 19:02:33 leot Exp $
+$NetBSD: patch-ac,v 1.21 2019/05/12 12:27:02 ryoon Exp $
- libtool support
- Install target cleanup
@@ -10,24 +10,24 @@
install it as `mupdf'.
- Install all EXTRA_APPS (muraster, mujstest, mjsgen)
---- Makefile.orig 2018-09-25 12:39:17.000000000 +0000
+--- Makefile.orig 2019-05-06 11:53:09.000000000 +0000
+++ Makefile
-@@ -51,68 +51,68 @@ ifneq ($(verbose),yes)
+@@ -51,65 +51,65 @@ ifneq ($(verbose),yes)
endif
MKTGTDIR = mkdir -p $(dir $@)
Home |
Main Index |
Thread Index |
Old Index