git: 7845849b9df9 - main - multimedia/bcmatroska2: Update version 5.2.1=>5.4.2

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=7845849b9df9910c6c91147f977ae85fd70a9ab6

commit 7845849b9df9910c6c91147f977ae85fd70a9ab6
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-03-26 19:40:15 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-03-27 09:17:02 +0000

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

diff --git a/multimedia/bcmatroska2/Makefile b/multimedia/bcmatroska2/Makefile
index 11e6c8bbfada..33c7b3e80c4d 100644
--- a/multimedia/bcmatroska2/Makefile
+++ b/multimedia/bcmatroska2/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	bcmatroska2
-PORTVERSION=	5.2.1
-PORTREVISION=	1
+DISTVERSION=	5.4.2
 CATEGORIES=	multimedia
 
 MAINTAINER=	bofh@FreeBSD.org
@@ -9,7 +8,8 @@ WWW=		https://www.linphone.org/
 
 LICENSE=	BSD3CLAUSE
 
-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
 USE_GITLAB=	yes
@@ -17,13 +17,12 @@ GL_SITE=	https://gitlab.linphone.org/BC
 GL_ACCOUNT=	public
 USE_LDCONFIG=	yes
 
-CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE} \
-		-DENABLE_STATIC=NO
+CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE}
 
-.include <bsd.port.pre.mk>
+#.include <bsd.port.pre.mk>
 
-.if ${COMPILER_TYPE} == clang
-CFLAGS+=	-Wno-error=incompatible-function-pointer-types
-.endif
+#.if ${COMPILER_TYPE} == clang
+#CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+#.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/multimedia/bcmatroska2/distinfo b/multimedia/bcmatroska2/distinfo
index 8af9c22f0e02..daca39426502 100644
--- a/multimedia/bcmatroska2/distinfo
+++ b/multimedia/bcmatroska2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690572807
-SHA256 (bcmatroska2-5.2.1.tar.bz2) = cbe7c47f46e6226cf6923df5c0b9138c213a56d2c04d60f2b0622a610c563b46
-SIZE (bcmatroska2-5.2.1.tar.bz2) = 790336
+TIMESTAMP = 1743017702
+SHA256 (bcmatroska2-5.4.2.tar.bz2) = 3b6b57c4125940b82c2d71f4d0fbba3350792d0f3926c3664f03459a58e68a38
+SIZE (bcmatroska2-5.4.2.tar.bz2) = 790238
diff --git a/multimedia/bcmatroska2/files/patch-CMakeLists.txt b/multimedia/bcmatroska2/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..6999da9e6a2b
--- /dev/null
+++ b/multimedia/bcmatroska2/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2025-03-26 19:37:26 UTC
++++ CMakeLists.txt
+@@ -47,6 +47,7 @@ configure_file(config.h.cmake ${PROJECT_BINARY_DIR}/bc
+ 
+ configure_file(config.h.cmake ${PROJECT_BINARY_DIR}/bcmatroska2_config.h)
+ 
++find_package(OpenSSL REQUIRED)
+ find_package(BCToolbox 5.3.0 REQUIRED)
+ 
+ include_directories(
diff --git a/multimedia/bcmatroska2/pkg-plist b/multimedia/bcmatroska2/pkg-plist
index 621a87a1b307..c3bd0466c611 100644
--- a/multimedia/bcmatroska2/pkg-plist
+++ b/multimedia/bcmatroska2/pkg-plist
@@ -1,7 +1,7 @@
 include/corec/array/array.h
 include/corec/banned.h
+include/corec/bcmatroska2_config.h
 include/corec/confhelper.h
-include/corec/config.h
 include/corec/corec.h
 include/corec/err.h
 include/corec/helper.h
@@ -34,10 +34,8 @@ include/ebml/ebml_internal.h
 include/matroska/matroska.h
 include/matroska/matroska_internal.h
 include/matroska/matroska_sem.h
-lib/libbcmatroska2.so
-lib/libbcmatroska2.so.0
-lib/libbcmatroska2.so.0.0.0
-%%DATADIR%%/cmake/BcMatroska2Config.cmake
-%%DATADIR%%/cmake/BcMatroska2ConfigVersion.cmake
-%%DATADIR%%/cmake/BcMatroska2Targets-%%CMAKE_BUILD_TYPE%%.cmake
-%%DATADIR%%/cmake/BcMatroska2Targets.cmake
+lib/libbcmatroska2.a
+share/BCMatroska2/cmake/BCMatroska2Config.cmake
+share/BCMatroska2/cmake/BCMatroska2ConfigVersion.cmake
+share/BCMatroska2/cmake/BCMatroska2Targets-%%CMAKE_BUILD_TYPE%%.cmake
+share/BCMatroska2/cmake/BCMatroska2Targets.cmake