python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / cups / cups.mk
blobae3b9caae07e45bc0575ee32a8046600d5ea708e
1 ################################################################################
3 # cups
5 ################################################################################
7 CUPS_VERSION = 2.2.2
8 CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.gz
9 CUPS_SITE = https://github.com/apple/cups/releases/download/v$(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 host-pkgconf \
32 $(if $(BR2_PACKAGE_ZLIB),zlib)
34 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
35 CUPS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system \
36 --enable-systemd
37 CUPS_DEPENDENCIES += systemd
38 else
39 CUPS_CONF_OPTS += --disable-systemd
40 endif
42 ifeq ($(BR2_PACKAGE_DBUS),y)
43 CUPS_CONF_OPTS += --enable-dbus
44 CUPS_DEPENDENCIES += dbus
45 else
46 CUPS_CONF_OPTS += --disable-dbus
47 endif
49 ifeq ($(BR2_PACKAGE_GNUTLS),y)
50 CUPS_CONF_OPTS += --enable-gnutls
51 CUPS_DEPENDENCIES += gnutls
52 else
53 CUPS_CONF_OPTS += --disable-gnutls
54 endif
56 ifeq ($(BR2_PACKAGE_PYTHON),y)
57 CUPS_CONF_OPTS += --with-python
58 CUPS_DEPENDENCIES += python
59 else
60 CUPS_CONF_OPTS += --without-python
61 endif
63 ifeq ($(BR2_PACKAGE_LIBUSB),y)
64 CUPS_CONF_OPTS += --enable-libusb
65 CUPS_DEPENDENCIES += libusb
66 else
67 CUPS_CONF_OPTS += --disable-libusb
68 endif
70 ifeq ($(BR2_PACKAGE_LIBPAPER),y)
71 CUPS_CONF_OPTS += --enable-libpaper
72 CUPS_DEPENDENCIES += libpaper
73 else
74 CUPS_CONF_OPTS += --disable-libpaper
75 endif
77 ifeq ($(BR2_PACKAGE_AVAHI),y)
78 CUPS_DEPENDENCIES += avahi
79 CUPS_CONF_OPTS += --enable-avahi
80 else
81 CUPS_CONF_OPTS += --disable-avahi
82 endif
84 $(eval $(autotools-package))