PORTNAME=	openrgb
PORTVERSION=	0.8
CATEGORIES=	x11

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Software to control a multitude of (a)RGB devices
WWW=		https://openrgb.org

LICENSE=	gpl2

BUILD_DEPENDS=	git>0:devel/git \
		hidapi>0:comms/hidapi \
		mbedtls>0:security/mbedtls \
		qt5-qmake>0:devel/qt5-qmake
LIB_DEPENDS=	libGLESv2.so:graphics/libglvnd \
		libhidapi.so:comms/hidapi \
		libmbedcrypto.so:security/mbedtls \
		libmbedtls.so:security/mbedtls \
		libmbedx509.so:security/mbedtls

USES=		gmake gl qmake qt:5

USE_GITLAB=	yes
GL_ACCOUNT=	CalcProgrammer1
GL_PROJECT=	OpenRGB
GL_COMMIT=	fb88964b8e514cdf4eb22da314e13f8db06a3636

USE_GL=		gl
USE_QT=		buildtools core gui linguisttools widgets

PLIST_FILES=	bin/openrgb

do-install:
		${INSTALL_PROGRAM} ${WRKSRC}/openrgb ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
