python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / sane-backends / sane-backends.mk
blob37e5136c1118300331b6bd457210b8a9e549e3c9
1 ################################################################################
3 # sane-backends
5 ################################################################################
7 SANE_BACKENDS_VERSION = 1.0.25
8 SANE_BACKENDS_SITE = https://alioth.debian.org/frs/download.php/file/4146
9 SANE_BACKENDS_CONFIG_SCRIPTS = sane-config
10 SANE_BACKENDS_LICENSE = GPLv2+
11 SANE_BACKENDS_LICENSE_FILES = COPYING
12 SANE_BACKENDS_INSTALL_STAGING = YES
14 SANE_BACKENDS_CONF_OPTS = \
15 $(if $(BR2_TOOLCHAIN_HAS_THREADS),--enable-pthread,--disable-pthread)
17 ifeq ($(BR2_INIT_SYSTEMD),y)
18 SANE_BACKENDS_CONF_OPTS += --with-systemd
19 SANE_BACKENDS_DEPENDENCIES += systemd
20 else
21 SANE_BACKENDS_CONF_OPTS += --without-systemd
22 endif
24 ifeq ($(BR2_PACKAGE_LIBUSB),y)
25 SANE_BACKENDS_DEPENDENCIES += libusb
26 SANE_BACKENDS_CONF_OPTS += --enable-libusb_1_0
27 else
28 SANE_BACKENDS_CONF_OPTS += --disable-libusb
29 endif
31 ifeq ($(BR2_PACKAGE_JPEG),y)
32 SANE_BACKENDS_DEPENDENCIES += jpeg
33 endif
35 ifeq ($(BR2_PACKAGE_TIFF),y)
36 SANE_BACKENDS_DEPENDENCIES += tiff
37 endif
39 ifeq ($(BR2_PACKAGE_LIBV4L),y)
40 SANE_BACKENDS_DEPENDENCIES += libv4l
41 endif
43 ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_DBUS)$(BR2_PACKAGE_LIBGLIB2),yyy)
44 SANE_BACKENDS_DEPENDENCIES += avahi
45 SANE_BACKENDS_CONF_OPTS += --enable-avahi
46 endif
48 ifeq ($(BR2_PACKAGE_NETSNMP),y)
49 SANE_BACKENDS_CONF_ENV += ac_cv_path_SNMP_CONFIG_PATH=$(STAGING_DIR)/usr/bin/net-snmp-config
50 SANE_BACKENDS_DEPENDENCIES += netsnmp
51 else
52 SANE_BACKENDS_CONF_OPTS += --without-snmp
53 endif
55 define SANE_BACKENDS_DISABLE_DOCS
56 $(SED) 's/ doc//' $(@D)/Makefile
57 endef
59 SANE_BACKENDS_POST_CONFIGURE_HOOKS += SANE_BACKENDS_DISABLE_DOCS
61 define SANE_BACKENDS_USERS
62 saned -1 saned -1 * /etc/sane.d - - Saned User
63 endef
65 define SANE_BACKENDS_INSTALL_INIT_SYSTEMD
66 $(INSTALL) -m 0644 -D package/sane-backends/saned.socket \
67 $(TARGET_DIR)/usr/lib/systemd/system/saned.socket
68 mkdir -p $(TARGET_DIR)/etc/systemd/system/socket.target.wants
69 ln -sf ../../../../usr/lib/systemd/system/saned.socket \
70 $(TARGET_DIR)/etc/systemd/system/socket.target.wants/saned.socket
71 $(INSTALL) -m 0644 -D package/sane-backends/saned@.service \
72 $(TARGET_DIR)/usr/lib/systemd/system/saned@.service
73 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
74 ln -sf ../../../../usr/lib/systemd/system/saned@.service \
75 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/saned@.service
76 endef
78 $(eval $(autotools-package))