git: 5acdf0312328 - main - deskutils/belcard: Update version 5.2.94=>5.4.2

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=5acdf031232893bdc3b7c7529c09fbaefebe78b6

commit 5acdf031232893bdc3b7c7529c09fbaefebe78b6
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-03-26 20:32:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-03-27 09:17:04 +0000

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

diff --git a/deskutils/belcard/Makefile b/deskutils/belcard/Makefile
index 256c5ab5812a..38b860a69ab9 100644
--- a/deskutils/belcard/Makefile
+++ b/deskutils/belcard/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	belcard
-DISTVERSION=	5.2.94
+DISTVERSION=	5.4.2
 CATEGORIES=	deskutils
 
 MAINTAINER=	bofh@FreeBSD.org
@@ -9,18 +9,21 @@ WWW=		https://www.linphone.org/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-LIB_DEPENDS=	libbctoolbox.so:net/bctoolbox \
-		libbelr.so:textproc/belr
+BUILD_DEPENDS=	${LOCALBASE}/lib/libbctoolbox.a:net/bctoolbox \
+		${LOCALBASE}/lib/libbcunit.a:devel/bcunit \
+		${LOCALBASE}/lib/libbelr.a:textproc/belr
 
-USES=		cmake compiler:c++17-lang
+USES=		cmake compiler:c++17-lang dos2unix
+DOS2UNIX_FILES=	${WRKSRC}/CMakeLists.txt
 USE_GITLAB=	yes
 GL_SITE=	https://gitlab.linphone.org/BC
 GL_ACCOUNT=	public
 USE_LDCONFIG=	yes
 
 CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE} \
-		-DENABLE_STATIC=NO \
 		-DENABLE_STRICT=NO \
 		-DENABLE_UNIT_TESTS=NO
 
+LDFLAGS+=	-lpthread
+
 .include <bsd.port.mk>
diff --git a/deskutils/belcard/distinfo b/deskutils/belcard/distinfo
index ae86201f74db..3f6ebc089c17 100644
--- a/deskutils/belcard/distinfo
+++ b/deskutils/belcard/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690557583
-SHA256 (belcard-5.2.94.tar.bz2) = 009c9f139461f9978a4ffbb334c2d300d98ffd8194758a95a5ecd44a255fea9f
-SIZE (belcard-5.2.94.tar.bz2) = 150701
+TIMESTAMP = 1743020630
+SHA256 (belcard-5.4.2.tar.bz2) = afbca12cd9c1ab92fbabb88be958e9d7bdddab90929a4eb800762f42998c39d6
+SIZE (belcard-5.4.2.tar.bz2) = 157701
diff --git a/deskutils/belcard/files/patch-CMakeLists.txt b/deskutils/belcard/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..a238a3aff131
--- /dev/null
+++ b/deskutils/belcard/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2025-03-26 20:27:29 UTC
++++ CMakeLists.txt
+@@ -47,6 +47,7 @@ endif()
+ 	add_definitions(-D_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING)
+ endif()
+ 
++find_package(OpenSSL REQUIRED)
+ find_package(Belr 5.3.0 REQUIRED)
+ find_package(BCToolbox 5.3.0 REQUIRED OPTIONAL_COMPONENTS tester)
+ 
diff --git a/deskutils/belcard/pkg-plist b/deskutils/belcard/pkg-plist
index e65e22cef676..654276f0d68b 100644
--- a/deskutils/belcard/pkg-plist
+++ b/deskutils/belcard/pkg-plist
@@ -18,9 +18,10 @@ include/belcard/belcard_rfc6474.hpp
 include/belcard/belcard_security.hpp
 include/belcard/belcard_utils.hpp
 include/belcard/vcard_grammar.hpp
-lib/libbelcard.so
-lib/libbelcard.so.1
-%%DATADIR%%/cmake/belcardConfig.cmake
-%%DATADIR%%/cmake/belcardTargets-%%CMAKE_BUILD_TYPE%%.cmake
-%%DATADIR%%/cmake/belcardTargets.cmake
-share/belr/grammars/vcard_grammar
+lib/libbelcard.a
+share/BelCard/cmake/BelCardConfig.cmake
+share/BelCard/cmake/BelCardConfigVersion.cmake
+share/BelCard/cmake/BelCardTargets-%%CMAKE_BUILD_TYPE%%.cmake
+share/BelCard/cmake/BelCardTargets.cmake
+share/belr/grammars/vcard3_grammar.belr
+share/belr/grammars/vcard_grammar.belr