xref: /OK3568_Linux_fs/buildroot/package/resiprocate/resiprocate.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# resiprocate
4#
5################################################################################
6
7RESIPROCATE_VERSION = 1.12.0
8RESIPROCATE_SITE = https://www.resiprocate.org/files/pub/reSIProcate/releases
9# For complete details see https://www.resiprocate.org/License
10RESIPROCATE_LICENSE = VSL-1.0, BSD-3-Clause
11RESIPROCATE_LICENSE_FILES = COPYING
12RESIPROCATE_CPE_ID_VENDOR = resiprocate
13RESIPROCATE_INSTALL_STAGING = YES
14
15# Utilize c-ares from buildroot instead built in ARES library
16# NOTE: resiprocate doesn't support --without-<feature> syntax as it will try
17#       to build with package if specified
18RESIPROCATE_DEPENDENCIES = c-ares
19RESIPROCATE_CONF_OPTS = -with-c-ares \
20	--with-sysroot="$(STAGING_DIR)"
21
22ifeq ($(BR2_PACKAGE_OPENSSL),y)
23RESIPROCATE_DEPENDENCIES += openssl host-pkgconf
24RESIPROCATE_CONF_OPTS += --with-ssl
25# Configure.ac does not include '-lz' when statically linking against openssl
26RESIPROCATE_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
27endif
28
29ifeq ($(BR2_PACKAGE_POPT),y)
30RESIPROCATE_CONF_OPTS += --with-popt
31RESIPROCATE_DEPENDENCIES += popt
32endif
33
34ifeq ($(BR2_PACKAGE_RESIPROCATE_DTLS_SUPPORT),y)
35RESIPROCATE_CONF_OPTS += --with-dtls
36endif
37
38ifeq ($(BR2_PACKAGE_RESIPROCATE_REND),y)
39RESIPROCATE_CONF_OPTS += --with-rend
40RESIPROCATE_DEPENDENCIES += boost
41endif
42
43ifeq ($(BR2_PACKAGE_RESIPROCATE_APPS),y)
44RESIPROCATE_CONF_OPTS += --with-apps
45RESIPROCATE_DEPENDENCIES += pcre
46endif
47
48$(eval $(autotools-package))
49