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