1################################################################################ 2# 3# cups-filters 4# 5################################################################################ 6 7CUPS_FILTERS_VERSION = 1.28.9 8CUPS_FILTERS_SITE = http://openprinting.org/download/cups-filters 9CUPS_FILTERS_LICENSE = GPL-2.0, GPL-2.0+, GPL-3.0, GPL-3.0+, LGPL-2, LGPL-2.1+, MIT, BSD-4-Clause 10CUPS_FILTERS_LICENSE_FILES = COPYING 11CUPS_FILTERS_CPE_ID_VENDOR = linuxfoundation 12 13CUPS_FILTERS_DEPENDENCIES = cups libglib2 lcms2 qpdf fontconfig freetype jpeg 14 15CUPS_FILTERS_CONF_OPTS = \ 16 --disable-mutool \ 17 --disable-foomatic \ 18 --disable-braille \ 19 --enable-imagefilters \ 20 --with-cups-config=$(STAGING_DIR)/usr/bin/cups-config \ 21 --with-sysroot=$(STAGING_DIR) \ 22 --with-pdftops=pdftops \ 23 --with-jpeg \ 24 --with-test-font-path=/dev/null \ 25 --without-rcdir 26 27ifeq ($(BR2_PACKAGE_LIBPNG),y) 28CUPS_FILTERS_CONF_OPTS += --with-png 29CUPS_FILTERS_DEPENDENCIES += libpng 30else 31CUPS_FILTERS_CONF_OPTS += --without-png 32endif 33 34ifeq ($(BR2_PACKAGE_TIFF),y) 35CUPS_FILTERS_CONF_OPTS += --with-tiff 36CUPS_FILTERS_DEPENDENCIES += tiff 37else 38CUPS_FILTERS_CONF_OPTS += --without-tiff 39endif 40 41ifeq ($(BR2_PACKAGE_DBUS),y) 42CUPS_FILTERS_CONF_OPTS += --enable-dbus 43CUPS_FILTERS_DEPENDENCIES += dbus 44else 45CUPS_FILTERS_CONF_OPTS += --disable-dbus 46endif 47 48# avahi support requires avahi-client, which needs avahi-daemon and dbus 49ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy) 50CUPS_FILTERS_DEPENDENCIES += avahi 51CUPS_FILTERS_CONF_OPTS += --enable-avahi 52else 53CUPS_FILTERS_CONF_OPTS += --disable-avahi 54endif 55 56ifeq ($(BR2_PACKAGE_GHOSTSCRIPT),y) 57CUPS_FILTERS_DEPENDENCIES += ghostscript 58CUPS_FILTERS_CONF_OPTS += --enable-ghostscript 59else 60CUPS_FILTERS_CONF_OPTS += --disable-ghostscript 61endif 62 63ifeq ($(BR2_PACKAGE_IJS),y) 64CUPS_FILTERS_DEPENDENCIES += ijs 65CUPS_FILTERS_CONF_OPTS += --enable-ijs 66else 67CUPS_FILTERS_CONF_OPTS += --disable-ijs 68endif 69 70ifeq ($(BR2_PACKAGE_POPPLER),y) 71CUPS_FILTERS_DEPENDENCIES += poppler 72CUPS_FILTERS_CONF_OPTS += --enable-poppler 73else 74CUPS_FILTERS_CONF_OPTS += --disable-poppler 75endif 76 77define CUPS_FILTERS_INSTALL_INIT_SYSV 78 $(INSTALL) -D -m 0755 package/cups-filters/S82cups-browsed \ 79 $(TARGET_DIR)/etc/init.d/S82cups-browsed 80endef 81 82define CUPS_FILTERS_INSTALL_INIT_SYSTEMD 83 $(INSTALL) -D -m 0755 $(@D)/utils/cups-browsed.service \ 84 $(TARGET_DIR)/usr/lib/systemd/system/cups-browsed.service 85endef 86 87$(eval $(autotools-package)) 88