git: 435d3d3bc31e - main - multimedia/mkvtoolnix-nox11: Add mkvtoolnix without GUI variant

From: Thomas Zander <riggs_at_FreeBSD.org>
Date: Sat, 04 Mar 2023 16:46:35 UTC
The branch main has been updated by riggs:

URL: https://cgit.FreeBSD.org/ports/commit/?id=435d3d3bc31e7471a08f708dc8dd0ddb1b3876d2

commit 435d3d3bc31e7471a08f708dc8dd0ddb1b3876d2
Author:     Thomas Zander <riggs@FreeBSD.org>
AuthorDate: 2023-03-04 14:34:16 +0000
Commit:     Thomas Zander <riggs@FreeBSD.org>
CommitDate: 2023-03-04 16:45:50 +0000

    multimedia/mkvtoolnix-nox11: Add mkvtoolnix without GUI variant
    
    Details: The default mkvtoolnix package comes with a large number of x11
    related dependencies. Without UI, the tools still provide very useful
    functionality, and are well suited for headless systems. Having a -nox11
    instance of the port allows to provide an official GUI-free package.
---
 multimedia/Makefile                  |  1 +
 multimedia/mkvtoolnix-nox11/Makefile | 17 +++++++++++++++++
 multimedia/mkvtoolnix/Makefile       |  4 ++++
 3 files changed, 22 insertions(+)

diff --git a/multimedia/Makefile b/multimedia/Makefile
index 7875ba189f9b..7474c3b6441a 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -227,6 +227,7 @@
     SUBDIR += mkclean
     SUBDIR += mkvalidator
     SUBDIR += mkvtoolnix
+    SUBDIR += mkvtoolnix-nox11
     SUBDIR += mkxvcd
     SUBDIR += mlt6
     SUBDIR += mlt6-qt5
diff --git a/multimedia/mkvtoolnix-nox11/Makefile b/multimedia/mkvtoolnix-nox11/Makefile
new file mode 100644
index 000000000000..e1300316bcfa
--- /dev/null
+++ b/multimedia/mkvtoolnix-nox11/Makefile
@@ -0,0 +1,17 @@
+PORTNAME=	mkvtoolnis-nox11
+CATEGORIES=	lang
+
+PORTREVISION=	0
+
+MAINTAINER=	riggs@FreeBSD.org
+COMMENT=	Tools to extract from/get info about/create Matroska media streams (no X11)
+
+MASTERDIR=	${.CURDIR}/../mkvtoolnix
+
+CONFLICTS=	mkvtoolnix
+
+OPTIONS_EXCLUDE=GUI
+
+SFX=		-nox11
+
+.include "${MASTERDIR}/Makefile"
diff --git a/multimedia/mkvtoolnix/Makefile b/multimedia/mkvtoolnix/Makefile
index 1ed41fda99ad..8294be130eda 100644
--- a/multimedia/mkvtoolnix/Makefile
+++ b/multimedia/mkvtoolnix/Makefile
@@ -1,8 +1,10 @@
 PORTNAME=	mkvtoolnix
 PORTVERSION=	74.0.0
+PORTREVISION?=	1
 CATEGORIES=	multimedia audio
 MASTER_SITES=	https://www.bunkus.org/videotools/mkvtoolnix/sources/ \
 		https://mkvtoolnix.download/sources/
+PKGNAMESUFFIX=	${SFX}
 
 MAINTAINER=	riggs@FreeBSD.org
 COMMENT=	Tools to extract from/get info about/create Matroska media streams
@@ -28,6 +30,8 @@ LIB_DEPENDS=	libvorbis.so:audio/libvorbis \
 USES=		compiler:c++17-lang iconv localbase pkgconfig qmake:no_env qt:5 tar:xz
 USE_QT=		buildtools:build concurrent core linguisttools:build multimedia svg
 
+CONFLICTS=	mkvtoolnix-nox11
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-boost=${LOCALBASE} \
 		--with-docbook-xsl-root=${PREFIX}/share/xsl/docbook \