2008-03-06 19:06:01 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cups
|
|
|
|
#
|
|
|
|
################################################################################
|
2012-05-01 08:20:24 +02:00
|
|
|
|
2018-04-29 15:51:23 +02:00
|
|
|
CUPS_VERSION = 2.2.7
|
2016-07-03 12:17:03 +02:00
|
|
|
CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.gz
|
2017-01-18 12:46:42 +01:00
|
|
|
CUPS_SITE = https://github.com/apple/cups/releases/download/v$(CUPS_VERSION)
|
2017-03-30 15:43:37 +02:00
|
|
|
CUPS_LICENSE = GPL-2.0, LGPL-2.0
|
2013-06-28 15:41:01 +02:00
|
|
|
CUPS_LICENSE_FILES = LICENSE.txt
|
2012-05-01 08:20:24 +02:00
|
|
|
CUPS_INSTALL_STAGING = YES
|
2014-09-27 21:32:41 +02:00
|
|
|
CUPS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) DSTROOT=$(STAGING_DIR) install
|
2014-09-27 21:32:40 +02:00
|
|
|
CUPS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) DSTROOT=$(TARGET_DIR) install
|
2016-01-20 23:17:43 +01:00
|
|
|
|
2016-05-29 19:38:23 +02:00
|
|
|
# Using autoconf, not autoheader, so we cannot use AUTORECONF = YES.
|
|
|
|
define CUPS_RUN_AUTOCONF
|
2017-07-05 13:14:19 +02:00
|
|
|
cd $(@D); $(HOST_DIR)/bin/autoconf -f
|
2016-05-29 19:38:23 +02:00
|
|
|
endef
|
|
|
|
CUPS_PRE_CONFIGURE_HOOKS += CUPS_RUN_AUTOCONF
|
|
|
|
|
2014-12-24 08:54:24 +01:00
|
|
|
CUPS_CONF_OPTS = \
|
|
|
|
--without-perl \
|
|
|
|
--without-java \
|
|
|
|
--without-php \
|
|
|
|
--disable-gssapi \
|
2018-04-30 21:19:16 +02:00
|
|
|
--disable-pam \
|
2014-12-24 08:54:24 +01:00
|
|
|
--libdir=/usr/lib
|
2013-02-07 13:35:05 +01:00
|
|
|
CUPS_CONFIG_SCRIPTS = cups-config
|
2014-12-24 08:54:24 +01:00
|
|
|
CUPS_DEPENDENCIES = \
|
2016-05-29 19:38:23 +02:00
|
|
|
host-autoconf \
|
2017-02-14 21:47:59 +01:00
|
|
|
host-pkgconf \
|
2016-01-20 23:17:43 +01:00
|
|
|
$(if $(BR2_PACKAGE_ZLIB),zlib)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
CUPS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system \
|
|
|
|
--enable-systemd
|
|
|
|
CUPS_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
CUPS_CONF_OPTS += --disable-systemd
|
|
|
|
endif
|
2012-05-01 14:13:01 +02:00
|
|
|
|
2008-03-06 19:06:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --enable-dbus
|
|
|
|
CUPS_DEPENDENCIES += dbus
|
2008-03-06 19:06:01 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --disable-dbus
|
2008-03-06 19:06:01 +01:00
|
|
|
endif
|
|
|
|
|
2016-01-20 23:17:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
CUPS_CONF_OPTS += --enable-gnutls
|
|
|
|
CUPS_DEPENDENCIES += gnutls
|
|
|
|
else
|
|
|
|
CUPS_CONF_OPTS += --disable-gnutls
|
2009-01-25 21:53:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --with-python
|
|
|
|
CUPS_DEPENDENCIES += python
|
2009-01-25 21:53:43 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --without-python
|
2008-03-06 19:06:01 +01:00
|
|
|
endif
|
|
|
|
|
2016-01-20 23:17:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
|
|
CUPS_CONF_OPTS += --enable-libusb
|
|
|
|
CUPS_DEPENDENCIES += libusb
|
2009-05-14 17:03:23 +02:00
|
|
|
else
|
2016-01-20 23:17:43 +01:00
|
|
|
CUPS_CONF_OPTS += --disable-libusb
|
2009-05-14 17:03:23 +02:00
|
|
|
endif
|
|
|
|
|
2016-01-20 23:17:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPAPER),y)
|
|
|
|
CUPS_CONF_OPTS += --enable-libpaper
|
|
|
|
CUPS_DEPENDENCIES += libpaper
|
|
|
|
else
|
|
|
|
CUPS_CONF_OPTS += --disable-libpaper
|
|
|
|
endif
|
2012-05-01 08:20:24 +02:00
|
|
|
|
2016-01-20 23:17:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI),y)
|
|
|
|
CUPS_DEPENDENCIES += avahi
|
|
|
|
CUPS_CONF_OPTS += --enable-avahi
|
|
|
|
else
|
|
|
|
CUPS_CONF_OPTS += --disable-avahi
|
|
|
|
endif
|
2012-05-01 08:20:24 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|