7d0de574db
This package has some udev tools to assist with printer autodetection. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: - add missing dependency to host-pkgconf - add patch for --with-cups-config - use that to point to cups-config in staging - append-assign in conditional blocks - license to be GPL-2.0-or-later (not GPL-2.0-only) - fix check-package ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# system-config-printer
|
|
#
|
|
################################################################################
|
|
|
|
SYSTEM_CONFIG_PRINTER_VERSION = 1.5.15
|
|
SYSTEM_CONFIG_PRINTER_SOURCE = system-config-printer-$(SYSTEM_CONFIG_PRINTER_VERSION).tar.xz
|
|
SYSTEM_CONFIG_PRINTER_SITE = https://github.com/OpenPrinting/system-config-printer/releases/download/v$(SYSTEM_CONFIG_PRINTER_VERSION)
|
|
SYSTEM_CONFIG_PRINTER_LICENSE = GPL-2.0+
|
|
SYSTEM_CONFIG_PRINTER_LICENSE_FILES = COPYING
|
|
SYSTEM_CONFIG_PRINTER_DEPENDENCIES = cups host-intltool host-pkgconf
|
|
|
|
# 0001-Add-option-to-disable-xmlto-manual-generation.patch
|
|
# 0002-configure-accept-non-system-cups-config.patch
|
|
SYSTEM_CONFIG_PRINTER_AUTORECONF = YES
|
|
|
|
SYSTEM_CONFIG_PRINTER_CONF_OPTS = --with-cups-config=$(STAGING_DIR)/usr/bin/cups-config
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
SYSTEM_CONFIG_PRINTER_DEPENDENCIES += libglib2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_LIBUSB)$(BR2_PACKAGE_HAS_UDEV),yyy)
|
|
SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-udev-rules=yes
|
|
SYSTEM_CONFIG_PRINTER_DEPENDENCIES += libusb udev
|
|
else
|
|
SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-udev-rules=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
SYSTEM_CONFIG_PRINTER_DEPENDENCIES += systemd
|
|
else
|
|
SYSTEM_CONFIG_PRINTER_CONF_OPTS += --with-systemdsystemunitdir=no
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|