2020-02-27 18:47:12 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# belle-sip
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-11-17 21:16:59 +01:00
|
|
|
BELLE_SIP_VERSION = 4.4.8
|
2020-02-27 18:47:12 +01:00
|
|
|
BELLE_SIP_SITE = \
|
|
|
|
https://gitlab.linphone.org/BC/public/belle-sip/-/archive/$(BELLE_SIP_VERSION)
|
|
|
|
BELLE_SIP_LICENSE = GPL-3.0+
|
|
|
|
BELLE_SIP_LICENSE_FILES = LICENSE.txt
|
|
|
|
BELLE_SIP_INSTALL_STAGING = YES
|
|
|
|
BELLE_SIP_DEPENDENCIES = \
|
|
|
|
bctoolbox \
|
|
|
|
$(if $(BR2_PACKAGE_ZLIB),zlib)
|
|
|
|
BELLE_SIP_CONF_OPTS = \
|
|
|
|
-DENABLE_STRICT=OFF \
|
|
|
|
-DENABLE_TESTS=OFF
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY),y)
|
|
|
|
BELLE_SIP_CONF_OPTS += -DENABLE_MDNS=ON
|
|
|
|
BELLE_SIP_DEPENDENCIES += avahi
|
|
|
|
else
|
|
|
|
BELLE_SIP_CONF_OPTS += -DENABLE_MDNS=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
BELLE_SIP_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
|
|
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
BELLE_SIP_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
|
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
BELLE_SIP_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
|
|
|
|
endif
|
|
|
|
|
2021-03-05 16:15:29 +01:00
|
|
|
BELLE_SIP_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99140),y)
|
|
|
|
BELLE_SIP_CFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
BELLE_SIP_CONF_OPTS += -DCMAKE_C_FLAGS="$(BELLE_SIP_CFLAGS)"
|
|
|
|
|
2020-02-27 18:47:12 +01:00
|
|
|
$(eval $(cmake-package))
|