mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <r.hieber@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <r.hieber@pengutronix.de>
Subject: [ptxdist] [PATCH v4 7/7] cups-filters: new package: additional filters and backends for CUPS
Date: Tue,  7 Nov 2017 17:40:25 +0100	[thread overview]
Message-ID: <20171107164025.31443-7-r.hieber@pengutronix.de> (raw)
In-Reply-To: <20171107164025.31443-1-r.hieber@pengutronix.de>

Filters for a PDF-based printing workflow, and more backends for widely
available printing protocols. No PostScript and Foomatic support (yet)
because we are missing the respective dependencies in PTXdist.

Release frequency is high, with mostly small changes per release.

Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
---

Notes:
    changes in v3 -> v4:
     - install libs as mode 0644, not 0755

 rules/cups-filters.in   | 73 +++++++++++++++++++++++++++++++++++++++
 rules/cups-filters.make | 90 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 163 insertions(+)
 create mode 100644 rules/cups-filters.in
 create mode 100644 rules/cups-filters.make

diff --git a/rules/cups-filters.in b/rules/cups-filters.in
new file mode 100644
index 000000000..b385d60cf
--- /dev/null
+++ b/rules/cups-filters.in
@@ -0,0 +1,73 @@
+## SECTION=applications
+
+menuconfig CUPS_FILTERS
+	tristate
+	prompt "cups-filters                  "
+
+	select LIBC_DL
+	select HOST_CUPS
+	select CUPS
+	select GLIB
+	select ZLIB
+	select LCMS
+	select FREETYPE
+	select FONTCONFIG
+	select QPDF
+
+	# Note: configure does not check for these poppler options:
+	select POPPLER			if CUPS_FILTERS_POPPLER
+	select POPPLER_BIN		if CUPS_FILTERS_POPPLER # for pdftops
+	select POPPLER_CPP		if CUPS_FILTERS_POPPLER
+	select POPPLER_CMS		if CUPS_FILTERS_POPPLER
+	select POPPLER_SPLASH		if CUPS_FILTERS_POPPLER
+	select POPPLER_XPDF		if CUPS_FILTERS_POPPLER
+
+	select LIBJPEG			if CUPS_FILTERS_JPEG
+	select LIBPNG			if CUPS_FILTERS_PNG
+
+	help
+	  cups-filters 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.
+
+if CUPS_FILTERS
+
+config CUPS_FILTERS_POPPLER
+	bool "build with poppler support"
+	help
+	  Build with poppler support, needed for pdfto* filters and banners.
+
+comment "poppler support will not build with POPPLER_SPLASH_FIXED!"
+	depends on (POPPLER_SPLASH_FIXED && CUPS_FILTERS_POPPLER)
+
+config CUPS_FILTERS_IMAGEFILTERS
+	bool "build image filters"
+	help
+	  Build imagetopdf and imagetoraster filters
+
+config CUPS_FILTERS_PCLM
+	bool "with PCLm support"
+	help
+	  Enable PCLm support for printing on Wi-Fi Direct printers via
+	  rastertopclm filter
+
+config CUPS_FILTERS_JPEG
+	bool "with JPEG support"
+	depends on CUPS_FILTERS_IMAGEFILTERS
+	default y
+	help
+	  Enable JPEG support in image filters
+
+config CUPS_FILTERS_PNG
+	bool "with PNG support"
+	depends on CUPS_FILTERS_IMAGEFILTERS
+	default y
+	help
+	  Enable PNG support in image filters
+
+endif
+# vim: ft=kconfig ts=8 noet tw=80
diff --git a/rules/cups-filters.make b/rules/cups-filters.make
new file mode 100644
index 000000000..ceac6a33d
--- /dev/null
+++ b/rules/cups-filters.make
@@ -0,0 +1,90 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Roland Hieber <r.hieber@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_CUPS_FILTERS) += cups-filters
+
+#
+# Paths and names
+#
+CUPS_FILTERS_VERSION	:= 1.17.9
+CUPS_FILTERS_MD5	:= 2ef5f2b902bcdcb963c5ef5858976bbc
+CUPS_FILTERS		:= cups-filters-$(CUPS_FILTERS_VERSION)
+CUPS_FILTERS_SUFFIX	:= tar.xz
+CUPS_FILTERS_URL	:= http://openprinting.org/download/cups-filters/$(CUPS_FILTERS).$(CUPS_FILTERS_SUFFIX)
+CUPS_FILTERS_SOURCE	:= $(SRCDIR)/$(CUPS_FILTERS).$(CUPS_FILTERS_SUFFIX)
+CUPS_FILTERS_DIR	:= $(BUILDDIR)/$(CUPS_FILTERS)
+CUPS_FILTERS_LICENSE	:= GPL-2.0 AND GPL-2.0+ AND GPL-3.0 AND GPL-3.0+ AND LGPL-2 AND LGPL-2.1+ AND MIT AND BSD-4-clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+CUPS_FILTERS_CONF_TOOL	:= autoconf
+CUPS_FILTERS_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-silent-rules \
+	--disable-driverless \
+	--disable-auto-setup-driverless \
+	--$(call ptx/endis,PTXCONF_CUPS_FILTERS_IMAGEFILTERS)-imagefilters \
+	--disable-avahi \
+	--disable-ldap \
+	--$(call ptx/endis,PTXCONF_CUPS_FILTERS_PCLM)-pclm \
+	--$(call ptx/endis,PTXCONF_CUPS_FILTERS_POPPLER)-poppler \
+	--disable-dbus \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--disable-mutool \
+	--disable-ghostscript \
+	--disable-ijs \
+	--disable-gs-ps2write \
+	--disable-foomatic \
+	--disable-werror \
+	--disable-braille \
+	--with-gnu-ld \
+	--with-cups-config=$(PTXDIST_SYSROOT_CROSS)/bin/cups-config \
+	--with-apple-raster-filter=rastertopdf \
+	--with-cups-rundir=/run \
+	--with-cups-domainsocket=/run/cups.sock \
+	--$(call ptx/wwo,PTXCONF_CUPS_FILTERS_JPEG)-jpeg \
+	--$(call ptx/wwo,PTXCONF_CUPS_FILTERS_PNG)-png \
+	--without-tiff \
+	--with-browseremoteprotocols="dnssd cups" \
+	--with-pdftops=pdftops
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/cups-filters.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, cups-filters)
+	@$(call install_fixup, cups-filters,PRIORITY,optional)
+	@$(call install_fixup, cups-filters,SECTION,base)
+	@$(call install_fixup, cups-filters,AUTHOR,"Roland Hieber <r.hieber@pengutronix.de>")
+	@$(call install_fixup, cups-filters,DESCRIPTION,missing)
+
+	@$(call install_lib, cups-filters, 0, 0, 0644, libcupsfilters)
+	@$(call install_lib, cups-filters, 0, 0, 0644, libfontembed)
+	@$(call install_tree, cups-filters, 0, 0, -, /usr/lib/cups/filter)
+	@$(call install_tree, cups-filters, 0, 0, -, /usr/lib/cups/backend)
+	@$(call install_tree, cups-filters, 0, 0, -, /usr/share/cups)
+	@$(call install_tree, cups-filters, 0, 0, -, /usr/share/ppd)
+
+	@$(call install_finish, cups-filters)
+
+	@$(call touch)
+
+# vim: ft=make ts=8 tw=80
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2017-11-07 16:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-07 16:40 [ptxdist] [PATCH v4 1/7] libpaper: new package: system-wide papersize configuration Roland Hieber
2017-11-07 16:40 ` [ptxdist] [PATCH v4 2/7] qpdf: new package: PDF inspection library and tools Roland Hieber
2017-11-07 16:40 ` [ptxdist] [PATCH v4 3/7] poppler-data: new package: optional encoding data for poppler Roland Hieber
2017-11-07 16:40 ` [ptxdist] [PATCH v4 4/7] poppler: version bump 0.18.0 -> 0.60.1 Roland Hieber
2017-11-07 16:40 ` [ptxdist] [PATCH v4 5/7] cups: new package: Common Unix Printing System Roland Hieber
2017-11-07 16:40 ` [ptxdist] [PATCH v4 6/7] host-cups: new package: CUPS host tools Roland Hieber
2017-11-07 16:40 ` Roland Hieber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171107164025.31443-7-r.hieber@pengutronix.de \
    --to=r.hieber@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox