pkgsrc/print/cups-filters/Makefile
markd e75f8445e1 cups-filters: update to 1.28.15
CHANGES IN V1.28.15

- pdftops: In pdftops identify old LaserJets more precisely
  for working around PostScript interpreter bugs, older
  printers need Poppler, newer models need Ghostscript

CHANGES IN V1.28.14

- pdftopdf: Correct the output when suppressing auto-rotation
  (option "nopdfAutoRotate"). Depending on the situation pages
  got cropped in the wrong orientation or de-centered.
- pdftopdf: Correct the output when the
  "orientation-requested" or the "landscape" option is
  supplied. Output could be de-centered,
  portrait-oriented pages be wrongly cropped and division of
  the output page into cells for N-up done in the wrong
  orientation.
- rastertopdf: In PCLm output mode the filter failed to
  generate PCLm if the printer has no
  "pclm-source-resolution-default" IPP attribute.

CHANGES IN V1.28.13

- pdftopdf: Fix N-up printing when paper is taken
  long-edge-first by the printer.
- pdftopdf: Fix cropping ("print-scaling=none" and
  "print-scaling=fill") when paper is taken long-edge-first by
  the printer.
- pdftops: Use Poppler for all Apple LaserWriter models.

CHANGES IN V1.28.12

- imagetoraster, imagetopdf: Fixed comparison of the image
  size with the page size for print-scaling=auto. The image
  size in pixels was compared with the page size in PostScript
  points (1/72 inch).
- imagetoraster, imagetopdf: Fixed the "print-scaling=none"
  (crop-to-fit) mode, also use crop-to-fit always when
  requested, do not fall back to fit-to-page when the image
  size differs significantly from the page size.
- libcupsfilters: Changed the default PPI resolution for
  images as input files from 128 to 200.
- implicitclass: Do not check availability of "gs" and
  "pdftops" executables, instead, check by the presence of
  "gstoraster" and "pdftoraster" filters whether we have
  configured cups-filters for Ghostscript and/or Poppler use.
- libcupsfilters: In the PPD generator for the driverless
  utility and cups-browsed add "*cupsFilter2: ..." lines for
  all supported driverless data formats (PDF, Apple/PWG
  Raster, PCLm), and add lines for legacy data formats (PCL,
  PostScript) only if no driverless formats available.
- libcupsfilters: Always use encryption for ipps. RFC7472
  requires that 'ipps' must be used over HTTPS, but the
  driverless utility does not enforce encryption.
- serial: Add a 10-msec sleep and at the end add a tcdrain().
  For some unknown reason, every printing file need sleep a
  little time to make sure the serial printer receive data is
  right.
- libcupsfilters: Fix resolver functions for DNS-SD-based
  URIs, to make resolve_uri() also work when DEVICE_URI env
  variable is set and to make ippfind_based_uri_converter()
  not re-direct stdin.
- pdftopdf: Set default for print-scaling to avoid "should
  never happem" log messages and undefined behavior.
- pdftopdf: Fix orientation-requested = 0. Consider
  this as "automatic selection and not as error.
- pdftopdf: Fixed all combinations of print-scaling and
  number-up for printers with asymmetric margins (top !=
  bottom or left != right) and for input files containing
  pages with different sizes and/or orientations. Fixes
  backported from 2.x branch.
- pdftopdf: Add 2% tolerance for input size larger than output
  page when "print-scaling=auto" or "print-scaling=auto-fit"
  is used and too large input pages should be scaled, fitting
  documents not. This prevents a random-looking behavior if
  input and output page size seem to be equal, but in reality
  there are slight differences between size dimensions.

CHANGES IN V1.28.11

- libcupsfilters: Let PPD generator take default ColorModel
  from printer.
- Braille: In vectortopdf check inkscape version to call
  inkscape with the correct command line.
- Build system: Make missing DejaVuSans.ttf non-fatal in
  ./configure as the font is only needed for test programs,
  not for actual use of cups-filters.
- libcupsfilters: In imagetoraster() fixed crash with SGray.
- cups-browsed: Naming of local queues is matched to CUPS'
  current naming of temporary queues (no leading or trailing
  underscores), to avoid duplicates in print dialogs which
  support CUPS' temporary queues.
- libcupsfilters: Make cupsRasterParseIPPOptions() work correctly
  with PPDs (Issue #436).
- libcupsfilters: Let colord_get_profile_for_device_id() not
  return empty file name, to avoid error messages in CUPS
  error_log.
- foomatic-rip: Debug message was wrongly sent to stdout and
  not to log
2022-05-10 20:57:35 +00:00

96 lines
3.5 KiB
Makefile

# $NetBSD: Makefile,v 1.162 2022/05/10 20:57:35 markd Exp $
DISTNAME= cups-filters-1.28.15
CATEGORIES= print
MASTER_SITES= http://openprinting.org/download/cups-filters/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
COMMENT= Backends, filters, and other software for cups
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND mit
# https://github.com/OpenPrinting/cups-filters/issues/411
DEPENDS+= dejavu-ttf-[0-9]*:../../fonts/dejavu-ttf
DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
USE_LANGUAGES= c c++11
USE_LIBTOOL= yes
USE_TOOLS+= bash:run pkg-config gmake gdbus-codegen
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --disable-braille
CONFIGURE_ARGS+= --disable-ldap
CONFIGURE_ARGS+= --disable-mutool
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-apple-raster-filter=rastertopdf
CONFIGURE_ARGS+= --with-gs-path=${PREFIX}/bin/gs
CONFIGURE_ARGS+= --with-pdftops-path=${PREFIX}/bin/pdftops
CONFIGURE_ARGS+= --with-shell=${TOOLS_PATH.bash}
CONFIGURE_ARGS+= --with-test_font_path=${PREFIX}/share/fonts/X11/TTF/DejaVuSans.ttf
PKGCONFIG_OVERRIDE+= libcupsfilters.pc.in
PKGCONFIG_OVERRIDE+= libfontembed.pc.in
CONFLICTS+= cups<1.6
REPLACE_BASH+= filter/braille/drivers/generic/brftoembosser.in
REPLACE_BASH+= filter/braille/drivers/index/imageubrltoindexv3.in
REPLACE_BASH+= filter/braille/drivers/index/imageubrltoindexv4.in
REPLACE_BASH+= filter/braille/drivers/index/textbrftoindexv3.in
REPLACE_BASH+= filter/braille/filters/brftopagedbrf.in
REPLACE_BASH+= filter/braille/filters/imagetobrf.in
REPLACE_BASH+= filter/braille/filters/texttobrf.in
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
CFLAGS+= -framework IOKit
.endif
CPPFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
BUILD_DEFS+= VARBASE
RCD_SCRIPTS= cups-browsed
CONF_FILES+= ${PREFIX}/share/examples/cups-filters/cups-browsed.conf ${PKG_SYSCONFDIR}/cups/cups-browsed.conf
TEST_TARGET= check
post-extract:
${CP} ${FILESDIR}/cups-browsed-daemonize.sh ${WRKSRC}
SUBST_CLASSES+= daemonize
SUBST_STAGE.daemonize= pre-configure
SUBST_MESSAGE.daemonize= Customizing daemonizing script
SUBST_FILES.daemonize= cups-browsed-daemonize.sh
SUBST_VARS.daemonize= PREFIX VARBASE
INSTALLATION_DIRS+= share/examples/cups-filters
post-install:
${MV} ${DESTDIR}${PKG_SYSCONFDIR}/cups/cups-browsed.conf \
${DESTDIR}${PREFIX}/share/examples/cups-filters/cups-browsed.conf
# backends that need root access should not have world read and execute permissions
${CHMOD} go-rwx ${DESTDIR}${PREFIX}/libexec/cups/backend/parallel
${CHMOD} go-rwx ${DESTDIR}${PREFIX}/libexec/cups/backend/serial
${INSTALL_SCRIPT} ${WRKSRC}/cups-browsed-daemonize.sh ${DESTDIR}${PREFIX}/libexec/cups-browsed
.include "options.mk"
.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 "../../print/cups-base/buildlink3.mk"
.include "../../print/ghostscript/buildlink3.mk"
.include "../../print/ijs/buildlink3.mk"
.include "../../print/poppler-cpp/buildlink3.mk"
.include "../../print/poppler-glib/buildlink3.mk"
.include "../../print/poppler-includes/buildlink3.mk"
.include "../../print/qpdf/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"