bctoolbox: new package

bctoolbox is a utilities library used by Belledonne Communications
softwares like belle-sip, mediastreamer2 and linphone.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
[Thomas: add missing dependency on BR2_INSTALL_LIBSTDCPP.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Jörg Krause 2017-01-22 22:00:20 +01:00 committed by Thomas Petazzoni
parent 4a25798caf
commit 24399f96b3
4 changed files with 44 additions and 0 deletions

View file

@ -1291,6 +1291,7 @@ menu "Other"
source "package/argp-standalone/Config.in"
source "package/armadillo/Config.in"
source "package/atf/Config.in"
source "package/bctoolbox/Config.in"
source "package/bdwgc/Config.in"
source "package/boost/Config.in"
source "package/clapack/Config.in"

View file

@ -0,0 +1,13 @@
config BR2_PACKAGE_BCTOOLBOX
bool "bctoolbox"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_MBEDTLS # mbedtls is preferred over polarssl
help
Utilities library used by Belledonne Communications
softwares like belle-sip, mediastreamer2 and linphone.
https://github.com/BelledonneCommunications/bctoolbox
comment "bctoolbox needs a toolchain w/ C++, threads"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS

View file

@ -0,0 +1,2 @@
# Locally calculated
sha256 da7df7ff359a9829e9e6ef98dfe9fead0cf735b8a4a5da1b1047f467dee1b2a9 bctoolbox-0.4.0.tar.gz

View file

@ -0,0 +1,28 @@
################################################################################
#
# bctoolbox
#
################################################################################
BCTOOLBOX_VERSION = 0.4.0
BCTOOLBOX_SITE = $(call github,BelledonneCommunications,bctoolbox,$(BCTOOLBOX_VERSION))
BCTOOLBOX_LICENSE = GPLv2+
BCTOOLBOX_LICENSE_FILES = COPYING
BCTOOLBOX_DEPENDENCIES = mbedtls
BCTOOLBOX_INSTALL_STAGING = YES
BCTOOLBOX_CONF_OPTS = \
-DENABLE_STRICT=OFF \
-DENABLE_TESTS_COMPONENT=OFF \
-DENABLE_TESTS=OFF \
-DGIT_EXECUTABLE=OFF
ifeq ($(BR2_STATIC_LIBS),y)
BCTOOLBOX_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
BCTOOLBOX_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
else ifeq ($(BR2_SHARED_LIBS),y)
BCTOOLBOX_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
endif
$(eval $(cmake-package))