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
|
2009-01-25 21:53:43 +01:00
|
|
|
CUPS_SITE = http://ftp.easysw.com/pub/cups/$(CUPS_VERSION)
|
2012-05-01 08:20:24 +02:00
|
|
|
CUPS_INSTALL_STAGING = YES
|
|
|
|
CUPS_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) DSTROOT=$(STAGING_DIR) install
|
|
|
|
CUPS_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) DSTROOT=$(TARGET_DIR) install
|
|
|
|
CUPS_CONF_OPT = --without-perl \
|
|
|
|
--without-java \
|
|
|
|
--disable-gnutls \
|
2012-06-06 15:03:58 +02:00
|
|
|
--disable-gssapi \
|
2012-07-10 13:52:32 +02:00
|
|
|
--libdir=/usr/lib
|
2008-03-06 19:06:01 +01:00
|
|
|
|
2012-05-01 14:13:01 +02:00
|
|
|
CUPS_DEPENDENCIES = $(if $(BR2_PACKAGE_ZLIB),zlib) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBPNG),libpng) \
|
|
|
|
$(if $(BR2_PACKAGE_JPEG),jpeg) \
|
|
|
|
$(if $(BR2_PACKAGE_TIFF),tiff)
|
|
|
|
|
2008-03-06 19:06:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2009-01-25 21:53:43 +01:00
|
|
|
CUPS_CONF_OPT += --enable-dbus
|
|
|
|
CUPS_DEPENDENCIES += dbus
|
2008-03-06 19:06:01 +01:00
|
|
|
else
|
2009-01-25 21:53:43 +01:00
|
|
|
CUPS_CONF_OPT += --disable-dbus
|
2008-03-06 19:06:01 +01:00
|
|
|
endif
|
|
|
|
|
2009-07-17 15:42:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
2009-01-25 21:53:43 +01:00
|
|
|
CUPS_DEPENDENCIES += xlib_libX11
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PHP),y)
|
2012-05-01 10:56:45 +02:00
|
|
|
CUPS_CONF_ENV += ac_cv_path_PHPCONFIG=$(STAGING_DIR)/usr/bin/php-config
|
|
|
|
CUPS_CONF_OPT += --with-php
|
|
|
|
CUPS_DEPENDENCIES += php
|
2009-01-25 21:53:43 +01:00
|
|
|
else
|
2012-05-01 10:56:45 +02:00
|
|
|
CUPS_CONF_OPT += --without-php
|
2009-01-25 21:53:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
2012-05-01 13:56:55 +02:00
|
|
|
CUPS_CONF_OPT += --with-python
|
|
|
|
CUPS_DEPENDENCIES += python
|
2009-01-25 21:53:43 +01:00
|
|
|
else
|
2012-05-01 13:56:55 +02:00
|
|
|
CUPS_CONF_OPT += --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)
|
|
|
|
CUPS_CONF_OPT += --enable-pdftops
|
|
|
|
else
|
|
|
|
CUPS_CONF_OPT += --disable-pdftops
|
|
|
|
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-05-01 14:00:04 +02:00
|
|
|
# Fixup prefix= and exec_prefix= in cups-config
|
2012-05-01 08:20:24 +02:00
|
|
|
define CUPS_FIXUP_CUPS_CONFIG
|
2012-05-01 14:00:04 +02:00
|
|
|
$(SED) 's%^prefix=/usr%prefix=$(STAGING_DIR)/usr%' \
|
|
|
|
-e 's%^exec_prefix=/usr%exec_prefix=$(STAGING_DIR)/usr%' \
|
2012-05-01 08:20:24 +02:00
|
|
|
$(STAGING_DIR)/usr/bin/cups-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
CUPS_POST_INSTALL_STAGING_HOOKS += CUPS_FIXUP_CUPS_CONFIG
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|