git: 3ad97c063044 - main - graphics/kmscube: expose GSTREAMER option as flavor

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 25 Jan 2024 00:34:34 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3ad97c0630445e9ddaebc16a0f338ea8f636d3db

commit 3ad97c0630445e9ddaebc16a0f338ea8f636d3db
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-01-24 12:34:45 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-01-25 00:25:48 +0000

    graphics/kmscube: expose GSTREAMER option as flavor
---
 graphics/kmscube/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/graphics/kmscube/Makefile b/graphics/kmscube/Makefile
index 632453e1f593..d246d0719e45 100644
--- a/graphics/kmscube/Makefile
+++ b/graphics/kmscube/Makefile
@@ -11,6 +11,12 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libdrm.so:graphics/libdrm
 
+FLAVORS=	default gstreamer
+default_CONFLICTS_INSTALL=	${PORTNAME}-gstreamer
+gstreamer_PKGNAMESUFFIX=	-gstreamer
+gstreamer_CONFLICTS_INSTALL=	${PORTNAME}
+gstreamer_OPTIONS_SLAVE=	GSTREAMER
+
 USES=		gl meson pkgconfig
 USE_GITLAB=	yes
 USE_GL=		egl gbm glesv2
@@ -23,6 +29,7 @@ PLIST_FILES=	bin/${PORTNAME} \
 
 OPTIONS_DEFINE=	GSTREAMER PNG
 OPTIONS_DEFAULT=PNG
+OPTIONS_SLAVE=	${${FLAVOR}_OPTIONS_SLAVE}
 
 GSTREAMER_USES=		gnome gstreamer
 GSTREAMER_USE=		GNOME=glib20