6 MASTER_SITES= http://www.openprinting.org/download/cups-filters/
8 MAINTAINER= cyberbotx@cyberbotx.com
9 COMMENT= Additional backends, filters and other software for CUPS
11 LIB_DEPENDS= liblcms2.so:graphics/lcms2 \
12 libqpdf.so:print/qpdf \
13 libcupsimage.so:print/cups \
14 libfreetype.so:print/freetype2 \
15 libfontconfig.so:x11-fonts/fontconfig \
16 libpoppler.so:graphics/poppler
18 CONFLICTS= cups-pstoraster-[0-9]* foomatic-filters-[0-9]*
20 USES= compiler:c++11-lib cpe gettext ghostscript gmake gnome libtool \
21 iconv pathfix pkgconfig shebangfix tar:xz
22 CPE_VENDOR= linuxfoundation
23 SHEBANG_FILES= filter/braille/drivers/generic/brftoembosser.in \
24 filter/braille/drivers/index/imageubrltoindexv3.in \
25 filter/braille/drivers/index/imageubrltoindexv4.in \
26 filter/braille/drivers/index/textbrftoindexv3.in \
27 filter/braille/filters/imagetobrf.in \
28 filter/braille/filters/texttobrf.in
30 USE_RC_SUBR= cups_browsed
32 CONFIGURE_ARGS= --with-shell=/bin/sh \
33 ZLIB_CFLAGS=" " ZLIB_LIBS="-lz"
34 INSTALL_TARGET= install-strip
36 CPPFLAGS+= -I${LOCALBASE}/include
37 LIBS+= -L${LOCALBASE}/lib ${ICONV_LIB}
40 OPTIONS_DEFINE= BRAILLE COLORD DOCS IJS IMAGEFILTERS
41 OPTIONS_GROUP= CUPS_BROWSED
42 OPTIONS_GROUP_CUPS_BROWSED= AVAHI LDAP
43 OPTIONS_SINGLE= PDFTOPS_RENDERER
44 OPTIONS_SINGLE_PDFTOPS_RENDERER=GS HYBRID PDFTOPS
45 OPTIONS_DEFAULT= AVAHI COLORD HYBRID IJS IMAGEFILTERS
48 BRAILLE_CONFIGURE_ENABLE= braille
49 BRAILLE_DESC= Braille embosser support
50 BRAILLE_LIB_DEPENDS= liblouis.so:devel/liblouis \
51 # liblouisutdml.so:devel/liblouisutdml
52 BRAILLE_RUN_DEPENDS= convert:graphics/ImageMagick \
53 pdftotext:graphics/poppler-utils \
56 COLORD_CONFIGURE_ENABLE= dbus
57 COLORD_DESC= Get ICC color profiles from colord (via D-Bus)
58 COLORD_LIB_DEPENDS= libdbus-1.so:devel/dbus
59 COLORD_RUN_DEPENDS= colord>0:graphics/colord
61 IJS_CONFIGURE_ENABLE= ijs
62 IJS_DESC= Support PPD files that use pdftoijs
63 IJS_LIB_DEPENDS= libijs.so:print/libijs
65 IMAGEFILTERS_CONFIGURE_ENABLE= imagefilters
66 IMAGEFILTERS_CONFIGURE_WITH= jpeg png tiff
67 IMAGEFILTERS_DESC= Support printing image files
68 IMAGEFILTERS_LIB_DEPENDS= libtiff.so:graphics/tiff \
69 libpng.so:graphics/png
70 IMAGEFILTERS_USES= jpeg
72 # cups-browsed(8) options
74 AVAHI_CONFIGURE_ENABLE= avahi
75 AVAHI_CONFIGURE_OFF= --with-browseremoteprotocols=cups
76 AVAHI_CONFIGURE_ON= --with-browseremoteprotocols="dnssd cups"
77 AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
78 AVAHI_SUB_LIST= AVAHI_DAEMON=avahi_daemon
79 AVAHI_SUB_LIST_OFF= AVAHI_DAEMON=
81 CUPS_BROWSED_DESC= cups-browsed(8) options
83 LDAP_CONFIGURE_ENABLE= ldap
84 LDAP_USE= OPENLDAP=yes
86 # Default PDF-to-PostScript renderer
88 GS_CONFIGURE_ON= --with-pdftops=gs
89 GS_DESC= Ghostscript gs(1)
91 HYBRID_BUILD_DEPENDS= pdftops:graphics/poppler-utils
92 HYBRID_RUN_DEPENDS= pdftops:graphics/poppler-utils
93 HYBRID_CONFIGURE_ON= --with-pdftops=hybrid
94 HYBRID_DESC= Ghostscript or Poppler depending on printer
96 PDFTOPS_BUILD_DEPENDS= pdftops:graphics/poppler-utils
97 PDFTOPS_RUN_DEPENDS= pdftops:graphics/poppler-utils
98 PDFTOPS_CONFIGURE_ON= --with-pdftops=pdftops
99 PDFTOPS_DESC= Poppler pdftops(1)
101 PDFTOPS_RENDERER_DESC= Default PDF-to-PostScript renderer
104 @${REINPLACE_CMD} 's:-std=c++0x:-std=c++11:' ${WRKSRC}/Makefile.in
105 @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
106 -e 's|README.gz|README|' \
107 ${WRKSRC}/utils/cups-browsed.8 \
108 ${WRKSRC}/utils/cups-browsed.conf.5
110 .include <bsd.port.mk>