1 ################################################################################
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
21 SANE_BACKENDS_CONF_OPTS
+= --without-systemd
24 ifeq ($(BR2_PACKAGE_LIBUSB
),y
)
25 SANE_BACKENDS_DEPENDENCIES
+= libusb
26 SANE_BACKENDS_CONF_OPTS
+= --enable-libusb_1_0
28 SANE_BACKENDS_CONF_OPTS
+= --disable-libusb
31 ifeq ($(BR2_PACKAGE_JPEG
),y
)
32 SANE_BACKENDS_DEPENDENCIES
+= jpeg
35 ifeq ($(BR2_PACKAGE_TIFF
),y
)
36 SANE_BACKENDS_DEPENDENCIES
+= tiff
39 ifeq ($(BR2_PACKAGE_LIBV4L
),y
)
40 SANE_BACKENDS_DEPENDENCIES
+= libv4l
43 ifeq ($(BR2_PACKAGE_AVAHI
)$(BR2_PACKAGE_DBUS
)$(BR2_PACKAGE_LIBGLIB2
),yyy
)
44 SANE_BACKENDS_DEPENDENCIES
+= avahi
45 SANE_BACKENDS_CONF_OPTS
+= --enable-avahi
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
52 SANE_BACKENDS_CONF_OPTS
+= --without-snmp
55 define SANE_BACKENDS_DISABLE_DOCS
56 $(SED
) 's/ doc//' $(@D
)/Makefile
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
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
78 $(eval
$(autotools-package
))