diff options
author | rezny <rezny@FreeBSD.org> | 2017-04-10 22:41:32 +0800 |
---|---|---|
committer | rezny <rezny@FreeBSD.org> | 2017-04-10 22:41:32 +0800 |
commit | 51c042fe8889f44bc3ad4bf4667f3c70a145ec30 (patch) | |
tree | 48b67a4a05d7480edd48742aee121117a8c370cf /print | |
parent | 6ff52ee72cc89a99e1bb43eaecea8076d0eec23b (diff) | |
download | freebsd-ports-gnome-51c042fe8889f44bc3ad4bf4667f3c70a145ec30.tar.gz freebsd-ports-gnome-51c042fe8889f44bc3ad4bf4667f3c70a145ec30.tar.zst freebsd-ports-gnome-51c042fe8889f44bc3ad4bf4667f3c70a145ec30.zip |
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
Diffstat (limited to 'print')
-rw-r--r-- | print/cups-filters/Makefile | 13 | ||||
-rw-r--r-- | print/cups-filters/pkg-plist | 4 |
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 |