openrgb: update to 0.7.

closes #31876
This commit is contained in:
John 2021-12-20 20:08:20 +01:00
parent 436fb54889
commit 617d6cfe21
2 changed files with 4 additions and 37 deletions

View file

@ -1,33 +0,0 @@
From 82db3d9971c7d153b8d506909568ee378bc513aa Mon Sep 17 00:00:00 2001
From: Martin Hartl <g@inlart.com>
Date: Fri, 1 Jan 2021 18:42:31 +0100
Subject: [PATCH] Support hidraw USAGE/USAGE_PAGE
* Support hidapi 0.10.1 and newer
---
OpenRGB.pro | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/OpenRGB.pro b/OpenRGB.pro
index ff2d656a..60542ced 100644
--- a/OpenRGB.pro
+++ b/OpenRGB.pro
@@ -669,6 +669,15 @@ unix:!macx {
#-------------------------------------------------------------------------------------------#
packagesExist(hidapi-hidraw) {
LIBS += -lhidapi-hidraw
+
+ #---------------------------------------------------------------------------------------#
+ # hidapi-hidraw >= 0.10.1 supports USAGE/USAGE_PAGE #
+ # Define USE_HID_USAGE if hidapi-hidraw supports it #
+ #---------------------------------------------------------------------------------------#
+ HIDAPI_HIDRAW_VERSION = $$system(pkg-config --modversion hidapi-hidraw)
+ if(versionAtLeast(HIDAPI_HIDRAW_VERSION, "0.10.1")) {
+ DEFINES += USE_HID_USAGE
+ }
} else {
packagesExist(hidapi-libusb) {
LIBS += -lhidapi-libusb
--
GitLab

View file

@ -1,17 +1,17 @@
# Template file for 'openrgb'
pkgname=openrgb
version=0.5
revision=2
version=0.7
revision=1
wrksrc=OpenRGB-release_${version}
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools git pkg-config"
makedepends="qt5-devel libusb-devel hidapi-devel"
makedepends="qt5-devel libusb-devel hidapi-devel mbedtls-devel"
short_desc="Open source RGB lighting control"
maintainer="Neel Chotai <neel@chot.ai>"
license="GPL-2.0-only"
homepage="https://gitlab.com/CalcProgrammer1/OpenRGB"
distfiles="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${version}/OpenRGB-release_${version}.tar.gz"
checksum=e227dedfe0c3aa8f3bcb0c4149aa5feb1db4b0429a151423d74c0103c55d7d26
checksum=6052e04ad736f94a91a386f6cfc0aaff9554fafdabe99cdd46a296fd49132569
pre_build() {
sed -i 's|rules.path=/lib|rules.path=/usr/lib|g' OpenRGB.pro