libpjsip: new package
PATCH v3 1/1 libpjsip: new package
From: Bernd Kuhls <[email protected]>
---
I adopted this patch since Bernd has no more interest in it.
v2 from Bernd is here: https://patchwork.ozlabs.org/patch/464737/
Changes v2 -> v3:
- bump to 2.4.5
- disable gsm, pa, srtp and speex
- add sha256 hash
v2: various changes (Thomas)
- changed portaudio dependency to avoid using third_party/portaudio/
- removed 0001-disable-tests.patch
not necessary anymore since ipv6 changes in buildroot
- added license information
--- package/Config.in | 1 + package/libpjsip/Config.in | 12 ++++++++++++ package/libpjsip/libpjsip.hash | 5 +++++ package/libpjsip/libpjsip.mk | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 package/libpjsip/Config.in create mode 100644 package/libpjsip/libpjsip.hash create mode 100644 package/libpjsip/libpjsip.mk
package/Config.in +1 -0
@@ -1132,6 +1132,7 @@ menu "Networking" source "package/liboping/Config.in" source "package/libosip2/Config.in" source "package/libpcap/Config.in" + source "package/libpjsip/Config.in" source "package/librsync/Config.in" source "package/libshairplay/Config.in" source "package/libshout/Config.in"
package/libpjsip/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_LIBPJSIP + bool "libpjsip" + depends on BR2_INSTALL_LIBSTDCPP + help + PJSIP is a free and open source multimedia communication + library written in C language implementing standard based + protocols such as: SIP, SDP, RTP, STUN, TURN, and ICE. + + http://www.pjsip.org + +comment "libpjsip needs a toolchain w/ C++" + depends on !BR2_INSTALL_LIBSTDCPP
package/libpjsip/libpjsip.hash new file +5 -0
@@ -0,0 +1,5 @@ +# From http://www.pjsip.org/release/2.4.5/MD5SUM.TXT +md5 f58b3485977b3a700256203a554b3869 pjproject-2.4.5.tar.bz2 + +# Locally computed +sha256 086f5e70dcaee312b66ddc24dac6ef85e6f1fec4eed00ff2915cebe0ee3cdd8d pjproject-2.4.5.tar.bz2
package/libpjsip/libpjsip.mk new file +38 -0
@@ -0,0 +1,38 @@ +################################################################################ +# +# libpjsip +# +################################################################################ + +LIBPJSIP_VERSION = 2.4.5 +LIBPJSIP_SOURCE = pjproject-$(LIBPJSIP_VERSION).tar.bz2 +LIBPJSIP_SITE = http://www.pjsip.org/release/$(LIBPJSIP_VERSION) +LIBPJSIP_LICENSE = GPLv2+ +LIBPJSIP_LICENSE_FILES = COPYING +LIBPJSIP_INSTALL_STAGING = YES + +LIBPJSIP_CONF_ENV = \ + LD="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1" + +LIBPJSIP_CONF_OPTS = \ + --disable-sound \ + --disable-gsm \ + --disable-speex-codec \ + --disable-speex-aec \ + --disable-resample \ + --disable-video \ + --disable-opencore-amr + +ifeq ($(BR2_PACKAGE_OPENSSL),y) +LIBPJSIP_DEPENDENCIES += openssl +LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr +else +LIBPJSIP_CONF_OPTS += --disable-ssl +endif + +ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y) +LIBPJSIP_DEPENDENCIES += util-linux +endif + +$(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH v3 1/1 libpjsip: new package
Dear Luca Ceresoli,
Quoted 6 lines · Luca Ceresoli
From: Bernd Kuhls <[email protected]>
Signed-off-by Bernd Kuhls <[email protected]>Signed-off-by Luca Ceresoli <[email protected]>Cc Patrick Keroulas <[email protected]>Cc Bernd Kuhls <[email protected]>
I've applied to master. However, it is worth mentioning that it fails to build on musl, and this should be fixed. The build failure is:
../src/pj/os_core_unix.c: In function ?init_mutex?:../src/pj/os_core_unix.c:1128:40: error: ?PTHREAD_MUTEX_FAST_NP? undeclared (first use in this function)
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_FAST_NP);
^
../src/pj/os_core_unix.c:1128:40: note: each undeclared identifier is reported only once for each function it appears in
../src/pj/os_core_unix.c:1138:40: error: ?PTHREAD_MUTEX_RECURSIVE_NP? undeclared (first use in this function)
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
^There is a patch in Alpine Linux
(http://git.alpinelinux.org/cgit/aports/plain/main/pjproject/musl-fixes.patch),
but I'm not sure it doesn't break the build with other C libraries, it lacks a commit log, and should be submitted upstream.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 1/1 libpjsip: new package
In reply to Luca CeresoliDear Luca Ceresoli,
Quoted 6 lines · Luca Ceresoli
From: Bernd Kuhls <[email protected]>
Signed-off-by Bernd Kuhls <[email protected]>Signed-off-by Luca Ceresoli <[email protected]>Cc Patrick Keroulas <[email protected]>Cc Bernd Kuhls <[email protected]>
Some build failures for you:
http://autobuild.buildroot.org/?reason=libpjsip-2.4.5
:-)
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com