open-plc-utils: new package
[buildroot-gz.git] / package / cups / cups.mk
blobc028ef49a321051831fbfad5d23227fd326213b6
1 ################################################################################
3 # cups
5 ################################################################################
7 CUPS_VERSION = 1.3.11
8 CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.bz2
9 CUPS_SITE = http://www.cups.org/software/$(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
15 CUPS_CONF_OPTS = \
16 --without-perl \
17 --without-java \
18 --without-php \
19 --disable-gnutls \
20 --disable-gssapi \
21 --libdir=/usr/lib
22 CUPS_CONFIG_SCRIPTS = cups-config
24 CUPS_DEPENDENCIES = \
25 $(if $(BR2_PACKAGE_ZLIB),zlib) \
26 $(if $(BR2_PACKAGE_LIBPNG),libpng) \
27 $(if $(BR2_PACKAGE_JPEG),jpeg) \
28 $(if $(BR2_PACKAGE_TIFF),tiff)
30 ifeq ($(BR2_PACKAGE_DBUS),y)
31 CUPS_CONF_OPTS += --enable-dbus
32 CUPS_DEPENDENCIES += dbus
33 else
34 CUPS_CONF_OPTS += --disable-dbus
35 endif
37 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
38 CUPS_DEPENDENCIES += xlib_libX11
39 endif
41 ifeq ($(BR2_PACKAGE_PYTHON),y)
42 CUPS_CONF_OPTS += --with-python
43 CUPS_DEPENDENCIES += python
44 else
45 CUPS_CONF_OPTS += --without-python
46 endif
48 ifeq ($(BR2_PACKAGE_CUPS_PDFTOPS),y)
49 CUPS_CONF_OPTS += --enable-pdftops
50 else
51 CUPS_CONF_OPTS += --disable-pdftops
52 endif
54 # standard autoreconf fails with autoheader failures
55 define CUPS_FIXUP_AUTOCONF
56 cd $(@D) && $(AUTOCONF)
57 endef
58 CUPS_DEPENDENCIES += host-autoconf
60 CUPS_PRE_CONFIGURE_HOOKS += CUPS_FIXUP_AUTOCONF
62 $(eval $(autotools-package))