blob: bba9e5f6fa8494f93ace0a3cd9641eb2e6075ed8 [file] [log] [blame]
################################################################################
#
# tinydtls
#
################################################################################
TINYDTLS_VERSION = 0.9-rc1
TINYDTLS_SITE = $(call github,eclipse,tinydtls,v$(TINYDTLS_VERSION))
TINYDTLS_LICENSE = EPL-1.0 or EDL-1.0
TINYDTLS_LICENSE_FILES = LICENSE
TINYDTLS_CPE_ID_VENDOR = eclipse
TINYDTLS_INSTALL_STAGING = YES
TINYDTLS_DEPENDENCIES = host-pkgconf
# From git
TINYDTLS_AUTORECONF = YES
# use inttypes.h data types instead of u_intXX_t for musl compatibility
TINYDTLS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DSHA2_USE_INTTYPES_H"
# Fix build with automake >= 1.16.4
define TINYDTLS_TOUCH_AR_LIB
touch $(@D)/ar-lib
endef
TINYDTLS_PRE_CONFIGURE_HOOKS += TINYDTLS_TOUCH_AR_LIB
$(eval $(autotools-package))