xref: /OK3568_Linux_fs/buildroot/package/bctoolbox/bctoolbox.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# bctoolbox
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunBCTOOLBOX_VERSION = 4.4.8
8*4882a593SmuzhiyunBCTOOLBOX_SITE = $(call github,BelledonneCommunications,bctoolbox,$(BCTOOLBOX_VERSION))
9*4882a593SmuzhiyunBCTOOLBOX_LICENSE = GPL-3.0+
10*4882a593SmuzhiyunBCTOOLBOX_LICENSE_FILES = LICENSE.txt
11*4882a593SmuzhiyunBCTOOLBOX_INSTALL_STAGING = YES
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun# Set CMAKE_SKIP_RPATH to prevent bctoolbox from adding the rpath to
14*4882a593Smuzhiyun# shared library.
15*4882a593SmuzhiyunBCTOOLBOX_CONF_OPTS = \
16*4882a593Smuzhiyun	-DENABLE_POLARSSL=OFF \
17*4882a593Smuzhiyun	-DENABLE_STRICT=OFF \
18*4882a593Smuzhiyun	-DENABLE_TESTS_COMPONENT=OFF \
19*4882a593Smuzhiyun	-DENABLE_TESTS=OFF \
20*4882a593Smuzhiyun	-DCMAKE_SKIP_RPATH=ON
21*4882a593Smuzhiyun
22*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBICONV),y)
23*4882a593SmuzhiyunBCTOOLBOX_DEPENDENCIES += libiconv
24*4882a593SmuzhiyunBCTOOLBOX_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -liconv"
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_MBEDTLS),y)
28*4882a593SmuzhiyunBCTOOLBOX_DEPENDENCIES += mbedtls
29*4882a593SmuzhiyunBCTOOLBOX_CONF_OPTS += -DENABLE_MBEDTLS=ON
30*4882a593Smuzhiyunelse
31*4882a593SmuzhiyunBCTOOLBOX_CONF_OPTS += -DENABLE_MBEDTLS=OFF
32*4882a593Smuzhiyunendif
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
35*4882a593SmuzhiyunBCTOOLBOX_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
36*4882a593Smuzhiyunelse ifeq ($(BR2_SHARED_STATIC_LIBS),y)
37*4882a593SmuzhiyunBCTOOLBOX_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
38*4882a593Smuzhiyunelse ifeq ($(BR2_SHARED_LIBS),y)
39*4882a593SmuzhiyunBCTOOLBOX_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
40*4882a593Smuzhiyunendif
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun$(eval $(cmake-package))
43