Fixes: http://autobuild.buildroot.net/results/d06/d06f908cbe80340312bdfe1b75cb577b68cd46d8/ 0001-install-support-old-ln-versions-without-the-r-option.patch adds a ln-srf script for older distributions to emulate 'ln -r', but GNU patch < 2.7 does not handle the git patch permission extensions - So ensure it is executable. https://savannah.gnu.org/forum/forum.php?forum_id=7361 Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Reviewed-by: Carlos Santos <unixmania@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
94 lines
2.7 KiB
Makefile
94 lines
2.7 KiB
Makefile
################################################################################
|
|
#
|
|
# cups-filters
|
|
#
|
|
################################################################################
|
|
|
|
CUPS_FILTERS_VERSION = 1.21.3
|
|
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
|
|
# 0001-install-support-old-ln-versions-without-the-r-option.patch
|
|
CUPS_FILTERS_AUTORECONF = YES
|
|
|
|
CUPS_FILTERS_DEPENDENCIES = cups libglib2 lcms2 qpdf fontconfig freetype jpeg
|
|
|
|
CUPS_FILTERS_CONF_OPTS = --disable-imagefilters \
|
|
--disable-mutool \
|
|
--disable-foomatic \
|
|
--disable-braille \
|
|
--with-cups-config=$(STAGING_DIR)/usr/bin/cups-config \
|
|
--with-sysroot=$(STAGING_DIR) \
|
|
--with-pdftops=pdftops \
|
|
--with-jpeg
|
|
|
|
# 0001-install-support-old-ln-versions-without-the-r-option.patch adds
|
|
# a ln-srf script for older distributions, but GNU patch < 2.7 does
|
|
# not handle the git patch permission extensions - So ensure it is
|
|
# executable
|
|
define CUPS_FILTERS_MAKE_LN_SRF_EXECUTABLE
|
|
chmod +x $(@D)/ln-srf
|
|
endef
|
|
|
|
CUPS_FILTERS_POST_PATCH_HOOKS += CUPS_FILTERS_MAKE_LN_SRF_EXECUTABLE
|
|
|
|
# After 0002-filter-texttotext.c-link-with-libiconv-if-needed.patch autoreconf
|
|
# needs config.rpath and ABOUT-NLS, which are not in v1.25.4 yet. Fake them.
|
|
define CUPS_FILTERS_ADD_MISSING_FILE
|
|
touch $(@D)/config.rpath $(@D)/ABOUT-NLS
|
|
endef
|
|
|
|
CUPS_FILTERS_PRE_CONFIGURE_HOOKS = CUPS_FILTERS_ADD_MISSING_FILE
|
|
|
|
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
|
|
|
|
# avahi support requires avahi-client, which needs avahi-daemon and dbus
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
|
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))
|