2017-10-23 15:26:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cups-filters
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-12-01 22:30:53 +01:00
|
|
|
CUPS_FILTERS_VERSION = 1.28.4
|
2017-10-23 15:26:11 +02:00
|
|
|
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
|
|
|
|
|
2020-05-01 17:55:24 +02:00
|
|
|
CUPS_FILTERS_CONF_OPTS = \
|
2017-10-23 15:26:11 +02:00
|
|
|
--disable-mutool \
|
|
|
|
--disable-foomatic \
|
2019-09-29 03:49:00 +02:00
|
|
|
--disable-braille \
|
2020-05-01 17:55:24 +02:00
|
|
|
--enable-imagefilters \
|
2017-10-23 15:26:11 +02:00
|
|
|
--with-cups-config=$(STAGING_DIR)/usr/bin/cups-config \
|
|
|
|
--with-sysroot=$(STAGING_DIR) \
|
|
|
|
--with-pdftops=pdftops \
|
2020-06-24 22:43:41 +02:00
|
|
|
--with-jpeg \
|
2020-07-14 16:34:02 +02:00
|
|
|
--with-test-font-path=/dev/null \
|
2020-06-24 22:43:41 +02:00
|
|
|
--without-rcdir
|
2017-10-23 15:26:11 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-05-10 11:35:00 +02:00
|
|
|
# avahi support requires avahi-client, which needs avahi-daemon and dbus
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
2017-10-23 15:26:11 +02:00
|
|
|
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
|
|
|
|
|
2020-06-24 22:43:41 +02:00
|
|
|
define CUPS_FILTERS_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/cups-filters/S82cups-browsed \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S82cups-browsed
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CUPS_FILTERS_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/utils/cups-browsed.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/cups-browsed.service
|
|
|
|
endef
|
|
|
|
|
2017-10-23 15:26:11 +02:00
|
|
|
$(eval $(autotools-package))
|