toolchain/external: bump Linaro ARMeb to 2016.05 for i686 hosts
[buildroot-gz.git] / package / cups / cups.mk
blob2f8a18ec259f2dff1ac017b85a630fd34d3581e4
1 ################################################################################
3 # cups
5 ################################################################################
7 CUPS_VERSION = 2.1.4
8 CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.gz
9 CUPS_SITE = https://github.com/apple/cups/releases/download/release-$(CUPS_VERSION)
10 CUPS_LICENSE = GPLv2 LGPLv2
11 CUPS_LICENSE_FILES = LICENSE.txt
12 CUPS_INSTALL_STAGING = YES
13 CUPS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) DSTROOT=$(STAGING_DIR) install
14 CUPS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) DSTROOT=$(TARGET_DIR) install
16 # Using autoconf, not autoheader, so we cannot use AUTORECONF = YES.
17 define CUPS_RUN_AUTOCONF
18 cd $(@D); $(HOST_DIR)/usr/bin/autoconf -f
19 endef
20 CUPS_PRE_CONFIGURE_HOOKS += CUPS_RUN_AUTOCONF
22 CUPS_CONF_OPTS = \
23 --without-perl \
24 --without-java \
25 --without-php \
26 --disable-gssapi \
27 --libdir=/usr/lib
28 CUPS_CONFIG_SCRIPTS = cups-config
29 CUPS_DEPENDENCIES = \
30 host-autoconf \
31 $(if $(BR2_PACKAGE_ZLIB),zlib)
33 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
34 CUPS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system \
35 --enable-systemd
36 CUPS_DEPENDENCIES += systemd
37 else
38 CUPS_CONF_OPTS += --disable-systemd
39 endif
41 ifeq ($(BR2_PACKAGE_DBUS),y)
42 CUPS_CONF_OPTS += --enable-dbus
43 CUPS_DEPENDENCIES += dbus
44 else
45 CUPS_CONF_OPTS += --disable-dbus
46 endif
48 ifeq ($(BR2_PACKAGE_GNUTLS),y)
49 CUPS_CONF_OPTS += --enable-gnutls
50 CUPS_DEPENDENCIES += gnutls
51 else
52 CUPS_CONF_OPTS += --disable-gnutls
53 endif
55 ifeq ($(BR2_PACKAGE_PYTHON),y)
56 CUPS_CONF_OPTS += --with-python
57 CUPS_DEPENDENCIES += python
58 else
59 CUPS_CONF_OPTS += --without-python
60 endif
62 ifeq ($(BR2_PACKAGE_LIBUSB),y)
63 CUPS_CONF_OPTS += --enable-libusb
64 CUPS_DEPENDENCIES += libusb
65 else
66 CUPS_CONF_OPTS += --disable-libusb
67 endif
69 ifeq ($(BR2_PACKAGE_LIBPAPER),y)
70 CUPS_CONF_OPTS += --enable-libpaper
71 CUPS_DEPENDENCIES += libpaper
72 else
73 CUPS_CONF_OPTS += --disable-libpaper
74 endif
76 ifeq ($(BR2_PACKAGE_AVAHI),y)
77 CUPS_DEPENDENCIES += avahi
78 CUPS_CONF_OPTS += --enable-avahi
79 else
80 CUPS_CONF_OPTS += --disable-avahi
81 endif
83 $(eval $(autotools-package))