Update to the current release, see [0].
Get rid of the dropped --without-oss configure switch.
Add an upstream patch to fix building without SRTP support[1],
and refresh the rest.
[0] https://trac.pjsip.org/repos/milestone/release-2.8
[1] https://trac.pjsip.org/repos/changeset/5891/
Signed-off-by: Andre Heider <a.heider@gmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=pjproject
-PKG_VERSION:=2.7.2
-PKG_RELEASE:=3
+PKG_VERSION:=2.8
+PKG_RELEASE:=1
PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)
-PKG_HASH:=9c2c828abab7626edf18e04b041ef274bfaa86f99adf2c25ff56f1509e813772
+PKG_HASH:=503d0bd7f9f13dc1492ac9b71b761b1089851fbb608b9a13996edc3c42006f79
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
--disable-opencore-amr \
--disable-openh264 \
--disable-opus \
- --disable-oss \
--disable-resample \
--disable-sdl \
--disable-silk \
---- pjproject-2.6/pjlib/src/pj/os_core_unix.c 2016-04-13 08:24:48.000000000 +0200
-+++ pjproject-new/pjlib/src/pj/os_core_unix.c 2017-05-08 09:51:49.980905420 +0200
-@@ -1123,7 +1123,7 @@ static pj_status_t init_mutex(pj_mutex_t
+--- a/pjlib/src/pj/os_core_unix.c
++++ b/pjlib/src/pj/os_core_unix.c
+@@ -1139,7 +1139,7 @@ static pj_status_t init_mutex(pj_mutex_t
return PJ_RETURN_OS_ERROR(rc);
if (type == PJ_MUTEX_SIMPLE) {
defined(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE)
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
#elif (defined(PJ_RTEMS) && PJ_RTEMS!=0) || \
-@@ -1133,7 +1133,7 @@ static pj_status_t init_mutex(pj_mutex_t
+@@ -1149,7 +1149,7 @@ static pj_status_t init_mutex(pj_mutex_t
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
#endif
} else {
--- a/build.mak.in
+++ b/build.mak.in
-@@ -293,7 +293,6 @@ export APP_LDLIBS := $(PJSUA_LIB_LDLIB)
+@@ -292,7 +292,6 @@ export APP_LDLIBS := $(PJSUA_LIB_LDLIB)
$(PJLIB_LDLIB) \
@LIBS@
export APP_LDXXLIBS := $(PJSUA2_LIB_LDLIB) \
--- /dev/null
+From 42e5ee52e1113d24b7125e29669022c35e87693f Mon Sep 17 00:00:00 2001
+From: Sauw Ming <ming@teluu.com>
+Date: Wed, 26 Sep 2018 00:56:51 +0000
+Subject: [PATCH] Re #2147 (misc): Fixed build error of undefined reference to
+ `pjmedia_srtp_enum_crypto' if PJMEDIA_HAS_SRTP is disabled.
+
+Thanks to Alexei Gradinari for the patch
+
+
+
+git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5891 74dad513-b988-da41-8d7b-12977e46ad98
+---
+ pjsip/src/pjsua2/endpoint.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- a/pjsip/src/pjsua2/endpoint.cpp
++++ b/pjsip/src/pjsua2/endpoint.cpp
+@@ -2145,14 +2145,16 @@ void Endpoint::resetVideoCodecParam(cons
+ */
+ StringVector Endpoint::srtpCryptoEnum() throw(Error)
+ {
++ StringVector result;
++#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0)
+ unsigned cnt = PJMEDIA_SRTP_MAX_CRYPTOS;
+ pjmedia_srtp_crypto cryptos[PJMEDIA_SRTP_MAX_CRYPTOS];
+- StringVector result;
+
+ PJSUA2_CHECK_EXPR(pjmedia_srtp_enum_crypto(&cnt, cryptos));
+
+ for (unsigned i = 0; i < cnt; ++i)
+ result.push_back(pj2Str(cryptos[i].name));
++#endif
+
+ return result;
+ }