summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz>2014-06-07 11:47:47 +0000
committerwiz <wiz>2014-06-07 11:47:47 +0000
commit9af2b6f62169832558ae2c139466fd79c5de755f (patch)
tree9f946c39fc230b14ac3a48267b35f23f778d0433 /print
parent8d4f3663f1ec446c55bc66d2fdd8419a4813b503 (diff)
downloadpkgsrc-9af2b6f62169832558ae2c139466fd79c5de755f.tar.gz
Import cups-filters-1.0.54 as print/cups-filters.
CUPS is a standards-based, open source printing system developed by Apple Inc. for Mac OS X and other UNIX-like operating systems. CUPS uses the Internet Printing Protocol ("IPP") and provides System V and Berkeley command-line interfaces, a web interface, and a C API to manage printers and print jobs. This distribution contains backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc. In addition it contains additional filters and software developed independently of Apple, especially filters for the PDF-centric printing workflow introduced by OpenPrinting and a daemon to browse Bonjour broadcasts of remote CUPS printers and makes these printers available locally. From CUPS 1.6.0 on, this package is required for using printer drivers with CUPS under Linux. With CUPS 1.5.x and earlier this package can be used optionally to switch over to PDF-based printing. In that case some filters are provided by both CUPS and this package. Then the filters of this package should be used.
Diffstat (limited to 'print')
-rw-r--r--print/cups-filters/DESCR19
-rw-r--r--print/cups-filters/Makefile54
-rw-r--r--print/cups-filters/PLIST81
-rw-r--r--print/cups-filters/distinfo7
-rw-r--r--print/cups-filters/patches/patch-filter_foomatic-rip_foomaticrip.c16
-rw-r--r--print/cups-filters/patches/patch-utils_cups-browsed.c20
6 files changed, 197 insertions, 0 deletions
diff --git a/print/cups-filters/DESCR b/print/cups-filters/DESCR
new file mode 100644
index 00000000000..9f11f8d35ce
--- /dev/null
+++ b/print/cups-filters/DESCR
@@ -0,0 +1,19 @@
+CUPS is a standards-based, open source printing system developed
+by Apple Inc. for Mac OS X and other UNIX-like operating systems.
+CUPS uses the Internet Printing Protocol ("IPP") and provides System
+V and Berkeley command-line interfaces, a web interface, and a C
+API to manage printers and print jobs.
+
+This distribution contains backends, filters, and other software
+that was once part of the core CUPS distribution but is no longer
+maintained by Apple Inc. In addition it contains additional filters
+and software developed independently of Apple, especially filters
+for the PDF-centric printing workflow introduced by OpenPrinting
+and a daemon to browse Bonjour broadcasts of remote CUPS printers
+and makes these printers available locally.
+
+From CUPS 1.6.0 on, this package is required for using printer
+drivers with CUPS under Linux. With CUPS 1.5.x and earlier this
+package can be used optionally to switch over to PDF-based printing.
+In that case some filters are provided by both CUPS and this package.
+Then the filters of this package should be used.
diff --git a/print/cups-filters/Makefile b/print/cups-filters/Makefile
new file mode 100644
index 00000000000..828fb1e8e4e
--- /dev/null
+++ b/print/cups-filters/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.1 2014/06/07 11:47:47 wiz Exp $
+
+DISTNAME= cups-filters-1.0.54
+CATEGORIES= print
+MASTER_SITES= http://openprinting.org/download/cups-filters/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
+COMMENT= Backends, filters, and other software for cups
+#LICENSE= # TODO: (see mk/license.mk)
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= bash:run pkg-config
+USE_LANGUAGES= c c++
+
+CONFLICTS+= cups<1.6
+
+PKGCONFIG_OVERRIDE+= libcupsfilters.pc.in
+PKGCONFIG_OVERRIDE+= libfontembed.pc.in
+
+REPLACE_BASH+= filter/textonly
+
+INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/cups-filters
+
+INSTALLATION_DIRS= share/examples/rc.d
+
+CONF_FILES= ${PREFIX}/share/examples/cups-filters/fonts/conf.d/99pdftoopvp.conf ${PKG_SYSCONFDIR}/fonts/conf.d/99pdftoopvp.conf
+CONF_FILES= ${PREFIX}/share/examples/cups-filters/cups-browsed.conf ${PKG_SYSCONFDIR}/cups/cups-browsed.conf
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/etc/cups/cups-browsed.conf ${DESTDIR}${PREFIX}/share/examples/cups-filters/cups-browsed.conf
+ ${MV} ${DESTDIR}/etc/rc.d/cups-browsed ${DESTDIR}${PREFIX}/share/examples/rc.d/cups-browsed
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/lcms2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../net/avahi/buildlink3.mk"
+BUILDLINK_ABI_DEPENDS.cups+= cups>=1.6
+.include "../../print/cups/buildlink3.mk"
+.include "../../print/ghostscript/buildlink3.mk"
+.include "../../print/ijs/buildlink3.mk"
+.include "../../print/poppler-cpp/buildlink3.mk"
+.include "../../print/poppler-glib/buildlink3.mk"
+BUILDLINK_ABI_DEPENDS.poppler-includes?= poppler-includes>=0.26.1nb1
+.include "../../print/poppler-includes/buildlink3.mk"
+.include "../../print/qpdf/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/cups-filters/PLIST b/print/cups-filters/PLIST
new file mode 100644
index 00000000000..f2cc7506b2b
--- /dev/null
+++ b/print/cups-filters/PLIST
@@ -0,0 +1,81 @@
+@comment $NetBSD: PLIST,v 1.1 2014/06/07 11:47:47 wiz Exp $
+bin/ttfread
+include/cupsfilters/colord.h
+include/cupsfilters/driver.h
+include/cupsfilters/image.h
+include/cupsfilters/raster.h
+include/fontembed/bitset.h
+include/fontembed/embed.h
+include/fontembed/fontfile.h
+include/fontembed/iofn.h
+include/fontembed/sfnt.h
+lib/libcupsfilters.la
+lib/libfontembed.la
+lib/pkgconfig/libcupsfilters.pc
+lib/pkgconfig/libfontembed.pc
+libexec/cups/backend/parallel
+libexec/cups/backend/serial
+libexec/cups/filter/bannertopdf
+libexec/cups/filter/commandtoescpx
+libexec/cups/filter/commandtopclx
+libexec/cups/filter/foomatic-rip
+libexec/cups/filter/gstopxl
+libexec/cups/filter/gstoraster
+libexec/cups/filter/imagetopdf
+libexec/cups/filter/imagetops
+libexec/cups/filter/imagetoraster
+libexec/cups/filter/pdftoijs
+libexec/cups/filter/pdftoippprinter
+libexec/cups/filter/pdftoopvp
+libexec/cups/filter/pdftopdf
+libexec/cups/filter/pdftops
+libexec/cups/filter/pdftoraster
+libexec/cups/filter/pstopdf
+libexec/cups/filter/rastertoescpx
+libexec/cups/filter/rastertopclx
+libexec/cups/filter/rastertopdf
+libexec/cups/filter/textonly
+libexec/cups/filter/texttopdf
+libexec/cups/filter/texttops
+libexec/cups/filter/urftopdf
+man/man1/foomatic-rip.1
+man/man5/cups-browsed.conf.5
+man/man8/cups-browsed.8
+sbin/cups-browsed
+share/cups/banners/classified
+share/cups/banners/confidential
+share/cups/banners/form
+share/cups/banners/secret
+share/cups/banners/standard
+share/cups/banners/topsecret
+share/cups/banners/unclassified
+share/cups/charsets/pdf.utf-8
+share/cups/charsets/pdf.utf-8.heavy
+share/cups/charsets/pdf.utf-8.simple
+share/cups/data/default-testpage.pdf
+share/cups/data/default.pdf
+share/cups/data/form_english.pdf
+share/cups/data/form_english_in.odt
+share/cups/data/form_russian.pdf
+share/cups/data/form_russian_in.odt
+share/cups/data/testprint
+share/cups/drv/cupsfilters.drv
+share/cups/mime/cupsfilters.convs
+share/cups/mime/cupsfilters.types
+share/cups/ppdc/escp.h
+share/cups/ppdc/pcl.h
+share/doc/cups-filters/AUTHORS
+share/doc/cups-filters/COPYING
+share/doc/cups-filters/INSTALL
+share/doc/cups-filters/NEWS
+share/doc/cups-filters/README
+share/examples/cups-filters/cups-browsed.conf
+share/examples/cups-filters/fonts/conf.d/99pdftoopvp.conf
+share/examples/rc.d/cups-browsed
+share/ppd/cupsfilters/Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd
+share/ppd/cupsfilters/Generic-PDF_Printer-PDF.ppd
+share/ppd/cupsfilters/HP-Color_LaserJet_CM3530_MFP-PDF.ppd
+share/ppd/cupsfilters/HP-PhotoSmart_Pro_B8300-hpijs-pdftoijs.ppd
+share/ppd/cupsfilters/pxlcolor.ppd
+share/ppd/cupsfilters/pxlmono.ppd
+share/ppd/cupsfilters/textonly.ppd
diff --git a/print/cups-filters/distinfo b/print/cups-filters/distinfo
new file mode 100644
index 00000000000..a62371705f2
--- /dev/null
+++ b/print/cups-filters/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/06/07 11:47:47 wiz Exp $
+
+SHA1 (cups-filters-1.0.54.tar.xz) = 5f9e6a7d63406110412d1fc8432bb2415f47622c
+RMD160 (cups-filters-1.0.54.tar.xz) = 842a08a5846269e7b82153fe955aa3e421370833
+Size (cups-filters-1.0.54.tar.xz) = 1314324 bytes
+SHA1 (patch-filter_foomatic-rip_foomaticrip.c) = 33199169537dac7246fffc04aa3f2a7e875103b1
+SHA1 (patch-utils_cups-browsed.c) = ccade24afb275e9cee13d1efb96ddffe6eeddcf1
diff --git a/print/cups-filters/patches/patch-filter_foomatic-rip_foomaticrip.c b/print/cups-filters/patches/patch-filter_foomatic-rip_foomaticrip.c
new file mode 100644
index 00000000000..d5ec1785ab0
--- /dev/null
+++ b/print/cups-filters/patches/patch-filter_foomatic-rip_foomaticrip.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-filter_foomatic-rip_foomaticrip.c,v 1.1 2014/06/07 11:47:47 wiz Exp $
+
+mkstemps doesn't exist on NetBSD either.
+(Should be a configure test instead.)
+
+--- filter/foomatic-rip/foomaticrip.c.orig 2014-06-06 08:49:59.000000000 +0000
++++ filter/foomatic-rip/foomaticrip.c
+@@ -740,7 +740,7 @@ int main(int argc, char** argv)
+ debug = 1;
+
+ if (debug) {
+-#ifdef __UCLIBC__
++#if defined(__UCLIBC__) || defined(__NetBSD__)
+ sprintf(tmp, "%s-log-XXXXXX", LOG_FILE);
+ int fd = mkstemp (tmp);
+ #else
diff --git a/print/cups-filters/patches/patch-utils_cups-browsed.c b/print/cups-filters/patches/patch-utils_cups-browsed.c
new file mode 100644
index 00000000000..114edb4a163
--- /dev/null
+++ b/print/cups-filters/patches/patch-utils_cups-browsed.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-utils_cups-browsed.c,v 1.1 2014/06/07 11:47:47 wiz Exp $
+
+Move header below those providing u_int on NetBSD.
+
+--- utils/cups-browsed.c.orig 2014-05-07 14:09:53.000000000 +0000
++++ utils/cups-browsed.c
+@@ -23,12 +23,12 @@
+
+ #include <ctype.h>
+ #include <errno.h>
+-#include <ifaddrs.h>
+ #if defined(__OpenBSD__)
+ #include <sys/socket.h>
+ #endif /* __OpenBSD__ */
+ #include <net/if.h>
+ #include <netinet/in.h>
++#include <ifaddrs.h>
+ #include <resolv.h>
+ #include <stdio.h>
+ #include <sys/types.h>