xref: /OK3568_Linux_fs/buildroot/package/system-config-printer/system-config-printer.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# system-config-printer
4#
5################################################################################
6
7SYSTEM_CONFIG_PRINTER_VERSION = 1.5.15
8SYSTEM_CONFIG_PRINTER_SOURCE = system-config-printer-$(SYSTEM_CONFIG_PRINTER_VERSION).tar.xz
9SYSTEM_CONFIG_PRINTER_SITE = https://github.com/OpenPrinting/system-config-printer/releases/download/v$(SYSTEM_CONFIG_PRINTER_VERSION)
10SYSTEM_CONFIG_PRINTER_LICENSE = GPL-2.0+
11SYSTEM_CONFIG_PRINTER_LICENSE_FILES = COPYING
12SYSTEM_CONFIG_PRINTER_DEPENDENCIES = cups host-desktop-file-utils host-intltool host-pkgconf
13
14# 0001-Add-option-to-disable-xmlto-manual-generation.patch
15# 0002-configure-accept-non-system-cups-config.patch
16SYSTEM_CONFIG_PRINTER_AUTORECONF = YES
17
18SYSTEM_CONFIG_PRINTER_CONF_OPTS = --with-cups-config=$(STAGING_DIR)/usr/bin/cups-config
19
20ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
21SYSTEM_CONFIG_PRINTER_DEPENDENCIES += libglib2
22endif
23
24ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_LIBUSB)$(BR2_PACKAGE_HAS_UDEV),yyy)
25SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-udev-rules=yes
26SYSTEM_CONFIG_PRINTER_DEPENDENCIES += libusb udev
27else
28SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-udev-rules=no
29endif
30
31ifeq ($(BR2_PACKAGE_SYSTEMD),y)
32SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
33SYSTEM_CONFIG_PRINTER_DEPENDENCIES += systemd
34else
35SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-systemdsystemunitdir=no
36endif
37
38$(eval $(autotools-package))
39