-# From https://gitlab.com/sane-project/backends/tags/RELEASE_1_0_27
-sha256 293747bf37275c424ebb2c833f8588601a60b2f9653945d5a3194875355e36c9 sane-backends-1.0.27.tar.gz
+# From https://gitlab.com/sane-project/backends/uploads/a705aadf854ca0dc8bf66df937308861/sane-backends-1.0.32.sha256.txt
+sha256 3a28c237c0a72767086202379f6dc92dbb63ec08dfbab22312cba80e238bb114 sane-backends-1.0.32.tar.gz
# Hash for license file
-sha256 dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa COPYING
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
#
################################################################################
-SANE_BACKENDS_VERSION = 1.0.27
+SANE_BACKENDS_VERSION = 1.0.32
SANE_BACKENDS_SITE = \
- https://gitlab.com/sane-project/backends/uploads/a3ba9fff29253a94e84074917bff581a
+ https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f
SANE_BACKENDS_CONFIG_SCRIPTS = sane-config
SANE_BACKENDS_LICENSE = GPL-2.0+
SANE_BACKENDS_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_DBUS)$(BR2_PACKAGE_LIBGLIB2),yyy)
SANE_BACKENDS_DEPENDENCIES += avahi
-SANE_BACKENDS_CONF_OPTS += --enable-avahi
+SANE_BACKENDS_CONF_OPTS += --with-avahi
endif
ifeq ($(BR2_PACKAGE_NETSNMP),y)
SANE_BACKENDS_CONF_OPTS += --without-snmp
endif
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+SANE_BACKENDS_DEPENDENCIES += libcurl
+SANE_BACKENDS_CONF_OPTS += --with-libcurl
+else
+SANE_BACKENDS_CONF_OPTS += --without-libcurl
+endif
+
+ifeq ($(BR2_PACKAGE_POPPLER)$(BR2_PACKAGE_LIBGLIB2),yy)
+SANE_BACKENDS_DEPENDENCIES += poppler libglib2
+SANE_BACKENDS_CONF_OPTS += --with-poppler-glib
+else
+SANE_BACKENDS_CONF_OPTS += --without-poppler-glib
+endif
+
+ifeq ($(BR2_PACKAGE_LIBXML2),y)
+SANE_BACKENDS_DEPENDENCIES += libxml2
+SANE_BACKENDS_CONF_OPTS += --with-usb-record-replay
+else
+SANE_BACKENDS_CONF_OPTS += --without-usb-record-replay
+endif
+
define SANE_BACKENDS_DISABLE_DOCS
$(SED) 's/ doc//' $(@D)/Makefile
endef