Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 14:41:32 +0000 (UTC)
From:      Matthew Rezny <rezny@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438171 - head/print/cups-filters
Message-ID:  <201704101441.v3AEfWBF079943@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rezny
Date: Mon Apr 10 14:41:32 2017
New Revision: 438171
URL: https://svnweb.freebsd.org/changeset/ports/438171

Log:
  Add a MUPDF option under PDFTOPS_RENDERER. When activated, mupdf will be used
  instead of Ghostscript/Poppler. When inactive, mupdf is not a dependency.
  
  PR:		217848
  Submitted by:	raivo.hool@gmail.com
  Reviewed by:	mat
  Approved by:	swills (mentor), cyberbotx@cyberbotx.com (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D10325

Modified:
  head/print/cups-filters/Makefile
  head/print/cups-filters/pkg-plist

Modified: head/print/cups-filters/Makefile
==============================================================================
--- head/print/cups-filters/Makefile	Mon Apr 10 14:23:22 2017	(r438170)
+++ head/print/cups-filters/Makefile	Mon Apr 10 14:41:32 2017	(r438171)
@@ -2,7 +2,7 @@
 
 PORTNAME=	cups-filters
 PORTVERSION=	1.13.4
-PORTREVISION?=	2
+PORTREVISION?=	3
 CATEGORIES=	print
 MASTER_SITES=	http://www.openprinting.org/download/cups-filters/
 
@@ -17,8 +17,7 @@ LIB_DEPENDS=	liblcms2.so:graphics/lcms2 
 		libcupsimage.so:print/cups \
 		libfreetype.so:print/freetype2 \
 		libfontconfig.so:x11-fonts/fontconfig \
-		libpoppler.so:graphics/poppler \
-		libmupdf.so:graphics/mupdf
+		libpoppler.so:graphics/poppler
 
 CONFLICTS=	cups-pstoraster-[0-9]* foomatic-filters-[0-9]*
 
@@ -45,7 +44,7 @@ OPTIONS_DEFINE=			BRAILLE COLORD DOCS IJ
 OPTIONS_GROUP=			CUPS_BROWSED
 OPTIONS_GROUP_CUPS_BROWSED=	AVAHI LDAP
 OPTIONS_SINGLE=			PDFTOPS_RENDERER
-OPTIONS_SINGLE_PDFTOPS_RENDERER=GS HYBRID PDFTOPS
+OPTIONS_SINGLE_PDFTOPS_RENDERER=GS HYBRID PDFTOPS MUPDF
 OPTIONS_DEFAULT=		AVAHI COLORD HYBRID IJS IMAGEFILTERS
 OPTIONS_SUB=			yes
 
@@ -102,6 +101,12 @@ PDFTOPS_RUN_DEPENDS=		pdftops:graphics/p
 PDFTOPS_CONFIGURE_ON=		--with-pdftops=pdftops --with-pdftops-path=${LOCALBASE}/bin/pdftops
 PDFTOPS_DESC=			Poppler pdftops(1)
 
+MUPDF_BUILD_DEPENDS=		mutool:graphics/mupdf
+MUPDF_RUN_DEPENDS=		mutool:graphics/mupdf
+MUPDF_CONFIGURE_ON=		--with-pdftops=mupdf
+MUPDF_CONFIGURE_ENABLE=		mutool
+MUPDF_DESC=			MuPDF renderer
+
 PDFTOPS_RENDERER_DESC=		Default PDF-to-PostScript renderer
 
 post-patch:

Modified: head/print/cups-filters/pkg-plist
==============================================================================
--- head/print/cups-filters/pkg-plist	Mon Apr 10 14:23:22 2017	(r438170)
+++ head/print/cups-filters/pkg-plist	Mon Apr 10 14:41:32 2017	(r438171)
@@ -45,7 +45,7 @@ libexec/cups/filter/gstoraster
 %%BRAILLE%%libexec/cups/filter/imagetoubrl
 %%BRAILLE%%libexec/cups/filter/imageubrltoindexv3
 %%BRAILLE%%libexec/cups/filter/imageubrltoindexv4
-libexec/cups/filter/mupdftoraster
+%%MUPDF%%libexec/cups/filter/mupdftoraster
 %%IJS%%libexec/cups/filter/pdftoijs
 libexec/cups/filter/pdftoopvp
 libexec/cups/filter/pdftopdf
@@ -101,7 +101,7 @@ share/cups/drv/cupsfilters.drv
 %%BRAILLE%%share/cups/mime/braille.convs
 %%BRAILLE%%share/cups/mime/braille.types
 share/cups/mime/cupsfilters-ghostscript.convs
-share/cups/mime/cupsfilters-mupdf.convs
+%%MUPDF%%share/cups/mime/cupsfilters-mupdf.convs
 share/cups/mime/cupsfilters-poppler.convs
 share/cups/mime/cupsfilters.convs
 share/cups/mime/cupsfilters.types



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704101441.v3AEfWBF079943>