summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorMatthew Rezny <rezny@FreeBSD.org>2017-04-10 14:41:32 +0000
committerMatthew Rezny <rezny@FreeBSD.org>2017-04-10 14:41:32 +0000
commit5309aa388dc2803aa0770801723ac8f6068b703a (patch)
tree48b67a4a05d7480edd48742aee121117a8c370cf /print
parentNew port www/rubygem-lograge: Tame Rails' multi-line logging into a single line (diff)
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
Notes
Notes: svn path=/head/; revision=438171
Diffstat (limited to 'print')
-rw-r--r--print/cups-filters/Makefile13
-rw-r--r--print/cups-filters/pkg-plist4
2 files changed, 11 insertions, 6 deletions
diff --git a/print/cups-filters/Makefile b/print/cups-filters/Makefile
index 227c7d5dc009..5386db539454 100644
--- a/print/cups-filters/Makefile
+++ b/print/cups-filters/Makefile
@@ -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 IJS IMAGEFILTERS
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/poppler-utils
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:
diff --git a/print/cups-filters/pkg-plist b/print/cups-filters/pkg-plist
index d0e9b38380a3..cc789982c897 100644
--- a/print/cups-filters/pkg-plist
+++ b/print/cups-filters/pkg-plist
@@ -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