git: 391fef9e9f2a - main - multimedia/obs-ndi: Fix lookup path for libndi.so and add it as dependency

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=391fef9e9f2a873effd31feabbe50ecbf4ec4811

commit 391fef9e9f2a873effd31feabbe50ecbf4ec4811
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-14 18:04:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-14 18:06:01 +0000

    multimedia/obs-ndi: Fix lookup path for libndi.so and add it as dependency
    
    PR:             258694
    Reported by:    mario felicioni <marietto2008@gmail.com>
---
 multimedia/obs-ndi/Makefile                    |  3 ++-
 multimedia/obs-ndi/files/patch-src_obs-ndi.cpp | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/multimedia/obs-ndi/Makefile b/multimedia/obs-ndi/Makefile
index 97304ff52748..a456aaab3c0c 100644
--- a/multimedia/obs-ndi/Makefile
+++ b/multimedia/obs-ndi/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	obs-ndi
 DISTVERSION=	4.9.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	multimedia
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -10,6 +10,7 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libobs.so:multimedia/obs-studio
+RUN_DEPENDS=	${LOCALBASE}/lib/libndi.so:multimedia/libndi
 
 USES=		cmake compiler:c++11-lang localbase:ldflags qt:5
 USE_GITHUB=	yes
diff --git a/multimedia/obs-ndi/files/patch-src_obs-ndi.cpp b/multimedia/obs-ndi/files/patch-src_obs-ndi.cpp
new file mode 100644
index 000000000000..f8eb273db537
--- /dev/null
+++ b/multimedia/obs-ndi/files/patch-src_obs-ndi.cpp
@@ -0,0 +1,11 @@
+--- src/obs-ndi.cpp.orig	2022-01-14 17:54:22 UTC
++++ src/obs-ndi.cpp
+@@ -198,7 +198,7 @@ const NDIlib_v4* load_ndilib()
+ {
+ 	QStringList locations;
+ 	locations << QString(qgetenv(NDILIB_REDIST_FOLDER));
+-#if defined(__linux__) || defined(__APPLE__)
++#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
+ 	locations << "/usr/lib";
+ 	locations << "/usr/local/lib";
+ #endif