git: 61dc21a3030c - main - multimedia/obs-ndi: Fix libndi.so name in the code and mark BROKEN

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 14 Jan 2022 19:25:31 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=61dc21a3030c154c0723a3ec27a172193fb6e890

commit 61dc21a3030c154c0723a3ec27a172193fb6e890
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-14 19:22:18 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-14 19:25:28 +0000

    multimedia/obs-ndi: Fix libndi.so name in the code and mark BROKEN
    
    PR:             258694
---
 multimedia/obs-ndi/Makefile                                 |  4 +++-
 multimedia/obs-ndi/files/patch-lib_ndi_Processing.NDI.Lib.h | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/multimedia/obs-ndi/Makefile b/multimedia/obs-ndi/Makefile
index a456aaab3c0c..0ce4f02b9bad 100644
--- a/multimedia/obs-ndi/Makefile
+++ b/multimedia/obs-ndi/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	obs-ndi
 DISTVERSION=	4.9.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	multimedia
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -17,4 +17,6 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	Palakis
 USE_QT=		core gui widgets buildtools_build qmake_build
 
+BROKEN=		ERROR: NDIlib_v4_load not found in loaded library: https://code.videolan.org/jbk/libndi/-/issues/9, bug#258694
+
 .include <bsd.port.mk>
diff --git a/multimedia/obs-ndi/files/patch-lib_ndi_Processing.NDI.Lib.h b/multimedia/obs-ndi/files/patch-lib_ndi_Processing.NDI.Lib.h
new file mode 100644
index 000000000000..eabdfff9524e
--- /dev/null
+++ b/multimedia/obs-ndi/files/patch-lib_ndi_Processing.NDI.Lib.h
@@ -0,0 +1,11 @@
+--- lib/ndi/Processing.NDI.Lib.h.orig	2022-01-14 18:57:16 UTC
++++ lib/ndi/Processing.NDI.Lib.h
+@@ -60,7 +60,7 @@
+ #			define NDILIB_REDIST_FOLDER "NDI_RUNTIME_DIR_V4"
+ #			define NDILIB_REDIST_URL    "http://new.tk/NDIRedistV4Apple"
+ #		else // __APPLE__
+-#			define NDILIB_LIBRARY_NAME  "libndi.so.4"
++#			define NDILIB_LIBRARY_NAME  "libndi.so"
+ #			define NDILIB_REDIST_FOLDER "NDI_RUNTIME_DIR_V4"
+ #			define NDILIB_REDIST_URL    ""
+ #		endif // __APPLE__