diff --git a/x11/openrgb/Makefile b/x11/openrgb/Makefile index 6eeb0e704f52..45d5193ff264 100644 --- a/x11/openrgb/Makefile +++ b/x11/openrgb/Makefile @@ -1,37 +1,32 @@ PORTNAME= openrgb -PORTVERSION= 0.8 -PORTREVISION= 2 +PORTVERSION= 1.0 CATEGORIES= x11 MAINTAINER= vidar@karlsen.tech COMMENT= Software to control a multitude of RGB devices 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 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 -+#include - - /*----------------------------------------------------------------------------*\ - | 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