aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2021-01-30 10:30:36 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-01-30 11:46:59 +0100
commita1672c2e672b706041551a5decf461ff6bec966c (patch)
treee24bfdf69b1187090ed03e7399c700d50830ac74
parent415dfcf03bfa6c2201c8f7e3c505ff49cd5818ec (diff)
downloadbuildroot-a1672c2e672b706041551a5decf461ff6bec966c.tar.gz
buildroot-a1672c2e672b706041551a5decf461ff6bec966c.tar.bz2
package/belr: new package
Belr is Belledonne Communications' language recognition library, written in C++11. It parses text inputs formatted according to a language defined by an ABNF grammar, such as the protocols standardized at IETF. https://gitlab.linphone.org/BC/public/belr Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--DEVELOPERS1
-rw-r--r--package/Config.in1
-rw-r--r--package/belr/Config.in19
-rw-r--r--package/belr/belr.hash3
-rw-r--r--package/belr/belr.mk26
5 files changed, 50 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index 96055b3912..c31fcd2ce6 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -800,6 +800,7 @@ F: package/openzwave/
N: Fabrice Fontaine <fontaine.fabrice@gmail.com>
F: package/belle-sip/
+F: package/belr/
F: package/boinc/
F: package/cairo/
F: package/duktape/
diff --git a/package/Config.in b/package/Config.in
index 78da6a8142..3deafedb0d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1745,6 +1745,7 @@ menu "Other"
source "package/avro-c/Config.in"
source "package/bctoolbox/Config.in"
source "package/bdwgc/Config.in"
+ source "package/belr/Config.in"
source "package/boost/Config.in"
source "package/c-capnproto/Config.in"
source "package/capnproto/Config.in"
diff --git a/package/belr/Config.in b/package/belr/Config.in
new file mode 100644
index 0000000000..f3f742ad28
--- /dev/null
+++ b/package/belr/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_BELR
+ bool "belr"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_HAS_THREADS # bctoolbox
+ depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # bctoolbox
+ select BR2_PACKAGE_BCTOOLBOX
+ help
+ Belr is Belledonne Communications' language recognition
+ library, written in C++11. It parses text inputs formatted
+ according to a language defined by an ABNF grammar, such as
+ the protocols standardized at IETF.
+
+ https://gitlab.linphone.org/BC/public/belr
+
+comment "belr needs a toolchain w/ threads, C++"
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "belr needs a toolchain not affected by GCC bug 64735"
+ depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
diff --git a/package/belr/belr.hash b/package/belr/belr.hash
new file mode 100644
index 0000000000..42cf506972
--- /dev/null
+++ b/package/belr/belr.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 d6575c36c32828edcaf39df2775070b187019b21fe5fe274e7a85caf54284f05 belr-4.3.1.tar.gz
+sha256 1b3782ccad7b8614100cda30d3faf42fc39f2e97932908c543005053b654ca68 LICENSE.txt
diff --git a/package/belr/belr.mk b/package/belr/belr.mk
new file mode 100644
index 0000000000..8855f94fda
--- /dev/null
+++ b/package/belr/belr.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# belr
+#
+################################################################################
+
+BELR_VERSION = 4.3.1
+BELR_SITE = https://gitlab.linphone.org/BC/public/belr/-/archive/$(BELR_VERSION)
+BELR_LICENSE = GPL-3.0+
+BELR_LICENSE_FILES = LICENSE.txt
+BELR_INSTALL_STAGING = YES
+BELR_DEPENDENCIES = bctoolbox
+BELR_CONF_OPTS = \
+ -DENABLE_STRICT=OFF \
+ -DENABLE_TESTS=OFF \
+ -DENABLE_TOOLS=OFF
+
+ifeq ($(BR2_STATIC_LIBS),y)
+BELR_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
+else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
+BELR_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
+else ifeq ($(BR2_SHARED_LIBS),y)
+BELR_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
+endif
+
+$(eval $(cmake-package))