1 ################################################################################
5 ################################################################################
8 CUPS_SOURCE
= cups-
$(CUPS_VERSION
)-source.
tar.gz
9 CUPS_SITE
= https
://github.com
/apple
/cups
/releases
/download
/v
$(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
16 # Using autoconf, not autoheader, so we cannot use AUTORECONF = YES.
17 define CUPS_RUN_AUTOCONF
18 cd
$(@D
); $(HOST_DIR
)/usr
/bin
/autoconf
-f
20 CUPS_PRE_CONFIGURE_HOOKS
+= CUPS_RUN_AUTOCONF
28 CUPS_CONFIG_SCRIPTS
= cups-config
32 $(if
$(BR2_PACKAGE_ZLIB
),zlib
)
34 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
35 CUPS_CONF_OPTS
+= --with-systemd
=/usr
/lib
/systemd
/system \
37 CUPS_DEPENDENCIES
+= systemd
39 CUPS_CONF_OPTS
+= --disable-systemd
42 ifeq ($(BR2_PACKAGE_DBUS
),y
)
43 CUPS_CONF_OPTS
+= --enable-dbus
44 CUPS_DEPENDENCIES
+= dbus
46 CUPS_CONF_OPTS
+= --disable-dbus
49 ifeq ($(BR2_PACKAGE_GNUTLS
),y
)
50 CUPS_CONF_OPTS
+= --enable-gnutls
51 CUPS_DEPENDENCIES
+= gnutls
53 CUPS_CONF_OPTS
+= --disable-gnutls
56 ifeq ($(BR2_PACKAGE_PYTHON
),y
)
57 CUPS_CONF_OPTS
+= --with-python
58 CUPS_DEPENDENCIES
+= python
60 CUPS_CONF_OPTS
+= --without-python
63 ifeq ($(BR2_PACKAGE_LIBUSB
),y
)
64 CUPS_CONF_OPTS
+= --enable-libusb
65 CUPS_DEPENDENCIES
+= libusb
67 CUPS_CONF_OPTS
+= --disable-libusb
70 ifeq ($(BR2_PACKAGE_LIBPAPER
),y
)
71 CUPS_CONF_OPTS
+= --enable-libpaper
72 CUPS_DEPENDENCIES
+= libpaper
74 CUPS_CONF_OPTS
+= --disable-libpaper
77 ifeq ($(BR2_PACKAGE_AVAHI
),y
)
78 CUPS_DEPENDENCIES
+= avahi
79 CUPS_CONF_OPTS
+= --enable-avahi
81 CUPS_CONF_OPTS
+= --disable-avahi
84 $(eval
$(autotools-package
))