git: a0ce4ba2f5af - main - x11/openrgb: Update to 1.0

From: Ganael LAPLANCHE <martymac_at_FreeBSD.org>
Date: Tue, 06 Oct 2026 10:09:12 UTC
The branch main has been updated by martymac:

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

commit a0ce4ba2f5af7eb5cf2ec24c37b2dd39f2e7d966
Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
AuthorDate: 2026-10-06 10:06:06 +0000
Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
CommitDate: 2026-10-06 10:06:06 +0000

    x11/openrgb: Update to 1.0
    
    Also:
    - Remove LIB_DEPENDS from BUILD_DEPENDS
    - Switch to QT6
    - Use a cleaner/predictable GL_TAGNAME
    - Remove do-install target to leave the build system install files
    - Use a pkg-plist file
    - Add more details to pkg-descr
    
    PR:             299149
    Approved by:    Vidar Karlsen <vidar@karlsen.tech> (maintainer)
---
 x11/openrgb/Makefile                                | 21 ++++++++-------------
 x11/openrgb/distinfo                                |  6 +++---
 ..._LianLiController_LianLiUniHub__AL10Controller.h | 11 -----------
 x11/openrgb/files/patch-DetectionManager.cpp        | 19 +++++++++++++++++++
 x11/openrgb/files/patch-OpenRGB.pro                 | 11 -----------
 ...cies_hueplusplus-1.0.0_src_EntertainmentMode.cpp | 10 ----------
 x11/openrgb/pkg-descr                               |  9 +++++++++
 x11/openrgb/pkg-plist                               |  4 ++++
 8 files changed, 43 insertions(+), 48 deletions(-)

diff --git a/x11/openrgb/Makefile b/x11/openrgb/Makefile
index 6eeb0e704f52..45d5193ff264 100644
--- a/x11/openrgb/Makefile
+++ b/x11/openrgb/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	openrgb
-PORTVERSION=	0.8
-PORTREVISION=	2
+PORTVERSION=	1.0
 CATEGORIES=	x11
 
 MAINTAINER=	vidar@karlsen.tech
@@ -9,29 +8,25 @@ WWW=		https://openrgb.org
 
 LICENSE=	GPLv2
 
-BUILD_DEPENDS=	git>0:devel/git \
-		hidapi>0:comms/hidapi \
-		mbedtls3>0:security/mbedtls3 \
-		qt5-qmake>0:devel/qt5-qmake
+BUILD_DEPENDS=	git>0:devel/git
 LIB_DEPENDS=	libGL.so:graphics/libglvnd \
 		libhidapi.so:comms/hidapi \
 		libmbedcrypto.so:security/mbedtls3 \
 		libmbedtls.so:security/mbedtls3 \
 		libmbedx509.so:security/mbedtls3
 
-USES=		gmake gl qmake qt:5
+USES=		gmake gl pkgconfig qmake qt:6
 
 USE_GITLAB=	yes
 GL_ACCOUNT=	CalcProgrammer1
 GL_PROJECT=	OpenRGB
-GL_TAGNAME=	fb88964b8e514cdf4eb22da314e13f8db06a3636
+GL_TAGNAME=	release_${PORTVERSION}
 
 USE_GL=		gl
-USE_QT=		buildtools core gui linguisttools widgets
+USE_QT=		base tools
 
-PLIST_FILES=	bin/openrgb
-
-do-install:
-		${INSTALL_PROGRAM} ${WRKSRC}/openrgb ${STAGEDIR}${PREFIX}/bin
+post-extract:
+		${MV} ${WRKSRC}/Controllers/LogitechController/LogitechHIDPP20Controller/LogitechHIDPP20Controller_Linux.cpp \
+			${WRKSRC}/Controllers/LogitechController/LogitechHIDPP20Controller/LogitechHIDPP20Controller_Linux_FreeBSD.cpp
 
 .include <bsd.port.mk>
diff --git a/x11/openrgb/distinfo b/x11/openrgb/distinfo
index 01d10aa79d0e..07c92cf1db51 100644
--- a/x11/openrgb/distinfo
+++ b/x11/openrgb/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1678395750
-SHA256 (CalcProgrammer1-OpenRGB-fb88964b8e514cdf4eb22da314e13f8db06a3636_GL0.tar.gz) = 5887b33c8d4e717f6636ff97f2ff0317d622490bc1cf79706e7c6a5c6fbebb84
-SIZE (CalcProgrammer1-OpenRGB-fb88964b8e514cdf4eb22da314e13f8db06a3636_GL0.tar.gz) = 29736847
+TIMESTAMP = 1790797517
+SHA256 (OpenRGB-release_1.0.tar.bz2) = df481657476fb88920a8b1294ff19730798643dc8898b1b0ebadaa5ceeed1725
+SIZE (OpenRGB-release_1.0.tar.bz2) = 10915757
diff --git a/x11/openrgb/files/patch-Controllers_LianLiController_LianLiUniHub__AL10Controller.h b/x11/openrgb/files/patch-Controllers_LianLiController_LianLiUniHub__AL10Controller.h
deleted file mode 100644
index 91fdaaa963a5..000000000000
--- a/x11/openrgb/files/patch-Controllers_LianLiController_LianLiUniHub__AL10Controller.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- Controllers/LianLiController/LianLiUniHub_AL10Controller.h.orig	2022-11-28 03:44:33 UTC
-+++ Controllers/LianLiController/LianLiUniHub_AL10Controller.h
-@@ -16,7 +16,7 @@
- 
- #include "RGBController.h"
- 
--#include <libusb-1.0/libusb.h>
-+#include <libusb.h>
- 
- /*----------------------------------------------------------------------------*\
- | Global definitions.                                                          |
diff --git a/x11/openrgb/files/patch-DetectionManager.cpp b/x11/openrgb/files/patch-DetectionManager.cpp
new file mode 100644
index 000000000000..9b391ea54d4f
--- /dev/null
+++ b/x11/openrgb/files/patch-DetectionManager.cpp
@@ -0,0 +1,19 @@
+Revert upstream commit 248668ea
+
+FreeBSD's hidapi always report 0 for usage_page and usage.
+
+--- DetectionManager.cpp.orig	2026-10-05 10:37:33 UTC
++++ DetectionManager.cpp
+@@ -109,10 +109,12 @@ bool BasicHIDBlock::compare(hid_device_info* info)
+          || (vid == info->vendor_id))
+         && ((pid        == HID_PID_ANY)
+          || (pid == info->product_id))
++#if !defined(__FreeBSD__)
+         && ((usage_page == HID_USAGE_PAGE_ANY)
+          || (usage_page == info->usage_page))
+         && ((usage      == HID_USAGE_ANY)
+          || (usage      == info->usage))
++#endif
+         && ((interface  == HID_INTERFACE_ANY)
+          || (interface  == info->interface_number))
+         && ((bus        == HID_BUS_ANY)
diff --git a/x11/openrgb/files/patch-OpenRGB.pro b/x11/openrgb/files/patch-OpenRGB.pro
deleted file mode 100644
index 1f09724626e8..000000000000
--- a/x11/openrgb/files/patch-OpenRGB.pro
+++ /dev/null
@@ -1,11 +0,0 @@
---- OpenRGB.pro.orig	2022-11-28 03:44:33 UTC
-+++ OpenRGB.pro
-@@ -42,7 +42,7 @@ win32:BUILDDATE = $$system(date /t)
- # 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/files/patch-dependencies_hueplusplus-1.0.0_src_EntertainmentMode.cpp b/x11/openrgb/files/patch-dependencies_hueplusplus-1.0.0_src_EntertainmentMode.cpp
deleted file mode 100644
index b92d4a5c7887..000000000000
--- a/x11/openrgb/files/patch-dependencies_hueplusplus-1.0.0_src_EntertainmentMode.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- dependencies/hueplusplus-1.0.0/src/EntertainmentMode.cpp.orig	2022-11-28 03:44:33 UTC
-+++ dependencies/hueplusplus-1.0.0/src/EntertainmentMode.cpp
-@@ -21,7 +21,6 @@
- **/
- 
- #include "hueplusplus/EntertainmentMode.h"
--#include "mbedtls/certs.h"
- #include "mbedtls/ctr_drbg.h"
- #include "mbedtls/debug.h"
- #include "mbedtls/entropy.h"
diff --git a/x11/openrgb/pkg-descr b/x11/openrgb/pkg-descr
index 8dae8914207a..7c36757cab1b 100644
--- a/x11/openrgb/pkg-descr
+++ b/x11/openrgb/pkg-descr
@@ -1 +1,10 @@
 Open source RGB lighting control that doesn't depend on manufacturer software.
+
+One of the biggest complaints about RGB is the software ecosystem surrounding
+it. Every manufacturer has their own app, their own brand, their own style. If
+you want to mix and match devices, you end up with a ton of conflicting,
+functionally identical apps competing for your background resources. On top of
+that, these apps are proprietary and Windows-only. Some even require online
+accounts. What if there was a way to control all of your RGB devices from a
+single app, on both Windows and Linux, without any nonsense? That is what
+OpenRGB sets out to achieve. One app to rule them all.
diff --git a/x11/openrgb/pkg-plist b/x11/openrgb/pkg-plist
new file mode 100644
index 000000000000..48676b5d6a3a
--- /dev/null
+++ b/x11/openrgb/pkg-plist
@@ -0,0 +1,4 @@
+bin/openrgb
+share/applications/org.openrgb.OpenRGB.desktop
+share/icons/hicolor/128x128/apps/org.openrgb.OpenRGB.png
+share/metainfo/org.openrgb.OpenRGB.metainfo.xml