diff options
author | wiz <wiz@pkgsrc.org> | 2015-04-17 07:18:21 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-04-17 07:18:21 +0000 |
commit | d049bb358d71305b78a8c7510f33745ed2d8f408 (patch) | |
tree | 433ed735d5c4e8fd35093c3576105c7e301d9414 /print/mupdf | |
parent | 6799d9c71e161ac16b6c3668dc3f0a0e9c130727 (diff) | |
download | pkgsrc-d049bb358d71305b78a8c7510f33745ed2d8f408.tar.gz |
Update print/mupdf to 1.7, provided by Leonardo Taccari in PR 49843.
Changes:
MuPDF 1.7 (2015-04-16)
The 1.7 release is here!
MuPDF 1.7 RC1 (2015-04-08)
The 1.7 release is almost here!
Headline changes:
* New 'Indie dev' licensing options - contact sales@artifex.com
for more details.
* New HTML layout engine, and (DRM-free) EPUB viewer.
* Reduced memory usage - displaylists and internal PDF representation
take much less memory, reducing total memory use on some files by
over 60%.
Important API changes:
* Bound contexts have been removed; we now pass fz_contexts
explicitly.
* Reference counting of paths and text structures.
Features:
* Add mutool pages option.
* Tweaked rendering to prevent feature dropout in common cases.
* Viewer tweaks
+ Better mouse wheel handling
+ Shift-space support
+ Mouse button control of presentation mode
+ Failed reloads do not close document
Internal changes:
* PDF filter revamp - simpler interface.
* Devices use derived structures rather than user pointer.
* Sparse PDF xrefs held in more compact form.
* New gsview viewer split out to its own repository.
Bug fixes
* Improved handling of broken files.
* Fix BBoxes of Type 3 fonts.
* Updated fonts (including greek and cyrillic).
* Various memory leaks and crashes.
* And many more.
Diffstat (limited to 'print/mupdf')
-rw-r--r-- | print/mupdf/Makefile | 6 | ||||
-rw-r--r-- | print/mupdf/PLIST | 11 | ||||
-rw-r--r-- | print/mupdf/buildlink3.mk | 5 | ||||
-rw-r--r-- | print/mupdf/distinfo | 10 | ||||
-rw-r--r-- | print/mupdf/files/mupdf.pc | 2 | ||||
-rw-r--r-- | print/mupdf/patches/patch-ac | 70 |
6 files changed, 59 insertions, 45 deletions
diff --git a/print/mupdf/Makefile b/print/mupdf/Makefile index 8c2678e5612..51c3004a12d 100644 --- a/print/mupdf/Makefile +++ b/print/mupdf/Makefile @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.28 2014/10/05 15:19:18 wiz Exp $ +# $NetBSD: Makefile,v 1.29 2015/04/17 07:18:21 wiz Exp $ -DISTNAME= mupdf-1.6-source +DISTNAME= mupdf-1.7-source PKGNAME= ${DISTNAME:S/-source//} CATEGORIES= print MASTER_SITES= http://mupdf.com/downloads/ -MAINTAINER= pkgsrc-users@NetBSD.org +MAINTAINER= leot1990@users.sourceforge.net HOMEPAGE= http://mupdf.com/ COMMENT= Lightweight PDF viewer and toolkit LICENSE= gnu-agpl-v3 diff --git a/print/mupdf/PLIST b/print/mupdf/PLIST index 1cfe6b8dcd2..f3ff5d05231 100644 --- a/print/mupdf/PLIST +++ b/print/mupdf/PLIST @@ -1,9 +1,8 @@ -@comment $NetBSD: PLIST,v 1.8 2014/10/05 15:19:18 wiz Exp $ +@comment $NetBSD: PLIST,v 1.9 2015/04/17 07:18:21 wiz Exp $ bin/mudraw bin/mujstest bin/mupdf bin/mutool -include/mupdf/cbz.h include/mupdf/fitz.h include/mupdf/fitz/annotation.h include/mupdf/fitz/bitmap.h @@ -25,7 +24,6 @@ include/mupdf/fitz/hash.h include/mupdf/fitz/image.h include/mupdf/fitz/link.h include/mupdf/fitz/math.h -include/mupdf/fitz/meta.h include/mupdf/fitz/outline.h include/mupdf/fitz/output-pcl.h include/mupdf/fitz/output-png.h @@ -45,22 +43,26 @@ include/mupdf/fitz/system.h include/mupdf/fitz/text.h include/mupdf/fitz/transition.h include/mupdf/fitz/tree.h +include/mupdf/fitz/unzip.h include/mupdf/fitz/version.h include/mupdf/fitz/write-document.h include/mupdf/fitz/xml.h -include/mupdf/img.h +include/mupdf/html.h include/mupdf/memento.h include/mupdf/pdf-tools.h include/mupdf/pdf.h include/mupdf/pdf/annot.h include/mupdf/pdf/appearance.h +include/mupdf/pdf/clean.h include/mupdf/pdf/cmap.h 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/interpret.h include/mupdf/pdf/javascript.h +include/mupdf/pdf/name-table.h include/mupdf/pdf/object.h include/mupdf/pdf/output-pdf.h include/mupdf/pdf/page.h @@ -68,7 +70,6 @@ include/mupdf/pdf/parse.h include/mupdf/pdf/resource.h include/mupdf/pdf/widget.h include/mupdf/pdf/xref.h -include/mupdf/tiff.h include/mupdf/xps.h lib/libmujs.la lib/libmupdf.la diff --git a/print/mupdf/buildlink3.mk b/print/mupdf/buildlink3.mk index b0d537cf76a..61d892a88e1 100644 --- a/print/mupdf/buildlink3.mk +++ b/print/mupdf/buildlink3.mk @@ -1,12 +1,11 @@ -# $NetBSD: buildlink3.mk,v 1.6 2014/05/30 21:39:37 wiz Exp $ +# $NetBSD: buildlink3.mk,v 1.7 2015/04/17 07:18:21 wiz Exp $ BUILDLINK_TREE+= mupdf .if !defined(MUPDF_BUILDLINK3_MK) MUPDF_BUILDLINK3_MK:= -BUILDLINK_API_DEPENDS.mupdf+= mupdf>=1.3 -BUILDLINK_ABI_DEPENDS.mupdf?= mupdf>=1.4nb1 +BUILDLINK_API_DEPENDS.mupdf+= mupdf>=1.7 BUILDLINK_PKGSRCDIR.mupdf?= ../../print/mupdf pkgbase := mupdf diff --git a/print/mupdf/distinfo b/print/mupdf/distinfo index ad4b0a0eb12..c37e54bb85f 100644 --- a/print/mupdf/distinfo +++ b/print/mupdf/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.17 2014/10/05 15:19:18 wiz Exp $ +$NetBSD: distinfo,v 1.18 2015/04/17 07:18:21 wiz Exp $ -SHA1 (mupdf-1.6-source.tar.gz) = 491d7a3b131589791c7df6dd8161c6bfe41ce74a -RMD160 (mupdf-1.6-source.tar.gz) = c2bab0bbb538cd446cbc7828c0a59c74c61c70cb -Size (mupdf-1.6-source.tar.gz) = 13975531 bytes +SHA1 (mupdf-1.7-source.tar.gz) = 2ea656e2baa31a9c0446090245e7aa9510d1f54a +RMD160 (mupdf-1.7-source.tar.gz) = efcfa3ff6c54faf74dd76c10b686158a3997112d +Size (mupdf-1.7-source.tar.gz) = 13301969 bytes SHA1 (patch-Makethird) = 5ec66437c5695558f5e6497182d1f0c197ee5299 SHA1 (patch-ab) = b965020ec098fc1bf8577cb16102ab4c37bb37d3 -SHA1 (patch-ac) = 2b0fe5f97df7b6709ba7a3abfbefdf72ee81e0a3 +SHA1 (patch-ac) = 2db78731ebbac03a2cfe3329e20544db013b3b10 SHA1 (patch-ae) = bad4b6b8c669c752c6318bb564d1176daac30d19 SHA1 (patch-source_fitz_load-jpx.c) = e5271cf60aff104e05ff60333be54712475d5a33 diff --git a/print/mupdf/files/mupdf.pc b/print/mupdf/files/mupdf.pc index 45c39b849d3..4b1c28d48cb 100644 --- a/print/mupdf/files/mupdf.pc +++ b/print/mupdf/files/mupdf.pc @@ -5,6 +5,6 @@ includedir=${prefix}/include Name: mupdf Description: library for PDF files -Version: 1.4 +Version: 1.7 Libs: -Wl,-R${libdir} -L${libdir} -lmupdf Cflags: -I${includedir} diff --git a/print/mupdf/patches/patch-ac b/print/mupdf/patches/patch-ac index 3779537f59d..6ee67ca8064 100644 --- a/print/mupdf/patches/patch-ac +++ b/print/mupdf/patches/patch-ac @@ -1,4 +1,4 @@ -$NetBSD: patch-ac,v 1.9 2014/06/15 14:14:18 wiz Exp $ +$NetBSD: patch-ac,v 1.10 2015/04/17 07:18:21 wiz Exp $ o libtool support o Install target cleanup @@ -6,7 +6,7 @@ o Install only one "mupdf" binary, prefer the featureful one and always install it as "mupdf" o libmujs support: install like a non-thirdparty mupdf's library ---- Makefile.orig 2014-06-10 15:09:28.000000000 +0000 +--- Makefile.orig 2015-04-08 15:04:10.000000000 +0000 +++ Makefile @@ -41,22 +41,12 @@ CFLAGS += $(ZLIB_CFLAGS) @@ -37,22 +37,20 @@ o libmujs support: install like a non-thirdparty mupdf's library # --- File lists --- -@@ -90,33 +80,33 @@ CBZ_SRC_HDR := $(wildcard source/cbz/*.h - IMG_SRC_HDR := $(wildcard source/img/*.h) - TIFF_SRC_HDR := $(wildcard source/tiff/*.h) +@@ -87,32 +77,32 @@ PDF_SRC_HDR := $(wildcard source/pdf/*.h + XPS_SRC_HDR := $(wildcard source/xps/*.h) + HTML_SRC_HDR := $(wildcard source/html/*.h) -FITZ_OBJ := $(subst source/, $(OUT)/, $(addsuffix .o, $(basename $(FITZ_SRC)))) -PDF_OBJ := $(subst source/, $(OUT)/, $(addsuffix .o, $(basename $(PDF_SRC)))) -XPS_OBJ := $(subst source/, $(OUT)/, $(addsuffix .o, $(basename $(XPS_SRC)))) -CBZ_OBJ := $(subst source/, $(OUT)/, $(addsuffix .o, $(basename $(CBZ_SRC)))) --IMG_OBJ := $(subst source/, $(OUT)/, $(addsuffix .o, $(basename $(IMG_SRC)))) --TIFF_OBJ := $(subst source/, $(OUT)/, $(addsuffix .o, $(basename $(TIFF_SRC)))) +-HTML_OBJ := $(subst source/, $(OUT)/, $(addsuffix .o, $(basename $(HTML_SRC)))) +FITZ_OBJ := $(subst source/, $(OUT)/, $(addsuffix .lo, $(basename $(FITZ_SRC)))) +PDF_OBJ := $(subst source/, $(OUT)/, $(addsuffix .lo, $(basename $(PDF_SRC)))) +XPS_OBJ := $(subst source/, $(OUT)/, $(addsuffix .lo, $(basename $(XPS_SRC)))) +CBZ_OBJ := $(subst source/, $(OUT)/, $(addsuffix .lo, $(basename $(CBZ_SRC)))) -+IMG_OBJ := $(subst source/, $(OUT)/, $(addsuffix .lo, $(basename $(IMG_SRC)))) -+TIFF_OBJ := $(subst source/, $(OUT)/, $(addsuffix .lo, $(basename $(TIFF_SRC)))) ++HTML_OBJ := $(subst source/, $(OUT)/, $(addsuffix .lo, $(basename $(HTML_SRC)))) # --- Choice of Javascript library --- @@ -84,17 +82,16 @@ o libmujs support: install like a non-thirdparty mupdf's library endif $(FITZ_OBJ) : $(FITZ_HDR) $(FITZ_SRC_HDR) -@@ -128,41 +118,44 @@ $(TIFF_OBJ) : $(FITZ_HDR) $(IMG_HDR) $(T +@@ -123,44 +113,47 @@ $(HTML_OBJ) : $(FITZ_HDR) $(HTML_HDR) $( # --- Library --- -MUPDF_LIB := $(OUT)/libmupdf.a +MUPDF_LIB := $(OUT)/libmupdf.la - $(MUPDF_LIB) : $(FITZ_OBJ) $(PDF_OBJ) $(XPS_OBJ) $(CBZ_OBJ) $(IMG_OBJ) $(TIFF_OBJ) + $(MUPDF_LIB) : $(FITZ_OBJ) $(PDF_OBJ) $(XPS_OBJ) $(CBZ_OBJ) $(HTML_OBJ) --INSTALL_LIBS := $(MUPDF_LIB) -+INSTALL_LIBS := $(MUPDF_LIB) + INSTALL_LIBS := $(MUPDF_LIB) +ifeq "$(HAVE_MUJS)" "yes" +INSTALL_LIBS += $(MUJS_LIB) +endif @@ -130,6 +127,10 @@ o libmujs support: install like a non-thirdparty mupdf's library +$(OUT)/platform/x11/%.lo : platform/x11/%.c | $(ALL_DIR) $(CC_CMD) $(X11_CFLAGS) +-$(OUT)/platform/x11/%.o: platform/x11/%.rc | $(OUT) ++$(OUT)/platform/x11/%.lo: platform/x11/%.rc | $(OUT) + windres $< $@ + -$(OUT)/platform/x11/curl/%.o : platform/x11/%.c | $(ALL_DIR) +$(OUT)/platform/x11/curl/%.lo : platform/x11/%.c | $(ALL_DIR) $(CC_CMD) $(X11_CFLAGS) $(CURL_CFLAGS) -DHAVE_CURL @@ -139,38 +140,40 @@ o libmujs support: install like a non-thirdparty mupdf's library # --- Generated CMAP, FONT and JAVASCRIPT files --- -@@ -222,23 +215,23 @@ endif +@@ -224,24 +217,24 @@ endif - generate: $(CMAP_GEN) $(FONT_GEN) $(JAVASCRIPT_GEN) $(ADOBECA_GEN) + generate: $(CMAP_GEN) $(FONT_GEN) $(JAVASCRIPT_GEN) $(ADOBECA_GEN) $(NAME_GEN) -$(OUT)/pdf/pdf-cmap-table.o : $(CMAP_GEN) -$(OUT)/pdf/pdf-fontfile.o : $(FONT_GEN) -$(OUT)/pdf/pdf-pkcs7.o : $(ADOBECA_GEN) -$(OUT)/pdf/js/pdf-js.o : $(JAVASCRIPT_GEN) --$(OUT)/cmapdump.o : include/mupdf/pdf/cmap.h source/pdf/pdf-cmap.c source/pdf/pdf-cmap-parse.c +-$(OUT)/pdf/pdf-object.o : source/pdf/pdf-name-table.h +-$(OUT)/cmapdump.o : include/mupdf/pdf/cmap.h source/pdf/pdf-cmap.c source/pdf/pdf-cmap-parse.c source/pdf/pdf-name-table.h +$(OUT)/pdf/pdf-cmap-table.lo : $(CMAP_GEN) +$(OUT)/pdf/pdf-fontfile.lo : $(FONT_GEN) +$(OUT)/pdf/pdf-pkcs7.lo : $(ADOBECA_GEN) +$(OUT)/pdf/js/pdf-js.lo : $(JAVASCRIPT_GEN) -+$(OUT)/cmapdump.lo : include/mupdf/pdf/cmap.h source/pdf/pdf-cmap.c source/pdf/pdf-cmap-parse.c ++$(OUT)/pdf/pdf-object.lo : source/pdf/pdf-name-table.h ++$(OUT)/cmapdump.lo : include/mupdf/pdf/cmap.h source/pdf/pdf-cmap.c source/pdf/pdf-cmap-parse.c source/pdf/pdf-name-table.h # --- Tools and Apps --- MUDRAW := $(addprefix $(OUT)/, mudraw) -MUDRAW_OBJ := $(addprefix $(OUT)/tools/, mudraw.o) +MUDRAW_OBJ := $(addprefix $(OUT)/tools/, mudraw.lo) - $(MUDRAW_OBJ) : $(FITZ_HDR) + $(MUDRAW_OBJ) : $(FITZ_HDR) $(PDF_HDR) $(MUDRAW) : $(MUPDF_LIB) $(THIRD_LIBS) $(MUDRAW) : $(MUDRAW_OBJ) $(LINK_CMD) MUTOOL := $(addprefix $(OUT)/, mutool) --MUTOOL_OBJ := $(addprefix $(OUT)/tools/, mutool.o pdfclean.o pdfextract.o pdfinfo.o pdfposter.o pdfshow.o) -+MUTOOL_OBJ := $(addprefix $(OUT)/tools/, mutool.lo pdfclean.lo pdfextract.lo pdfinfo.lo pdfposter.lo pdfshow.lo) +-MUTOOL_OBJ := $(addprefix $(OUT)/tools/, mutool.o pdfclean.o pdfextract.o pdfinfo.o pdfposter.o pdfshow.o pdfpages.o) ++MUTOOL_OBJ := $(addprefix $(OUT)/tools/, mutool.lo pdfclean.lo pdfextract.lo pdfinfo.lo pdfposter.lo pdfshow.lo pdfpages.lo) $(MUTOOL_OBJ): $(FITZ_HDR) $(PDF_HDR) $(MUTOOL) : $(MUPDF_LIB) $(THIRD_LIBS) $(MUTOOL) : $(MUTOOL_OBJ) -@@ -246,25 +239,25 @@ $(MUTOOL) : $(MUTOOL_OBJ) +@@ -249,27 +242,27 @@ $(MUTOOL) : $(MUTOOL_OBJ) MJSGEN := $(OUT)/mjsgen $(MJSGEN) : $(MUPDF_LIB) $(THIRD_LIBS) @@ -179,9 +182,11 @@ o libmujs support: install like a non-thirdparty mupdf's library $(LINK_CMD) MUJSTEST := $(OUT)/mujstest +-MUJSTEST_OBJ := $(addprefix $(OUT)/platform/x11/, jstest_main.o pdfapp.o) ++MUJSTEST_OBJ := $(addprefix $(OUT)/platform/x11/, jstest_main.lo pdfapp.lo) + $(MUJSTEST_OBJ) : $(FITZ_HDR) $(PDF_HDR) $(MUJSTEST) : $(MUPDF_LIB) $(THIRD_LIBS) --$(MUJSTEST) : $(addprefix $(OUT)/platform/x11/, jstest_main.o pdfapp.o) -+$(MUJSTEST) : $(addprefix $(OUT)/platform/x11/, jstest_main.lo pdfapp.lo) + $(MUJSTEST) : $(MUJSTEST_OBJ) $(LINK_CMD) ifeq "$(HAVE_X11)" "yes" @@ -202,9 +207,18 @@ o libmujs support: install like a non-thirdparty mupdf's library $(MUVIEW_X11_CURL_OBJ) : $(FITZ_HDR) $(PDF_HDR) $(MUVIEW_X11_CURL) : $(MUPDF_LIB) $(THIRD_LIBS) $(CURL_LIB) $(MUVIEW_X11_CURL) : $(MUVIEW_X11_CURL_OBJ) -@@ -275,7 +268,12 @@ endif - MUVIEW := $(MUVIEW_X11) - MUVIEW_CURL := $(MUVIEW_X11_CURL) +@@ -279,7 +272,7 @@ endif + + ifeq "$(HAVE_WIN32)" "yes" + MUVIEW_WIN32 := $(OUT)/mupdf +-MUVIEW_WIN32_OBJ := $(addprefix $(OUT)/platform/x11/, win_main.o pdfapp.o win_res.o) ++MUVIEW_WIN32_OBJ := $(addprefix $(OUT)/platform/x11/, win_main.lo pdfapp.lo win_res.lo) + $(MUVIEW_WIN32_OBJ) : $(FITZ_HDR) $(PDF_HDR) + $(MUVIEW_WIN32) : $(MUPDF_LIB) $(THIRD_LIBS) + $(MUVIEW_WIN32) : $(MUVIEW_WIN32_OBJ) +@@ -289,7 +282,12 @@ endif + MUVIEW := $(MUVIEW_X11) $(MUVIEW_WIN32) + MUVIEW_CURL := $(MUVIEW_X11_CURL) $(MUVIEW_WIN32_CURL) -INSTALL_APPS := $(MUDRAW) $(MUTOOL) $(MUVIEW) $(MUJSTEST) $(MUVIEW_CURL) +INSTALL_APPS := $(MUDRAW) $(MUTOOL) $(MUJSTEST) @@ -214,9 +228,9 @@ o libmujs support: install like a non-thirdparty mupdf's library +INSTALL_APPS += $(MUVIEW) +endif - # --- Update version string header --- + # --- Examples --- -@@ -308,24 +306,26 @@ libs: $(INSTALL_LIBS) +@@ -331,24 +329,26 @@ libs: $(INSTALL_LIBS) apps: $(INSTALL_APPS) install: libs apps |