git: 6ef20e1815c7 - main - x11/openrgb: New port

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 02:23:58 UTC
The branch main has been updated by nc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6ef20e1815c7eea2a3213a44777e3ea0ce518baf

commit 6ef20e1815c7eea2a3213a44777e3ea0ce518baf
Author:     Vidar Karlsen <vidar@karlsen.tech>
AuthorDate: 2022-05-06 12:05:11 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-08-27 02:23:47 +0000

    x11/openrgb: New port
    
    PR:     263815
---
 x11/Makefile                        |  1 +
 x11/openrgb/Makefile                | 35 +++++++++++++++++++++++++++++++++++
 x11/openrgb/distinfo                |  3 +++
 x11/openrgb/files/patch-OpenRGB.pro | 11 +++++++++++
 x11/openrgb/pkg-descr               |  3 +++
 5 files changed, 53 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index d2f513fa00a9..d7dbf4814d9a 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -266,6 +266,7 @@
     SUBDIR += nwg-look
     SUBDIR += nwg-menu
     SUBDIR += nxcomp
+    SUBDIR += openrgb
     SUBDIR += p5-Clipboard
     SUBDIR += p5-X11-GUITest
     SUBDIR += p5-X11-IdleTime
diff --git a/x11/openrgb/Makefile b/x11/openrgb/Makefile
new file mode 100644
index 000000000000..a9d80a988883
--- /dev/null
+++ b/x11/openrgb/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	openrgb
+PORTVERSION=	0.7.20220505
+CATEGORIES=	x11
+
+MAINTAINER=	vidar@karlsen.tech
+COMMENT=	Software to control a multitude of (a)RGB devices
+
+LICENSE=	GPLv2
+
+BUILD_DEPENDS=	git>0:devel/git \
+		hidapi>0:comms/hidapi \
+		mbedtls>0:security/mbedtls \
+		qt5-qmake>0:devel/qt5-qmake
+LIB_DEPENDS=	libGL.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=	817d5d55dfb2baf932effe9fec9c557ad1529eb9
+
+USE_GL=		gl
+USE_QT=		buildtools core gui widgets
+
+PLIST_FILES=	bin/openrgb
+
+do-install:
+		${INSTALL_PROGRAM} ${WRKSRC}/openrgb ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/x11/openrgb/distinfo b/x11/openrgb/distinfo
new file mode 100644
index 000000000000..ab06e9449700
--- /dev/null
+++ b/x11/openrgb/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1651760910
+SHA256 (CalcProgrammer1-OpenRGB-817d5d55dfb2baf932effe9fec9c557ad1529eb9_GL0.tar.gz) = fdc25136ccbd97c793f170fff14b45a9195136fe46e8f8c594048e786a97fe3d
+SIZE (CalcProgrammer1-OpenRGB-817d5d55dfb2baf932effe9fec9c557ad1529eb9_GL0.tar.gz) = 29236808
diff --git a/x11/openrgb/files/patch-OpenRGB.pro b/x11/openrgb/files/patch-OpenRGB.pro
new file mode 100644
index 000000000000..ed6d88129dcc
--- /dev/null
+++ b/x11/openrgb/files/patch-OpenRGB.pro
@@ -0,0 +1,11 @@
+--- OpenRGB.pro.orig	2022-05-05 02:48:58 UTC
++++ OpenRGB.pro
+@@ -40,7 +40,7 @@ TEMPLATE    = app
+ # Automatically generated build information                                                     #
+ #-----------------------------------------------------------------------------------------------#
+ win32:BUILDDATE = $$system(date /t)
+-unix:BUILDDATE  = $$system(date -R -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}")
++unix:BUILDDATE  = $$system(date -R)
+ GIT_COMMIT_ID   = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse HEAD)
+ GIT_COMMIT_DATE = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ show -s --format=%ci HEAD)
+ GIT_BRANCH      = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse --abbrev-ref HEAD)
diff --git a/x11/openrgb/pkg-descr b/x11/openrgb/pkg-descr
new file mode 100644
index 000000000000..2de98194fa11
--- /dev/null
+++ b/x11/openrgb/pkg-descr
@@ -0,0 +1,3 @@
+Open source RGB lighting control that doesn't depend on manufacturer software.
+
+WWW: https://openrgb.org