88b756986a
When c-ares was compiled before, libeXosip2 will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/sip_reg | grep NEEDED | sort 0x0000000000000001 (NEEDED) Shared library: [libcares.so.2] [...] The build system offers no option to en-/disable c-ares support: http://git.savannah.gnu.org/cgit/exosip.git/tree/configure.in?h=exosip-3.X.X#n208 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
38 lines
1011 B
Makefile
38 lines
1011 B
Makefile
################################################################################
|
|
#
|
|
# libexosip2
|
|
#
|
|
################################################################################
|
|
|
|
LIBEXOSIP2_VERSION = 3.6.0
|
|
LIBEXOSIP2_SITE = http://download.savannah.gnu.org/releases/exosip
|
|
LIBEXOSIP2_INSTALL_STAGING = YES
|
|
LIBEXOSIP2_LICENSE = GPLv2+
|
|
LIBEXOSIP2_LICENSE_FILES = COPYING
|
|
|
|
LIBEXOSIP2_DEPENDENCIES = host-pkgconf libosip2
|
|
|
|
# We are touching configure.in and Makefile.am with one of our patches
|
|
LIBEXOSIP2_AUTORECONF = YES
|
|
|
|
ifeq ($(BR2_arc),y)
|
|
# toolchain __arc__ define conflicts with libeXosip2 source
|
|
LIBEXOSIP2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__"
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_C_ARES),y)
|
|
LIBEXOSIP2_DEPENDENCIES += c-ares
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBEXOSIP2_DEPENDENCIES += openssl
|
|
LIBEXOSIP2_CONF_OPTS += --enable-openssl
|
|
else
|
|
LIBEXOSIP2_CONF_OPTS += --disable-openssl
|
|
endif
|
|
|
|
LIBEXOSIP2_CONF_OPTS += \
|
|
--enable-mt=$(if $(BR2_TOOLCHAIN_HAS_THREADS),yes,no)
|
|
|
|
$(eval $(autotools-package))
|