git: 04cb7d0bcd68 - main - multimedia/qt6-multimedia: Add missing deps

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Sun, 22 Dec 2024 06:53:37 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=04cb7d0bcd688c3bcd88b0ae632e787a7c75a5fa

commit 04cb7d0bcd688c3bcd88b0ae632e787a7c75a5fa
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-12-22 06:38:57 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-12-22 06:47:51 +0000

    multimedia/qt6-multimedia: Add missing deps
    
    If the GSTREAMER option is enabled, the respective audio sink for either
    the ALSA or PULSEAUDIO backend needs to be installed, otherwise
    applications like multimedia/mkvtoolnix may crash upon startup.
    
    While here, add missing graphics/libdrm dep.
    
    PR:             282078
---
 multimedia/qt6-multimedia/Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/multimedia/qt6-multimedia/Makefile b/multimedia/qt6-multimedia/Makefile
index f6c81900033f..05cd43f7b4ee 100644
--- a/multimedia/qt6-multimedia/Makefile
+++ b/multimedia/qt6-multimedia/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	multimedia
 DISTVERSION=	${QT6_VERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	multimedia
 PKGNAMEPREFIX=	qt6-
 
@@ -31,13 +31,17 @@ ALSA_CMAKE_BOOL=	FEATURE_alsa
 FFMPEG_LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
 FFMPEG_CMAKE_BOOL=	FEATURE_ffmpeg
 
-GSTREAMER_LIB_DEPENDS=	libwayland-client.so:graphics/wayland
+GSTREAMER_LIB_DEPENDS=	libdrm.so:graphics/libdrm \
+			libwayland-client.so:graphics/wayland
 # As of 2024-09-29, Mk/Uses/xorg.mk freaks out if no modules are defined
 # via USE_XORG, so FTTB, we must duplicate USES=xorg in the GSTREAMER
 # and X11 options and cannot hoist it to the main USES declaration as a
 # noop.
 GSTREAMER_USES=		gnome gstreamer:1 xorg
-GSTREAMER_USE=		GL=egl GNOME=glib20 GSTREAMER=bad,gl,good,ugly XORG=xcb
+GSTREAMER_USE=		GL=egl \
+			GNOME=glib20 \
+			GSTREAMER=bad,gl,good,ugly,${"${PORT_OPTIONS:MALSA}":?alsa:pulse} \
+			XORG=xcb
 GSTREAMER_CMAKE_BOOL=	FEATURE_gstreamer \
 			FEATURE_gstreamer_1_0 \
 			FEATURE_gstreamer_app \