svn commit: r431509 - in head/graphics/mupdf: . files

Joseph Mingrone jrm at FreeBSD.org
Sun Jan 15 02:29:02 UTC 2017


Author: jrm
Date: Sun Jan 15 02:29:00 2017
New Revision: 431509
URL: https://svnweb.freebsd.org/changeset/ports/431509

Log:
  graphics/mupdf: Update to version 1.10a.
  
  Other port changes:
  - Remove unnecessary WRKSRC definition.
  - Do not strip binaries that are already stripped.
  - Remove old patches.
  
  Upstream changelog: http://mupdf.com/news
  
  PR:		216061
  Submitted by:	udvzsolt at gmail.com (maintainer)
  Approved by:	swills (mentor)
  Differential Revision:	https://reviews.freebsd.org/D9178

Deleted:
  head/graphics/mupdf/files/patch-source_pdf_pdf-shade.c
  head/graphics/mupdf/files/patch-source_pdf_pdf-xref.c
Modified:
  head/graphics/mupdf/Makefile
  head/graphics/mupdf/distinfo
  head/graphics/mupdf/files/patch-scripts_fontdump.c
  head/graphics/mupdf/files/patch-source__fitz__load-jpx.c
  head/graphics/mupdf/pkg-plist

Modified: head/graphics/mupdf/Makefile
==============================================================================
--- head/graphics/mupdf/Makefile	Sun Jan 15 02:23:44 2017	(r431508)
+++ head/graphics/mupdf/Makefile	Sun Jan 15 02:29:00 2017	(r431509)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	mupdf
-PORTVERSION=	1.9a
-PORTREVISION=	1
+PORTVERSION=	1.10a
 DISTVERSIONSUFFIX=	-source
 PORTEPOCH=	1
 CATEGORIES=	graphics
@@ -27,21 +26,19 @@ LIBS+=		-L${LOCALBASE}/lib
 MAKE_ARGS=	build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes
 USES=		cpe compiler:c++11-lang gmake jpeg pkgconfig
 USE_XORG=	x11 xcursor xext xinerama xrandr
-USE_GL=	gl
+USE_GL=		gl
 
 CPE_VENDOR=	artifex
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-source
-
-OPTIONS_DEFINE=	SCROLL JS
+OPTIONS_DEFINE=	JS SCROLL
 OPTIONS_DEFAULT=SCROLL
 
-SCROLL_DESC=	Build with scroll hacks
 JS_DESC=	JavaScript support (V8 engine)
+SCROLL_DESC=	Build with scroll hacks
 
+JS_LIB_DEPENDS=	libv8.so:lang/v8
+JS_MAKE_ARGS=	V8_PRESENT=1 V8LIBS=-lv8
 SCROLL_EXTRA_PATCHES=	${FILESDIR}/scroll_hack-platform__x11__pdfapp.c
-JS_LIB_DEPENDS=		libv8.so:lang/v8
-JS_MAKE_ARGS=		V8_PRESENT=1 V8LIBS=-lv8
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/-pipe -O2 //' \
@@ -49,12 +46,12 @@ post-patch:
 		-e 's/Linux/FreeBSD/' \
 		${WRKSRC}/Makerules
 	@${RM} -r ${WRKSRC}/thirdparty/curl \
-		${WRKSRC}/thirdparty/jbig2dec \
 		${WRKSRC}/thirdparty/freetype \
 		${WRKSRC}/thirdparty/harfbuzz \
-		${WRKSRC}/thirdparty/jpeg \
-		${WRKSRC}/thirdparty/openjpeg \
-		${WRKSRC}/thirdparty/zlib
+	 	${WRKSRC}/thirdparty/jbig2dec \
+	 	${WRKSRC}/thirdparty/jpeg \
+	 	${WRKSRC}/thirdparty/openjpeg \
+	 	${WRKSRC}/thirdparty/zlib
 
 post-build:
 	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
@@ -66,8 +63,5 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/build/pic/libmupdfthird.a \
 		${STAGEDIR}${PREFIX}/lib/libmupdfthird_pic.a
 	${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf
-.for binary in mutool mujstest mupdf mupdf-gl mupdf-x11-curl
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${binary}
-.endfor
 
 .include <bsd.port.mk>

Modified: head/graphics/mupdf/distinfo
==============================================================================
--- head/graphics/mupdf/distinfo	Sun Jan 15 02:23:44 2017	(r431508)
+++ head/graphics/mupdf/distinfo	Sun Jan 15 02:29:00 2017	(r431509)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1466328793
-SHA256 (mupdf-1.9a-source.tar.gz) = 8015c55f4e6dd892d3c50db4f395c1e46660a10b460e2ecd180a497f55bbc4cc
-SIZE (mupdf-1.9a-source.tar.gz) = 20493793
+TIMESTAMP = 1484401133
+SHA256 (mupdf-1.10a-source.tar.gz) = aacc1f36b9180f562022ef1ab3439b009369d944364f3cff8a2a898834e3a836
+SIZE (mupdf-1.10a-source.tar.gz) = 42264707

Modified: head/graphics/mupdf/files/patch-scripts_fontdump.c
==============================================================================
--- head/graphics/mupdf/files/patch-scripts_fontdump.c	Sun Jan 15 02:23:44 2017	(r431508)
+++ head/graphics/mupdf/files/patch-scripts_fontdump.c	Sun Jan 15 02:29:00 2017	(r431509)
@@ -1,4 +1,4 @@
---- scripts/fontdump.c.orig	2016-04-21 11:14:32 UTC
+--- scripts/fontdump.c.orig	2016-11-28 13:34:04 UTC
 +++ scripts/fontdump.c
 @@ -50,7 +50,6 @@ main(int argc, char **argv)
  	fprintf(fo, "#ifndef __STRICT_ANSI__\n");

Modified: head/graphics/mupdf/files/patch-source__fitz__load-jpx.c
==============================================================================
--- head/graphics/mupdf/files/patch-source__fitz__load-jpx.c	Sun Jan 15 02:23:44 2017	(r431508)
+++ head/graphics/mupdf/files/patch-source__fitz__load-jpx.c	Sun Jan 15 02:29:00 2017	(r431509)
@@ -1,7 +1,8 @@
---- source/fitz/load-jpx.c.orig	2016-04-21 11:14:32 UTC
+--- source/fitz/load-jpx.c.orig	2016-11-28 13:34:04 UTC
 +++ source/fitz/load-jpx.c
-@@ -1,14 +1,6 @@
- #include "mupdf/fitz.h"
+@@ -481,15 +481,7 @@ fz_load_jpx_info(fz_context *ctx, unsign
+ 
+ #else /* HAVE_LURATECH */
  
 -/* Without the definition of OPJ_STATIC, compilation fails on windows
 - * due to the use of __stdcall. We believe it is required on some
@@ -14,14 +15,5 @@
 -#include <openjpeg.h>
 +#include <openjpeg-2.1/openjpeg.h>
  
- static void fz_opj_error_callback(const char *msg, void *client_data)
- {
-@@ -117,7 +109,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);
- 
+ /* OpenJPEG does not provide a safe mechanism to intercept
+  * allocations. In the latest version all allocations go

Modified: head/graphics/mupdf/pkg-plist
==============================================================================
--- head/graphics/mupdf/pkg-plist	Sun Jan 15 02:23:44 2017	(r431508)
+++ head/graphics/mupdf/pkg-plist	Sun Jan 15 02:29:00 2017	(r431509)
@@ -2,14 +2,17 @@ bin/mujstest
 bin/mupdf
 bin/mupdf-gl
 bin/mupdf-x11-curl
+bin/muraster
 bin/mutool
 include/mupdf/fitz.h
 include/mupdf/fitz/annotation.h
+include/mupdf/fitz/archive.h
 include/mupdf/fitz/bidi.h
 include/mupdf/fitz/bitmap.h
 include/mupdf/fitz/buffer.h
 include/mupdf/fitz/colorspace.h
 include/mupdf/fitz/compressed-buffer.h
+include/mupdf/fitz/config.h
 include/mupdf/fitz/context.h
 include/mupdf/fitz/crypt.h
 include/mupdf/fitz/device.h
@@ -45,12 +48,13 @@ include/mupdf/fitz/string.h
 include/mupdf/fitz/structured-text.h
 include/mupdf/fitz/system.h
 include/mupdf/fitz/text.h
+include/mupdf/fitz/track-usage.h
 include/mupdf/fitz/transition.h
 include/mupdf/fitz/tree.h
 include/mupdf/fitz/ucdn.h
-include/mupdf/fitz/unzip.h
 include/mupdf/fitz/util.h
 include/mupdf/fitz/version.h
+include/mupdf/fitz/writer.h
 include/mupdf/fitz/xml.h
 include/mupdf/html.h
 include/mupdf/memento.h
@@ -65,7 +69,6 @@ include/mupdf/pdf/document.h
 include/mupdf/pdf/event.h
 include/mupdf/pdf/field.h
 include/mupdf/pdf/font.h
-include/mupdf/pdf/graft.h
 include/mupdf/pdf/interpret.h
 include/mupdf/pdf/javascript.h
 include/mupdf/pdf/name-table.h
@@ -76,7 +79,7 @@ include/mupdf/pdf/parse.h
 include/mupdf/pdf/resource.h
 include/mupdf/pdf/widget.h
 include/mupdf/pdf/xref.h
-include/mupdf/xps.h
+include/mupdf/svg.h
 lib/libmupdf.a
 lib/libmupdfthird.a
 lib/libmupdfthird_pic.a
@@ -91,3 +94,4 @@ man/man1/mutool.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/progressive.txt
 %%PORTDOCS%%%%DOCSDIR%%/refcount.txt
 %%PORTDOCS%%%%DOCSDIR%%/thirdparty.txt
+%%PORTDOCS%%%%DOCSDIR%%/types.txt


More information about the svn-ports-all mailing list