1 ################################################################################
5 ################################################################################
8 CUPS_SOURCE
= cups-
$(CUPS_VERSION
)-source.
tar.gz
9 CUPS_SITE
= https
://github.com
/apple
/cups
/releases
/download
/release-
$(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
31 $(if
$(BR2_PACKAGE_ZLIB
),zlib
)
33 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
34 CUPS_CONF_OPTS
+= --with-systemd
=/usr
/lib
/systemd
/system \
36 CUPS_DEPENDENCIES
+= systemd
38 CUPS_CONF_OPTS
+= --disable-systemd
41 ifeq ($(BR2_PACKAGE_DBUS
),y
)
42 CUPS_CONF_OPTS
+= --enable-dbus
43 CUPS_DEPENDENCIES
+= dbus
45 CUPS_CONF_OPTS
+= --disable-dbus
48 ifeq ($(BR2_PACKAGE_GNUTLS
),y
)
49 CUPS_CONF_OPTS
+= --enable-gnutls
50 CUPS_DEPENDENCIES
+= gnutls
52 CUPS_CONF_OPTS
+= --disable-gnutls
55 ifeq ($(BR2_PACKAGE_PYTHON
),y
)
56 CUPS_CONF_OPTS
+= --with-python
57 CUPS_DEPENDENCIES
+= python
59 CUPS_CONF_OPTS
+= --without-python
62 ifeq ($(BR2_PACKAGE_LIBUSB
),y
)
63 CUPS_CONF_OPTS
+= --enable-libusb
64 CUPS_DEPENDENCIES
+= libusb
66 CUPS_CONF_OPTS
+= --disable-libusb
69 ifeq ($(BR2_PACKAGE_LIBPAPER
),y
)
70 CUPS_CONF_OPTS
+= --enable-libpaper
71 CUPS_DEPENDENCIES
+= libpaper
73 CUPS_CONF_OPTS
+= --disable-libpaper
76 ifeq ($(BR2_PACKAGE_AVAHI
),y
)
77 CUPS_DEPENDENCIES
+= avahi
78 CUPS_CONF_OPTS
+= --enable-avahi
80 CUPS_CONF_OPTS
+= --disable-avahi
83 $(eval
$(autotools-package
))