git: 7a3d5bfb6a8a - main - security/bzrtp: Update version 5.2.94=>5.4.2

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 27 Mar 2025 09:17:57 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7a3d5bfb6a8a4e232944f599ec3125bf9f8e5ef1

commit 7a3d5bfb6a8a4e232944f599ec3125bf9f8e5ef1
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-03-26 18:27:06 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-03-27 09:17:02 +0000

    security/bzrtp: Update version 5.2.94=>5.4.2
    
    Changelog: https://gitlab.linphone.org/BC/public/bzrtp/-/tags/5.4.2
    
    Sponsored by:   Cybermancer Infosec
---
 security/bzrtp/Makefile                   |  6 +++---
 security/bzrtp/distinfo                   |  6 +++---
 security/bzrtp/files/patch-CMakeLists.txt | 10 ++++++++++
 security/bzrtp/pkg-plist                  | 11 +++++------
 4 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/security/bzrtp/Makefile b/security/bzrtp/Makefile
index dacfb5db3164..9816979d199c 100644
--- a/security/bzrtp/Makefile
+++ b/security/bzrtp/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	bzrtp
-PORTVERSION=	5.2.94
+DISTVERSION=	5.4.2
 CATEGORIES=	security
 
 MAINTAINER=	bofh@FreeBSD.org
@@ -9,7 +9,8 @@ WWW=		https://www.linphone.org
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-LIB_DEPENDS=	libbctoolbox.so:net/bctoolbox
+BUILD_DEPENDS=	${LOCALBASE}/lib/libbctoolbox.a:net/bctoolbox \
+		${LOCALBASE}/lib/libbcunit.a:devel/bcunit
 
 USES=		cmake cpe gnome sqlite
 CPE_VENDOR=	${PORTNAME}_project
@@ -20,7 +21,6 @@ USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 
 CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE} \
-		-DENABLE_STATIC=NO \
 		-DENABLE_STRICT=NO
 
 post-patch:
diff --git a/security/bzrtp/distinfo b/security/bzrtp/distinfo
index 5274d949707e..f980a0a7141b 100644
--- a/security/bzrtp/distinfo
+++ b/security/bzrtp/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690555564
-SHA256 (bzrtp-5.2.94.tar.bz2) = a88422886decea6fe1f71cb487b28a4c3de2cd9ddeff95f9509bc5179854200a
-SIZE (bzrtp-5.2.94.tar.bz2) = 156810
+TIMESTAMP = 1743013166
+SHA256 (bzrtp-5.4.2.tar.bz2) = fd7cf3412a541d2866c6adf4d36c3cbb5b56b671ccedefc7e0e8aeff8b26e1c7
+SIZE (bzrtp-5.4.2.tar.bz2) = 154138
diff --git a/security/bzrtp/files/patch-CMakeLists.txt b/security/bzrtp/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..06cb1f864964
--- /dev/null
+++ b/security/bzrtp/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2025-03-26 18:23:19 UTC
++++ CMakeLists.txt
+@@ -46,6 +46,7 @@ check_library_exists("m" "sqrt" "" HAVE_SQRT)
+ include(CheckLibraryExists)
+ check_library_exists("m" "sqrt" "" HAVE_SQRT)
+ 
++find_package(OpenSSL REQUIRED)
+ find_package(BCToolbox 5.3.0 REQUIRED OPTIONAL_COMPONENTS tester)
+ if(ENABLE_PQCRYPTO)
+ 	find_package(PostQuantumCryptoEngine 5.3.0 REQUIRED)
diff --git a/security/bzrtp/pkg-plist b/security/bzrtp/pkg-plist
index 55986a718634..fc6e36c5148a 100644
--- a/security/bzrtp/pkg-plist
+++ b/security/bzrtp/pkg-plist
@@ -1,7 +1,6 @@
 include/bzrtp/bzrtp.h
-lib/libbzrtp.so
-lib/libbzrtp.so.0
-%%DATADIR%%/cmake/bzrtpConfig.cmake
-%%DATADIR%%/cmake/bzrtpConfigVersion.cmake
-%%DATADIR%%/cmake/bzrtpTargets-%%CMAKE_BUILD_TYPE%%.cmake
-%%DATADIR%%/cmake/bzrtpTargets.cmake
+lib/libbzrtp.a
+share/BZRTP/cmake/BZRTPConfig.cmake
+share/BZRTP/cmake/BZRTPConfigVersion.cmake
+share/BZRTP/cmake/BZRTPTargets-%%CMAKE_BUILD_TYPE%%.cmake
+share/BZRTP/cmake/BZRTPTargets.cmake