Skip to contentSkip to conversation

bctoolbox: new package

PATCH Superseded Jörg Krause 2 participants 3 messages Jan 12, 2017 – Jan 22, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bctoolbox: new package

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

---
 package/Config.in                |  1 +
 package/bctoolbox/Config.in      |  8 ++++++++
 package/bctoolbox/bctoolbox.hash |  2 ++
 package/bctoolbox/bctoolbox.mk   | 30 ++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 package/bctoolbox/Config.in
 create mode 100644 package/bctoolbox/bctoolbox.hash
 create mode 100644 package/bctoolbox/bctoolbox.mk
package/Config.in +1 -0
index 8c8c33ec3..9609e9740 100644
@@ -1289,6 +1289,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"
package/bctoolbox/Config.in new file +8 -0
new file mode 100644
index 000000000..09165cd8d
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_BCTOOLBOX
+	bool "bctoolbox"
+	select BR2_PACKAGE_MBEDTLS
+	help
+	  Utilities library used by Belledonne Communications softwares like
+	  belle-sip, mediastreamer2 and linphone.
+
+	  https://github.com/BelledonneCommunications/bctoolbox
package/bctoolbox/bctoolbox.hash new file +2 -0
new file mode 100644
index 000000000..70be55c3d
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  da7df7ff359a9829e9e6ef98dfe9fead0cf735b8a4a5da1b1047f467dee1b2a9  bctoolbox-0.4.0.tar.gz
package/bctoolbox/bctoolbox.mk new file +30 -0
new file mode 100644
index 000000000..a5b75a468
@@ -0,0 +1,30 @@
+################################################################################
+#
+# 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
+
+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))
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 2/2 package/ortp: bump version to 0.27.0

ortp now depends on bctoolbox. Note, that bctoolbox is added by the first commit of this series.

---
Changes v2:
- add dependency on bctoolbox

---
 package/ortp/Config.in | 1 +
 package/ortp/ortp.hash | 2 +-
 package/ortp/ortp.mk   | 3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)
package/ortp/Config.in +1 -0
index 2de3c91f9..58b8d5c69 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_ORTP
 	bool "oRTP"
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_BCTOOLBOX
 	help
 	  oRTP, a Real-time Transport Protocol (RTP,RFC3550) library
 
package/ortp/ortp.hash +1 -1
index 8b099a705..c990d96eb 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256	0deb826b79b1fd329f7638821d5439dc343bc55bb122daa6c90d19116cfe8d9a	ortp-0.25.0.tar.gz
+sha256  eb61a833ab3ad80978d7007411240f46e9b2d1034373b9d9dfaac88c1b6ec0af  ortp-0.27.0.tar.gz
package/ortp/ortp.mk +2 -1
index ca4a90d6d..da17231f9 100644
@@ -4,12 +4,13 @@
 #
 ################################################################################
 
-ORTP_VERSION = 0.25.0
+ORTP_VERSION = 0.27.0
 ORTP_SITE = http://download.savannah.nongnu.org/releases/linphone/ortp/sources
 
 ORTP_CONF_OPTS = --disable-strict
 ORTP_INSTALL_STAGING = YES
 ORTP_LICENSE = LGPLv2.1+
 ORTP_LICENSE_FILES = COPYING
+ORTP_DEPENDENCIES = bctoolbox
 
 $(eval $(autotools-package))
Signature · 1 line
2.11.0
#2 lore raw

PATCH 1/2 bctoolbox: new package

In reply to Jörg Krause

Hi J?rg,

Le 12/01/2017 ? 14:40, J?rg Krause a ?crit :

Quoted 32 lines

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

---
 package/Config.in                |  1 +
 package/bctoolbox/Config.in      |  8 ++++++++
 package/bctoolbox/bctoolbox.hash |  2 ++
 package/bctoolbox/bctoolbox.mk   | 30 ++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 package/bctoolbox/Config.in
 create mode 100644 package/bctoolbox/bctoolbox.hash
 create mode 100644 package/bctoolbox/bctoolbox.mk
package/Config.in +1 -0
index 8c8c33ec3..9609e9740 100644
@@ -1289,6 +1289,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"
package/bctoolbox/Config.in new file +0 -0
new file mode 100644
index 000000000..09165cd8d

package/bctoolbox/Config.in line 3

Quoted 3 lines
package/bctoolbox/Config.in new file +3 -0
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_BCTOOLBOX
+	bool "bctoolbox"
+	select BR2_PACKAGE_MBEDTLS

bctoolbox depends on threads support:
"find_package(Threads REQUIRED)"

-- Looking for pthread.h
-- Looking for pthread.h - not found
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Threads (missing: Threads_FOUND)

package/bctoolbox/Config.in line 5

Quoted 2 lines
package/bctoolbox/Config.in new file +2 -0
+	help
+	  Utilities library used by Belledonne Communications softwares like

This line is a bit too long.

Quoted 18 lines
package/bctoolbox/Config.in new file +3 -0
+	  belle-sip, mediastreamer2 and linphone.
+
+	  https://github.com/BelledonneCommunications/bctoolbox
package/bctoolbox/bctoolbox.hash new file +2 -0
new file mode 100644
index 000000000..70be55c3d
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  da7df7ff359a9829e9e6ef98dfe9fead0cf735b8a4a5da1b1047f467dee1b2a9  bctoolbox-0.4.0.tar.gz
package/bctoolbox/bctoolbox.mk new file +1 -0
new file mode 100644
index 000000000..a5b75a468
@@ -0,0 +1,30 @@
+################################################################################

package/bctoolbox/bctoolbox.mk line 11

Quoted 10 lines
package/bctoolbox/bctoolbox.mk new file +10 -0
+#
+# bctoolbox
+#
+################################################################################
+
+BCTOOLBOX_VERSION = 0.4.0
+BCTOOLBOX_SITE = $(call github,BelledonneCommunications,bctoolbox,$(BCTOOLBOX_VERSION))
+BCTOOLBOX_LICENSE = GPLv2+
+BCTOOLBOX_LICENSE_FILES = COPYING
+BCTOOLBOX_DEPENDENCIES = mbedtls

Maybe add a comment to say that the mbedtls support is preferred over polarssl support.

package/bctoolbox/bctoolbox.mk line 17

Quoted 6 lines
package/bctoolbox/bctoolbox.mk new file +6 -0
+BCTOOLBOX_INSTALL_STAGING = YES
+
+BCTOOLBOX_CONF_OPTS = \
+	-DENABLE_STRICT=OFF \
+	-DENABLE_TESTS_COMPONENT=OFF \
+	-DENABLE_TESTS=OFF

The build system is looking for git binary, you can add -DGIT_EXECUTABLE=OFF to remove the error message (ignored):

-- Found Git: /usr/bin/git (found suitable version "2.9.3", minimum required is "1.7.10")
fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Best regards,
Romain

Quoted 14 lines
package/bctoolbox/bctoolbox.mk new file +13 -0
+
+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))