git: 75c8ce537639 - main - multimedia/emby-server: enable opencl

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Sun, 12 Jun 2022 19:33:54 UTC
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=75c8ce537639de51d53735a19dd0609f02cb6e5f

commit 75c8ce537639de51d53735a19dd0609f02cb6e5f
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2022-06-12 19:22:39 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2022-06-12 19:22:39 +0000

    multimedia/emby-server: enable opencl
    
    Enable opencl for the embedded ffmpeg build.
---
 multimedia/emby-server/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/multimedia/emby-server/Makefile b/multimedia/emby-server/Makefile
index 4b99b0207462..3dcff11f1e60 100644
--- a/multimedia/emby-server/Makefile
+++ b/multimedia/emby-server/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	emby-server
 DISTVERSION=	4.7.2.0
+PORTREVISION=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/ \
 		https://mediabrowser.github.io/embytools/
@@ -23,7 +24,8 @@ LICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
 
 ONLY_FOR_ARCHS=	amd64
 
-BUILD_DEPENDS=	nasm:devel/nasm
+BUILD_DEPENDS=	nasm:devel/nasm \
+		${LOCALBASE}/include/CL/opencl.h:devel/opencl
 LIB_DEPENDS=	libaribb24.so:multimedia/aribb24 \
 		libass.so:multimedia/libass \
 		libchromaprint.so:audio/chromaprint \
@@ -35,6 +37,7 @@ LIB_DEPENDS=	libaribb24.so:multimedia/aribb24 \
 		libgnutls.so:security/gnutls \
 		libmfx.so:multimedia/intel-media-sdk \
 		libogg.so:audio/libogg \
+		libOpenCL.so:devel/ocl-icd \
 		libopus.so:audio/opus \
 		libpng.so:graphics/png \
 		libraw.so:graphics/libraw \
@@ -86,6 +89,7 @@ CONFIGURE_ARGS=	--cc="${CC}" \
 		--enable-libx264 \
 		--enable-libx265 \
 		--enable-libzvbi \
+		--enable-opencl \
 		--enable-optimizations \
 		--enable-static \
 		--enable-vaapi \