xref: /buildroot/package/libcoap/libcoap.mk
  • Home
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1################################################################################
2#
3# libcoap
4#
5################################################################################
6
7LIBCOAP_VERSION = 4.3.4
8LIBCOAP_SITE = $(call github,obgm,libcoap,v$(LIBCOAP_VERSION))
9LIBCOAP_INSTALL_STAGING = YES
10LIBCOAP_LICENSE = BSD-2-Clause
11LIBCOAP_LICENSE_FILES = COPYING LICENSE
12LIBCOAP_CPE_ID_VENDOR = libcoap
13LIBCOAP_DEPENDENCIES = host-pkgconf
14LIBCOAP_CONF_OPTS = \
15	--disable-examples --disable-examples-source --without-tinydtls
16LIBCOAP_AUTORECONF = YES
17
18# 0001-coap_oscore-c-Fix-parsing-OSCORE-configuration-information.patch
19LIBCOAP_IGNORE_CVES += CVE-2024-0962
20
21ifeq ($(BR2_PACKAGE_GNUTLS),y)
22LIBCOAP_DEPENDENCIES += gnutls
23LIBCOAP_CONF_OPTS += \
24	--enable-dtls --with-gnutls --without-mbedtls --without-openssl
25else ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
26LIBCOAP_DEPENDENCIES += openssl
27LIBCOAP_CONF_OPTS += \
28	--enable-dtls --without-gnutls --without-mbedtls --with-openssl
29else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
30LIBCOAP_DEPENDENCIES += mbedtls
31LIBCOAP_CONF_OPTS += \
32	--enable-dtls --without-gnutls --with-mbedtls --without-openssl
33else
34LIBCOAP_CONF_OPTS += --disable-dtls
35endif
36
37$(eval $(autotools-package))
38

Last Index update Fri Aug 22 08:59:00 CST 2025