1 ################################################################################
5 ################################################################################
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
22 CUPS_CONFIG_SCRIPTS
= cups-config
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
34 CUPS_CONF_OPTS
+= --disable-dbus
37 ifeq ($(BR2_PACKAGE_XLIB_LIBX11
),y
)
38 CUPS_DEPENDENCIES
+= xlib_libX11
41 ifeq ($(BR2_PACKAGE_PYTHON
),y
)
42 CUPS_CONF_OPTS
+= --with-python
43 CUPS_DEPENDENCIES
+= python
45 CUPS_CONF_OPTS
+= --without-python
48 ifeq ($(BR2_PACKAGE_CUPS_PDFTOPS
),y
)
49 CUPS_CONF_OPTS
+= --enable-pdftops
51 CUPS_CONF_OPTS
+= --disable-pdftops
54 # standard autoreconf fails with autoheader failures
55 define CUPS_FIXUP_AUTOCONF
56 cd
$(@D
) && $(AUTOCONF
)
58 CUPS_DEPENDENCIES
+= host-autoconf
60 CUPS_PRE_CONFIGURE_HOOKS
+= CUPS_FIXUP_AUTOCONF
62 $(eval
$(autotools-package
))