libdmtx is a software library that enables programs to read
and write Data Matrix barcodes of the modern ECC200 variety.
- http://www.libdmtx.org/
+ https://github.com/dmtx/libdmtx
# Locally computed:
-sha256 686bcfb44e50b96345aa53f41e285f2118a2cf87a333b69b74165a2e7ddca492 libdmtx-0.7.4.tar.gz
-sha256 fe6959a664a7abb7d19bf125fa58a045d8757fe3cb3dc41975a54da0e627313d LICENSE
+sha256 be0c5275695a732a5f434ded1fcc232aa63b1a6015c00044fe87f3a689b75f2e libdmtx-0.7.5.tar.gz
+sha256 fcc277b7302645322c63de22b9b0bdae2df3dfa7d6cbc0d5bed7a4d3f1a9af79 LICENSE
#
################################################################################
-LIBDMTX_VERSION = 0.7.4
-LIBDMTX_SITE = http://downloads.sourceforge.net/project/libdmtx/libdmtx/$(LIBDMTX_VERSION)
+LIBDMTX_VERSION = 0.7.5
+LIBDMTX_SITE = $(call github,dmtx,libdmtx,v$(LIBDMTX_VERSION))
LIBDMTX_LICENSE = BSD-2-Clause or Special Permission
LIBDMTX_LICENSE_FILES = LICENSE
LIBDMTX_INSTALL_STAGING = YES
+# github tarball does not include configure
+LIBDMTX_AUTORECONF = YES
+
+# Create the m4 directory (missing from the archive).
+# This is required for autoconf.
+define LIBDMTX_CREATE_M4
+ mkdir -p $(@D)/m4
+endef
+LIBDMTX_PRE_CONFIGURE_HOOKS += LIBDMTX_CREATE_M4
$(eval $(autotools-package))