cups-filters-1.0.65

Introduction to CUPS Filters

The CUPS Filters package contains backends, filters and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc.

This package is known to build and work properly using an LFS-7.7 systemd platform.

Package Information

CUPS Filters Dependencies

Required

Cups-2.0.2, GLib-2.42.1, IJS-0.35, Little CMS-2.6, Poppler-0.31.0 and Qpdf-5.1.2

Recommended

Optional

Avahi-0.6.31, PHP-5.6.6 (use of this might be broken) and acroread

Required (Runtime)

ghostscript-9.15 (Needed for PostScript printers), or Gutenprint-5.2.10 (for supported printers), or other printer drivers

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cups-filters

Installation of CUPS Filters

First, fix the systemd unit file to work with CUPS 2.0 and later:

sed -i "s:cups.service:org.cups.cupsd.service:g" utils/cups-browsed.service

Fix a build failure when using Poppler 0.31.0 and later:

sed -i "s:globalParams->getAntialias():gFalse:g" filter/pdftoopvp/OPVPOutputDev.cxx     &&
sed -i "/paperColor,g/s:gTrue,gFalse:gTrue:" filter/pdftoijs.cxx filter/pdftoraster.cxx &&
sed -i "/setAntialias/d" filter/pdftoopvp/pdftoopvp.cxx

Install CUPS Filters by running the following commands:

./configure --prefix=/usr                   \
            --sysconfdir=/etc               \
            --localstatedir=/var            \
            --without-rcdir                 \
            --disable-static                \
            --with-gs-path=/usr/bin/gs      \
            --with-pdftops-path=/usr/bin/gs \
            --docdir=/usr/share/doc/cups-filters-1.0.65 &&
make

To test the results, issue: make check.

Now, as the root user:

make install

Install the systemd unit by running the following command as the root user:

install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service

Command Explanations

--without-rcdir: This switch disables installation of the bundled bootscript which is not compatible with BLFS.

--with-gs-path=/usr/bin/gs: This switch defines the path to the GhostScript binary in case ghostscript-9.15 is not installed at build time.

--with-pdftops-path=/usr/bin/gs: This switch defines the path to the GhostScript binary in case ghostscript-9.15 is not installed at build time.

--disable-static: This switch prevents installation of static versions of the libraries.

Configuring Cups Filters

Systemd Units

To start the cups-browsed daemon at boot, enable the previously installed systemd unit by running the following command as the root user:

systemctl enable cups-browsed

Contents

Installed Programs: ttfread and cups-browsed
Installed Libraries: libcupsfilters.so and libfontembed.so
Installed Directories: /usr/include/cupsfilters, /usr/include/fontembed, /usr/lib/cups/backend, /usr/lib/cups/filter, /usr/share/cups/banners, /usr/share/cups/charsets, /usr/share/cups/data, /usr/share/doc/cups-filters-1.0.65 and /usr/share/ppd/cupsfilters

Short Descriptions

libcupsfilters.so

contains CUPS Filters API functions.

Last updated on 2014-10-30 00:41:19 +0100