]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/cups-filters/cups-filters.mk
fd21bff6d489c3b4d5b0782e31caf55b534c53a8
[coffee/buildroot.git] / package / cups-filters / cups-filters.mk
1 ################################################################################
2 #
3 # cups-filters
4 #
5 ################################################################################
6
7 CUPS_FILTERS_VERSION = 1.20.1
8 CUPS_FILTERS_SITE = http://openprinting.org/download/cups-filters
9 CUPS_FILTERS_LICENSE = GPL-2.0, GPL-2.0+, GPL-3.0, GPL-3.0+, LGPL-2, LGPL-2.1+, MIT, BSD-4-Clause
10 CUPS_FILTERS_LICENSE_FILES = COPYING
11
12 CUPS_FILTERS_DEPENDENCIES = cups libglib2 lcms2 qpdf fontconfig freetype jpeg
13
14 CUPS_FILTERS_CONF_OPTS = --disable-imagefilters \
15         --disable-mutool \
16         --disable-foomatic \
17         --with-cups-config=$(STAGING_DIR)/usr/bin/cups-config \
18         --with-sysroot=$(STAGING_DIR) \
19         --with-pdftops=pdftops \
20         --with-jpeg
21
22 ifeq ($(BR2_PACKAGE_LIBPNG),y)
23 CUPS_FILTERS_CONF_OPTS += --with-png
24 CUPS_FILTERS_DEPENDENCIES += libpng
25 else
26 CUPS_FILTERS_CONF_OPTS += --without-png
27 endif
28
29 ifeq ($(BR2_PACKAGE_TIFF),y)
30 CUPS_FILTERS_CONF_OPTS += --with-tiff
31 CUPS_FILTERS_DEPENDENCIES += tiff
32 else
33 CUPS_FILTERS_CONF_OPTS += --without-tiff
34 endif
35
36 ifeq ($(BR2_PACKAGE_DBUS),y)
37 CUPS_FILTERS_CONF_OPTS += --enable-dbus
38 CUPS_FILTERS_DEPENDENCIES += dbus
39 else
40 CUPS_FILTERS_CONF_OPTS += --disable-dbus
41 endif
42
43 ifeq ($(BR2_PACKAGE_AVAHI),y)
44 CUPS_FILTERS_DEPENDENCIES += avahi
45 CUPS_FILTERS_CONF_OPTS += --enable-avahi
46 else
47 CUPS_FILTERS_CONF_OPTS += --disable-avahi
48 endif
49
50 ifeq ($(BR2_PACKAGE_GHOSTSCRIPT),y)
51 CUPS_FILTERS_DEPENDENCIES += ghostscript
52 CUPS_FILTERS_CONF_OPTS += --enable-ghostscript
53 else
54 CUPS_FILTERS_CONF_OPTS += --disable-ghostscript
55 endif
56
57 ifeq ($(BR2_PACKAGE_IJS),y)
58 CUPS_FILTERS_DEPENDENCIES += ijs
59 CUPS_FILTERS_CONF_OPTS += --enable-ijs
60 else
61 CUPS_FILTERS_CONF_OPTS += --disable-ijs
62 endif
63
64 ifeq ($(BR2_PACKAGE_POPPLER),y)
65 CUPS_FILTERS_DEPENDENCIES += poppler
66 CUPS_FILTERS_CONF_OPTS += --enable-poppler
67 else
68 CUPS_FILTERS_CONF_OPTS += --disable-poppler
69 endif
70
71 $(eval $(autotools-package))