-# From http://fukuchi.org/works/qrencode/qrencode-3.4.2.tar.gz.sha1
-sha1 7daaad61f333ff6cdabfb0d925c3ab668d16dee2 qrencode-3.4.2.tar.gz
+# From http://fukuchi.org/works/qrencode/qrencode-4.0.0.tar.gz.sha
+sha512 fdbcee3ef90abf780dcbe495cef3e6ac5449a4a0aaa87d1a1a4f71d97fe6d96974d8132f7e227133cddb5ab73600e968821634752fc0d75113ca0959aae9a5d0 qrencode-4.0.0.tar.gz
+
+# Hash for license file:
+sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 COPYING
#
################################################################################
-LIBQRENCODE_VERSION = 3.4.2
+LIBQRENCODE_VERSION = 4.0.0
LIBQRENCODE_SOURCE = qrencode-$(LIBQRENCODE_VERSION).tar.gz
LIBQRENCODE_SITE = http://fukuchi.org/works/qrencode
LIBQRENCODE_DEPENDENCIES = host-pkgconf
LIBQRENCODE_CONF_OPTS += --disable-thread-safety
endif
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+LIBQRENCODE_CONF_OPTS += --with-png
+LIBQRENCODE_DEPENDENCIES += libpng
+else
+LIBQRENCODE_CONF_OPTS += --without-png
+endif
+
ifeq ($(BR2_PACKAGE_LIBQRENCODE_TOOLS),y)
LIBQRENCODE_CONF_OPTS += --with-tools=yes
-LIBQRENCODE_DEPENDENCIES += libpng
else
LIBQRENCODE_CONF_OPTS += --with-tools=no
endif