diff --git a/net/liblinphone/Makefile b/net/liblinphone/Makefile index d929b3ff58d4..6b9e7fc4e51a 100644 --- a/net/liblinphone/Makefile +++ b/net/liblinphone/Makefile @@ -1,61 +1,62 @@ PORTNAME= liblinphone DISTVERSION= 5.1.56 +PORTREVISION= 1 CATEGORIES= net MAINTAINER= bofh@FreeBSD.org COMMENT= SIP library supporting voice/video calls and text messaging WWW= https://www.linphone.org/technical-corner/liblinphone.html LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pystache>=0:textproc/py-pystache@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \ doxygen:devel/doxygen \ xsd>0:devel/xsd LIB_DEPENDS= libbctoolbox.so:net/bctoolbox \ libbelcard.so:deskutils/belcard \ libbellesip.so:net/belle-sip \ libbelr.so:textproc/belr \ libbzrtp.so:security/bzrtp \ libjsoncpp.so:devel/jsoncpp \ liblime.so:security/lime \ libmediastreamer.so:net/mediastreamer \ libortp.so:net/ortp \ libsoci_core.so:databases/soci \ libxerces-c.so:textproc/xerces-c3 USES= cmake gnome iconv pkgconfig python:build sqlite USE_GITLAB= yes GL_SITE= https://gitlab.linphone.org/BC GL_ACCOUNT= public GL_COMMIT= c5d52f725840bceca36874f480d86bdbb91f5b7e USE_GNOME= libxml2 USE_LDCONFIG= yes CMAKE_ARGS= -DCMAKE_PREFIX_PATH=${LOCALBASE} \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ -DENABLE_FLEXIAPI=NO \ -DENABLE_NLS=NO \ -DENABLE_STATIC=NO \ -DENABLE_STRICT=NO \ -DENABLE_UNIT_TESTS=NO OPTIONS_DEFINE= LDAP VIDEO OPTIONS_DEFAULT= LDAP VIDEO OPTIONS_SUB= yes LDAP_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 LDAP_USES= ldap LDAP_CMAKE_BOOL= ENABLE_LDAP VIDEO_CMAKE_BOOL= ENABLE_VIDEO post-patch: .for h in xml conference-info conference-info-linphone-extension @${REINPLACE_CMD} '/^#error/d' ${WRKSRC}/src/xml/${h}.h .endfor post-install: ${RM} -r ${STAGEDIR}${PREFIX}/share/doc/${DISTNAME} .include diff --git a/net/liblinphone/files/patch-console_linphonec.c b/net/liblinphone/files/patch-console_linphonec.c new file mode 100644 index 000000000000..db1497977963 --- /dev/null +++ b/net/liblinphone/files/patch-console_linphonec.c @@ -0,0 +1,25 @@ +--- console/linphonec.c.orig 2023-02-11 23:13:07 UTC ++++ console/linphonec.c +@@ -965,7 +965,7 @@ static int + * + */ + static int +-linphonec_idle_call () ++linphonec_idle_call (void) + { + LinphoneCore *opm=linphonec; + +@@ -1274,7 +1274,7 @@ static int + * -1 on error + */ + static int +-handle_configfile_migration() ++handle_configfile_migration(void) + { + #if !defined(_WIN32_WCE) + char *old_cfg_gui; +@@ -1555,4 +1555,3 @@ lpc_strip_blanks(char *input) + * + * + ****************************************************************************/ +- diff --git a/net/liblinphone/files/patch-src_core_paths_paths-linux.cpp b/net/liblinphone/files/patch-src_core_paths_paths-linux.cpp index 6a60af5d95ce..f7270b86f750 100644 --- a/net/liblinphone/files/patch-src_core_paths_paths-linux.cpp +++ b/net/liblinphone/files/patch-src_core_paths_paths-linux.cpp @@ -1,19 +1,19 @@ ---- src/core/paths/paths-linux.cpp.orig 2022-06-16 11:20:59 UTC +--- src/core/paths/paths-linux.cpp.orig 2022-08-08 14:58:59 UTC +++ src/core/paths/paths-linux.cpp -@@ -22,6 +22,16 @@ - +@@ -23,6 +23,16 @@ #include "paths-linux.h" + #include "linphone/api/c-factory.h" +#ifdef __FreeBSD__ +/* get_current_dir_name() is a GNU extension. + * + */ +char *get_current_dir_name() +{ +return getcwd(nullptr, 0); +} +#endif + // ============================================================================= using namespace std;