2fde6bc322
- disable examples source which is enabled by default sincefeb8c15b45
- mbedtls is an optional dependency sincef601ddbf78
- Add Apache-2.0 for mbedtls to LICENSE:0fccf2e713
Since mbedtls is not bundled but comes from the Buildroot package, we don't need to declare the Apache-2.0 license for libcoap. It only applies to mbedtls. https://github.com/obgm/libcoap/blob/v4.3.0/ChangeLog Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# libcoap
|
|
#
|
|
################################################################################
|
|
|
|
LIBCOAP_VERSION = 4.3.0
|
|
LIBCOAP_SITE = $(call github,obgm,libcoap,v$(LIBCOAP_VERSION))
|
|
LIBCOAP_INSTALL_STAGING = YES
|
|
LIBCOAP_LICENSE = BSD-2-Clause
|
|
LIBCOAP_LICENSE_FILES = COPYING LICENSE
|
|
LIBCOAP_DEPENDENCIES = host-pkgconf
|
|
LIBCOAP_CONF_OPTS = \
|
|
--disable-examples --disable-examples-source --without-tinydtls
|
|
LIBCOAP_AUTORECONF = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
LIBCOAP_DEPENDENCIES += gnutls
|
|
LIBCOAP_CONF_OPTS += \
|
|
--enable-dtls --with-gnutls --without-mbedtls --without-openssl
|
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBCOAP_DEPENDENCIES += openssl
|
|
LIBCOAP_CONF_OPTS += \
|
|
--enable-dtls --without-gnutls --without-mbedtls --with-openssl
|
|
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
LIBCOAP_DEPENDENCIES += mbedtls
|
|
LIBCOAP_CONF_OPTS += \
|
|
--enable-dtls --without-gnutls --with-mbedtls --without-openssl
|
|
else
|
|
LIBCOAP_CONF_OPTS += --disable-dtls
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|