git: 0e215e9684b1 - main - textproc/belr: Update version 5.2.94=>5.4.2

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=0e215e9684b1eb94ec8d87ac3c4788ec6c860000

commit 0e215e9684b1eb94ec8d87ac3c4788ec6c860000
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-03-26 20:10:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-03-27 09:17:03 +0000

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

diff --git a/textproc/belr/Makefile b/textproc/belr/Makefile
index 4ef5d91fef38..18d9d8c99d41 100644
--- a/textproc/belr/Makefile
+++ b/textproc/belr/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	belr
-DISTVERSION=	5.2.94
+DISTVERSION=	5.4.2
 CATEGORIES=	textproc
 
 MAINTAINER=	bofh@FreeBSD.org
@@ -9,17 +9,21 @@ 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 compiler:c++17-lang
+USES=		cmake compiler:c++17-lang dos2unix
 USE_GITLAB=	yes
 GL_SITE=	https://gitlab.linphone.org/BC
 GL_ACCOUNT=	public
 USE_LDCONFIG=	yes
 
+DOS2UNIX_FILES=	${WRKSRC}/CMakeLists.txt
+
 CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE} \
 		-DCMAKE_SKIP_INSTALL_RPATH=ON \
-		-DENABLE_STATIC=NO \
 		-DENABLE_STRICT=NO
 
+LDFLAGS+=	-lpthread
+
 .include <bsd.port.mk>
diff --git a/textproc/belr/distinfo b/textproc/belr/distinfo
index 2ff1594ab8d8..bc3fbff2c99a 100644
--- a/textproc/belr/distinfo
+++ b/textproc/belr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690557501
-SHA256 (belr-5.2.94.tar.bz2) = 0ae9d689eee980365c09ce8d95dacc94423275f20a762f242669c15574f2cc7f
-SIZE (belr-5.2.94.tar.bz2) = 56512
+TIMESTAMP = 1743019505
+SHA256 (belr-5.4.2.tar.bz2) = 5401f54acfc16ea8b4ef82fff791fd71f9256bb63c788f0dab684df78a8389b3
+SIZE (belr-5.4.2.tar.bz2) = 56503
diff --git a/textproc/belr/files/patch-CMakeLists.txt b/textproc/belr/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..454a9cd77d2e
--- /dev/null
+++ b/textproc/belr/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2025-03-26 20:06:19 UTC
++++ CMakeLists.txt
+@@ -51,6 +51,7 @@ endif()
+ 
+ # find_package should be invoked here to check for libraries - however do NOT
+ # call include_directories here (see below)
++find_package(OpenSSL REQUIRED)
+ find_package(BCToolbox 5.3.0 REQUIRED OPTIONAL_COMPONENTS tester)
+ #Mandatory to init default compilation flags
+ bc_init_compilation_flags(STRICT_OPTIONS_CPP STRICT_OPTIONS_C STRICT_OPTIONS_CXX ENABLE_STRICT)
diff --git a/textproc/belr/pkg-plist b/textproc/belr/pkg-plist
index 1b8040257f84..a5d15356ad94 100644
--- a/textproc/belr/pkg-plist
+++ b/textproc/belr/pkg-plist
@@ -1,18 +1,18 @@
 bin/belr-compiler
 bin/belr-parse
-bin/belr_tester
+bin/belr-tester
 include/belr/abnf.h
 include/belr/belr.h
 include/belr/grammarbuilder.h
 include/belr/parser.h
-lib/cmake/belr/belrConfig.cmake
-lib/cmake/belr/belrTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/belr/belrTargets.cmake
+lib/cmake/Belr/BelrConfig.cmake
+lib/cmake/Belr/BelrConfigVersion.cmake
+lib/cmake/Belr/BelrTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Belr/BelrTargets.cmake
+lib/libbelr.a
 %%DATADIR%%-tester/res/basicgrammar.txt
 %%DATADIR%%-tester/res/register.txt
 %%DATADIR%%-tester/res/response.txt
 %%DATADIR%%-tester/res/sipgrammar.txt
 %%DATADIR%%-tester/res/vcardgrammar.txt
 %%DATADIR%%/grammars/belr-grammar-example.blr
-lib/libbelr.so
-lib/libbelr.so.1