diff --git a/net/bctoolbox/Makefile b/net/bctoolbox/Makefile index 801937e3cd57..2c95f69fe655 100644 --- a/net/bctoolbox/Makefile +++ b/net/bctoolbox/Makefile @@ -1,26 +1,27 @@ PORTNAME= bctoolbox -PORTVERSION= 0.6.0 -PORTREVISION= 3 +PORTVERSION= 5.1.38 CATEGORIES= net -MASTER_SITES= https://www.linphone.org/releases/sources/bctoolbox/ +MASTER_SITES= https://gitlab.linphone.org/BC/public/${PORTNAME}/-/archive/${PORTVERSION}/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bofh@FreeBSD.org COMMENT= Belledonne Communications utility library -LICENSE= GPLv2+ -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= mbedtls>=2.3.0_2:security/mbedtls LIB_DEPENDS= libmbedtls.so:security/mbedtls USES= cmake compiler:c++11-lib USE_LDCONFIG= yes -CFLAGS+= -DHAVE_ARC4RANDOM CMAKE_ARGS= -DENABLE_STATIC=NO -DENABLE_STRICT=NO \ - -DENABLE_TESTS_COMPONENT=NO + -DENABLE_TESTS_COMPONENT=NO \ + -DCMAKE_SKIP_INSTALL_RPATH=ON + +CFLAGS+= -DHAVE_ARC4RANDOM post-patch: @${REINPLACE_CMD} '/clock_gettime/d' ${WRKSRC}/CMakeLists.txt .include diff --git a/net/bctoolbox/distinfo b/net/bctoolbox/distinfo index 551da5d7beaf..8979d3a671be 100644 --- a/net/bctoolbox/distinfo +++ b/net/bctoolbox/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1505998461 -SHA256 (bctoolbox-0.6.0.tar.gz) = 4657e1970df262f77e47dee63b1135a5e063b63b0c42cfe7f41642b22e3831a8 -SIZE (bctoolbox-0.6.0.tar.gz) = 111344 +TIMESTAMP = 1655299638 +SHA256 (bctoolbox-5.1.38.tar.gz) = 4301b2f9caf7d6f63c381476f69296ed7676dbe384683cba545b866e567c56b1 +SIZE (bctoolbox-5.1.38.tar.gz) = 181516 diff --git a/net/bctoolbox/files/patch-src-CMakeLists.txt b/net/bctoolbox/files/patch-src-CMakeLists.txt index c8969d2f44a8..2ae0a23516fa 100644 --- a/net/bctoolbox/files/patch-src-CMakeLists.txt +++ b/net/bctoolbox/files/patch-src-CMakeLists.txt @@ -1,10 +1,10 @@ ---- src/CMakeLists.txt.orig 2017-07-17 12:16:03 UTC +--- src/CMakeLists.txt.orig 2022-05-27 19:35:26 UTC +++ src/CMakeLists.txt -@@ -119,6 +119,7 @@ if(ENABLE_SHARED) +@@ -177,6 +177,7 @@ if(ENABLE_SHARED) ) endif() endif() + target_link_libraries(bctoolbox PRIVATE execinfo) if(HAVE_LIBRT) target_link_libraries(bctoolbox PRIVATE rt) endif() diff --git a/net/bctoolbox/files/patch-src-utils-port.c b/net/bctoolbox/files/patch-src-utils-port.c index 755fd32a214c..c6bc479b4ef7 100644 --- a/net/bctoolbox/files/patch-src-utils-port.c +++ b/net/bctoolbox/files/patch-src-utils-port.c @@ -1,11 +1,11 @@ ---- src/utils/port.c.orig 2017-07-17 12:16:03 UTC +--- src/utils/port.c.orig 2022-05-27 19:35:26 UTC +++ src/utils/port.c -@@ -1331,7 +1331,7 @@ void bctbx_sockaddr_remove_nat64_mapping(const struct +@@ -1438,7 +1438,7 @@ void bctbx_sockaddr_remove_nat64_mapping(const struct if (htonl(0x0064ff9b) == #ifdef _MSC_VER ((in6->sin6_addr.u.Word[0] << 16) & in6->sin6_addr.u.Word[1]) -#elif __APPLE__ +#elif __APPLE__ || __FreeBSD__ in6->sin6_addr.__u6_addr.__u6_addr32[0] #else in6->sin6_addr.s6_addr32[0] diff --git a/net/bctoolbox/pkg-descr b/net/bctoolbox/pkg-descr index f452be1a185e..53b138dd0a5f 100644 --- a/net/bctoolbox/pkg-descr +++ b/net/bctoolbox/pkg-descr @@ -1,3 +1,4 @@ -Belledonne Communications utility library. +Utilities library used by Belledonne Communications softwares like +belle-sip, mediastreamer2 and liblinphone. -WWW: https://www.linphone.org/ +WWW: https://gitlab.linphone.org/BC/public/bctoolbox diff --git a/net/bctoolbox/pkg-plist b/net/bctoolbox/pkg-plist index afbada4891d4..72006894e77f 100644 --- a/net/bctoolbox/pkg-plist +++ b/net/bctoolbox/pkg-plist @@ -1,20 +1,30 @@ +include/bctoolbox/charconv.h +include/bctoolbox/compiler.h include/bctoolbox/crypto.h +include/bctoolbox/crypto.hh include/bctoolbox/defs.h include/bctoolbox/exception.hh include/bctoolbox/list.h include/bctoolbox/logging.h include/bctoolbox/map.h +include/bctoolbox/param_string.h include/bctoolbox/parser.h include/bctoolbox/port.h +include/bctoolbox/regex.h +include/bctoolbox/utils.hh include/bctoolbox/vconnect.h include/bctoolbox/vfs.h +include/bctoolbox/vfs_encrypted.hh +include/bctoolbox/vfs_standard.h lib/libbctoolbox.so lib/libbctoolbox.so.1 libdata/pkgconfig/bctoolbox.pc +%%DATADIR%%/cmake/ConfigureSpecfile.cmake +%%DATADIR%%/cmake/MakeArchive.cmake +%%DATADIR%%/cmake/bctoolboxCMakeUtils.cmake +%%DATADIR%%/cmake/bctoolboxConfig.cmake +%%DATADIR%%/cmake/bctoolboxConfigVersion.cmake +%%DATADIR%%/cmake/bctoolboxTargets-%%CMAKE_BUILD_TYPE%%.cmake +%%DATADIR%%/cmake/bctoolboxTargets.cmake %%DATADIR%%/cmake/BcGitVersion.cmake -%%DATADIR%%/cmake/BcToolboxCMakeUtils.cmake -%%DATADIR%%/cmake/BcToolboxConfig.cmake -%%DATADIR%%/cmake/BcToolboxConfigVersion.cmake -%%DATADIR%%/cmake/BcToolboxTargets-%%CMAKE_BUILD_TYPE%%.cmake -%%DATADIR%%/cmake/BcToolboxTargets.cmake %%DATADIR%%/cmake/gitversion.h.in