2008-03-06 19:06:01 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cups
|
|
|
|
#
|
|
|
|
################################################################################
|
2012-05-01 08:20:24 +02:00
|
|
|
|
2012-05-01 14:05:27 +02:00
|
|
|
CUPS_VERSION = 1.3.11
|
2012-05-01 08:20:24 +02:00
|
|
|
CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.bz2
|
2013-06-11 20:39:40 +02:00
|
|
|
CUPS_SITE = http://www.cups.org/software/$(CUPS_VERSION)
|
2013-06-28 15:41:01 +02:00
|
|
|
CUPS_LICENSE = GPLv2 LGPLv2
|
|
|
|
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
|
2014-12-24 08:54:24 +01:00
|
|
|
CUPS_CONF_OPTS = \
|
|
|
|
--without-perl \
|
|
|
|
--without-java \
|
|
|
|
--without-php \
|
|
|
|
--disable-gnutls \
|
|
|
|
--disable-gssapi \
|
|
|
|
--libdir=/usr/lib
|
2013-02-07 13:35:05 +01:00
|
|
|
CUPS_CONFIG_SCRIPTS = cups-config
|
2008-03-06 19:06:01 +01:00
|
|
|
|
2014-12-24 08:54:24 +01:00
|
|
|
CUPS_DEPENDENCIES = \
|
|
|
|
$(if $(BR2_PACKAGE_ZLIB),zlib) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBPNG),libpng) \
|
|
|
|
$(if $(BR2_PACKAGE_JPEG),jpeg) \
|
|
|
|
$(if $(BR2_PACKAGE_TIFF),tiff)
|
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
|
|
|
|
|
2015-03-05 20:38:38 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_DEPENDENCIES += xlib_libX11
|
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
|
|
|
|
|
2009-05-14 17:03:23 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CUPS_PDFTOPS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --enable-pdftops
|
2009-05-14 17:03:23 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --disable-pdftops
|
2009-05-14 17:03:23 +02:00
|
|
|
endif
|
|
|
|
|
2012-05-01 08:20:24 +02:00
|
|
|
# standard autoreconf fails with autoheader failures
|
|
|
|
define CUPS_FIXUP_AUTOCONF
|
|
|
|
cd $(@D) && $(AUTOCONF)
|
|
|
|
endef
|
|
|
|
CUPS_DEPENDENCIES += host-autoconf
|
|
|
|
|
|
|
|
CUPS_PRE_CONFIGURE_HOOKS += CUPS_FIXUP_AUTOCONF
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|