]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
cups-filters: new package
authorOlivier Schonken <olivier.schonken@gmail.com>
Mon, 23 Oct 2017 13:26:11 +0000 (15:26 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 8 Jan 2018 22:35:56 +0000 (23:35 +0100)
Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
[Thomas:
 - add missing select BR2_PACKAGE_JPEG
 - use jpeg instead of libjpeg
 - sort selects alphabetically
 - fix Config.in comment dependencies.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Config.in.legacy
DEVELOPERS
package/Config.in
package/cups-filters/Config.in [new file with mode: 0644]
package/cups-filters/cups-filters.hash [new file with mode: 0644]
package/cups-filters/cups-filters.mk [new file with mode: 0644]

index 1833c7246b84743fd0364ca08cd720bb089ad19c..adcf992f4c9159a8bdd325eb3011062edc016998 100644 (file)
@@ -1345,6 +1345,7 @@ config BR2_LINUX_KERNEL_SAME_AS_HEADERS
 
 config BR2_PACKAGE_CUPS_PDFTOPS
        bool "Pdftops support has been removed from Cups"
+       select BR2_PACKAGE_CUPS_FILTERS
        select BR2_LEGACY
        help
          Pdftops support has been removed from the cups package
index 18271c212f12648b7bb535d227ee8fb084377ed0..2f7d051e8a98593c366b68df804bf6fa0e8bdbdc 100644 (file)
@@ -1304,6 +1304,7 @@ F:        package/python-pyelftools/
 
 N:     Olivier Schonken <olivier.schonken@gmail.com>
 F:     package/cups/
+F:     package/cups-filters/
 F:     package/ijs/
 F:     package/poppler/
 F:     package/qpdf/
index 907c1c58e1b1dad494839b24ae1fae6ee789f7af..01f4095be5aa489e710c40a1a179bbc028e4a578 100644 (file)
@@ -1649,6 +1649,7 @@ menu "Networking applications"
        source "package/crda/Config.in"
        source "package/ctorrent/Config.in"
        source "package/cups/Config.in"
+       source "package/cups-filters/Config.in"
        source "package/dante/Config.in"
        source "package/darkhttpd/Config.in"
        source "package/dhcp/Config.in"
diff --git a/package/cups-filters/Config.in b/package/cups-filters/Config.in
new file mode 100644 (file)
index 0000000..623ff71
--- /dev/null
@@ -0,0 +1,36 @@
+config BR2_PACKAGE_CUPS_FILTERS
+       bool "cups-filters"
+       # needs fork()
+       depends on BR2_USE_MMU
+       depends on BR2_INSTALL_LIBSTDCPP # qpdf
+       depends on !BR2_STATIC_LIBS
+       depends on BR2_USE_WCHAR # libglib2
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+       depends on BR2_PACKAGE_CUPS
+       select BR2_PACKAGE_JPEG
+       select BR2_PACKAGE_FONTCONFIG
+       select BR2_PACKAGE_FREETYPE
+       select BR2_PACKAGE_LCMS2
+       select BR2_PACKAGE_LIBGLIB2
+       select BR2_PACKAGE_QPDF
+       help
+         This project provides 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 to make these
+         printers available locally and to provide backward
+         compatibility to the old CUPS broadcasting and browsing of
+         CUPS 1.5.x and older.  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.
+
+         http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
+
+comment "cups-filters needs a toolchain w/ wchar, C++, threads and dynamic library"
+       depends on BR2_USE_MMU
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+               !BR2_USE_WCHAR || BR2_STATIC_LIBS
diff --git a/package/cups-filters/cups-filters.hash b/package/cups-filters/cups-filters.hash
new file mode 100644 (file)
index 0000000..da9d31c
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 95254d7950df4c74d293ed7dfa0b714f51cff329a82da74a4ac976d342bb35ab  cups-filters-1.17.9.tar.gz
diff --git a/package/cups-filters/cups-filters.mk b/package/cups-filters/cups-filters.mk
new file mode 100644 (file)
index 0000000..6d05aa7
--- /dev/null
@@ -0,0 +1,71 @@
+################################################################################
+#
+# cups-filters
+#
+################################################################################
+
+CUPS_FILTERS_VERSION = 1.17.9
+CUPS_FILTERS_SITE = http://openprinting.org/download/cups-filters
+CUPS_FILTERS_LICENSE = GPL-2.0, GPL-2.0+, GPL-3.0, GPL-3.0+, LGPL-2, LGPL-2.1+, MIT, BSD-4-Clause
+CUPS_FILTERS_LICENSE_FILES = COPYING
+
+CUPS_FILTERS_DEPENDENCIES = cups libglib2 lcms2 qpdf fontconfig freetype jpeg
+
+CUPS_FILTERS_CONF_OPTS = --disable-imagefilters \
+       --disable-mutool \
+       --disable-foomatic \
+       --with-cups-config=$(STAGING_DIR)/usr/bin/cups-config \
+       --with-sysroot=$(STAGING_DIR) \
+       --with-pdftops=pdftops \
+       --with-jpeg
+
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+CUPS_FILTERS_CONF_OPTS += --with-png
+CUPS_FILTERS_DEPENDENCIES += libpng
+else
+CUPS_FILTERS_CONF_OPTS += --without-png
+endif
+
+ifeq ($(BR2_PACKAGE_TIFF),y)
+CUPS_FILTERS_CONF_OPTS += --with-tiff
+CUPS_FILTERS_DEPENDENCIES += tiff
+else
+CUPS_FILTERS_CONF_OPTS += --without-tiff
+endif
+
+ifeq ($(BR2_PACKAGE_DBUS),y)
+CUPS_FILTERS_CONF_OPTS += --enable-dbus
+CUPS_FILTERS_DEPENDENCIES += dbus
+else
+CUPS_FILTERS_CONF_OPTS += --disable-dbus
+endif
+
+ifeq ($(BR2_PACKAGE_AVAHI),y)
+CUPS_FILTERS_DEPENDENCIES += avahi
+CUPS_FILTERS_CONF_OPTS += --enable-avahi
+else
+CUPS_FILTERS_CONF_OPTS += --disable-avahi
+endif
+
+ifeq ($(BR2_PACKAGE_GHOSTSCRIPT),y)
+CUPS_FILTERS_DEPENDENCIES += ghostscript
+CUPS_FILTERS_CONF_OPTS += --enable-ghostscript
+else
+CUPS_FILTERS_CONF_OPTS += --disable-ghostscript
+endif
+
+ifeq ($(BR2_PACKAGE_IJS),y)
+CUPS_FILTERS_DEPENDENCIES += ijs
+CUPS_FILTERS_CONF_OPTS += --enable-ijs
+else
+CUPS_FILTERS_CONF_OPTS += --disable-ijs
+endif
+
+ifeq ($(BR2_PACKAGE_POPPLER),y)
+CUPS_FILTERS_DEPENDENCIES += poppler
+CUPS_FILTERS_CONF_OPTS += --enable-poppler
+else
+CUPS_FILTERS_CONF_OPTS += --disable-poppler
+endif
+
+$(eval $(autotools-package))