PORTNAME=	qjackctl
DISTVERSIONPREFIX=	v
DISTVERSION=	1.0.6
CATEGORIES=	audio

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Qt interface for JACK Audio Connection Kit
WWW=		https://qjackctl.sourceforge.io/ \
		https://github.com/rncbc/qjackctl

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libjack.so:audio/jack

USES=		cmake compiler:c++17-lang desktop-file-utils gl localbase:ldflags pkgconfig qt:6
USE_QT=		base svg tools:build
USE_GL=		gl

USE_GITHUB=	yes
GH_ACCOUNT=	rncbc

OPTIONS_DEFINE=		DBUS SYSTRAY XUNIQUE
OPTIONS_DEFAULT=	DBUS SYSTRAY XUNIQUE
OPTIONS_GROUP=		AIFACE
OPTIONS_GROUP_AIFACE=	ALSA PORTAUDIO

AIFACE_DESC=		Other audio interfaces
SYSTRAY_DESC=		System tray icon support
XUNIQUE_DESC=		X11 unique/single instance

ALSA_CMAKE_BOOL=	CONFIG_ALSA_SEQ
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib

DBUS_CMAKE_BOOL=	CONFIG_DBUS

PORTAUDIO_CMAKE_BOOL=	CONFIG_PORTAUDIO
PORTAUDIO_LIB_DEPENDS=	libportaudio.so:audio/portaudio

SYSTRAY_CMAKE_BOOL=	CONFIG_SYSTEM_TRAY

XUNIQUE_CMAKE_BOOL=	CONFIG_XUNIQUE
XUNIQUE_USES=		xorg
XUNIQUE_USE=		XORG=x11

BINARY_ALIAS=	git=false

.include <bsd.port.mk>
