1 ################################################################################
5 ################################################################################
7 BCTOOLBOX_VERSION
= 0.4.0
8 BCTOOLBOX_SITE
= $(call github
,BelledonneCommunications
,bctoolbox
,$(BCTOOLBOX_VERSION
))
9 BCTOOLBOX_LICENSE
= GPLv2
+
10 BCTOOLBOX_LICENSE_FILES
= COPYING
11 BCTOOLBOX_INSTALL_STAGING
= YES
13 # Set CMAKE_SKIP_RPATH to prevent bctoolbox from adding the rpath to
15 BCTOOLBOX_CONF_OPTS
= \
16 -DENABLE_POLARSSL
=OFF \
18 -DENABLE_TESTS_COMPONENT
=OFF \
20 -DGIT_EXECUTABLE
=OFF \
23 ifeq ($(BR2_PACKAGE_MBEDTLS
),y
)
24 BCTOOLBOX_DEPENDENCIES
+= mbedtls
25 BCTOOLBOX_CONF_OPTS
+= -DENABLE_MBEDTLS
=ON
27 BCTOOLBOX_CONF_OPTS
+= -DENABLE_MBEDTLS
=OFF
30 ifeq ($(BR2_STATIC_LIBS
),y
)
31 BCTOOLBOX_CONF_OPTS
+= -DENABLE_SHARED
=OFF
-DENABLE_STATIC
=ON
32 else ifeq ($(BR2_SHARED_STATIC_LIBS
),y
)
33 BCTOOLBOX_CONF_OPTS
+= -DENABLE_SHARED
=ON
-DENABLE_STATIC
=ON
34 else ifeq ($(BR2_SHARED_LIBS
),y
)
35 BCTOOLBOX_CONF_OPTS
+= -DENABLE_SHARED
=ON
-DENABLE_STATIC
=OFF
38 $(eval
$(cmake-package
))