git: d27447592473 - main - x11-toolkots/qhotkey: New port: Global shortcut/hotkey for Desktop Qt-Applications
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Jan 2024 11:54:30 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d27447592473ebfa241d15507355fef1ea1c8733 commit d27447592473ebfa241d15507355fef1ea1c8733 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-01-19 11:53:46 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-01-19 11:54:26 +0000 x11-toolkots/qhotkey: New port: Global shortcut/hotkey for Desktop Qt-Applications --- x11-toolkits/Makefile | 1 + x11-toolkits/qhotkey/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ x11-toolkits/qhotkey/distinfo | 3 +++ x11-toolkits/qhotkey/pkg-descr | 6 ++++++ x11-toolkits/qhotkey/pkg-plist | 8 ++++++++ 5 files changed, 59 insertions(+) diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index cf1588925f81..e11631979841 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -174,6 +174,7 @@ SUBDIR += py-tktreectrl SUBDIR += py-wxPython4 SUBDIR += pythonqt + SUBDIR += qhotkey SUBDIR += qml-box2d SUBDIR += qt5-charts SUBDIR += qt5-datavis3d diff --git a/x11-toolkits/qhotkey/Makefile b/x11-toolkits/qhotkey/Makefile new file mode 100644 index 000000000000..00a7c523df1c --- /dev/null +++ b/x11-toolkits/qhotkey/Makefile @@ -0,0 +1,41 @@ +PORTNAME= qhotkey +DISTVERSION= 1.5.0-7 +DISTVERSIONSUFFIX= -gcd72a01 +CATEGORIES= x11-toolkits + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Global shortcut/hotkey for Desktop Qt-Applications +WWW= https://github.com/Skycoder42/QHotkey + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +FLAVORS= qt5 qt6 +FLAVOR?= ${FLAVORS:[1]} +qt5_PKGNAMESUFFIX= -qt5 +qt6_PKGNAMESUFFIX= -qt6 + +USES= cmake gl xorg +USE_GL= gl opengl +USE_XORG= ice sm x11 xext +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= Skycoder42 +GH_PROJECT= QHotkey + +CMAKE_ON= BUILD_SHARED_LIBS + +.if ${FLAVOR} == qt5 +USES+= qt:5 +USE_QT= core gui x11extras qmake:build buildtools:build +CMAKE_ARGS= -DQT_DEFAULT_MAJOR_VERSION=5 +.endif + +.if ${FLAVOR} == qt6 +USES+= qt:6 +USE_QT= base +CMAKE_ARGS= -DQT_DEFAULT_MAJOR_VERSION=6 +.endif + +.include <bsd.port.mk> diff --git a/x11-toolkits/qhotkey/distinfo b/x11-toolkits/qhotkey/distinfo new file mode 100644 index 000000000000..b39a0155a66b --- /dev/null +++ b/x11-toolkits/qhotkey/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1705662256 +SHA256 (Skycoder42-QHotkey-1.5.0-7-gcd72a01_GH0.tar.gz) = 04d1632a8f8878f1bb19ca4aec1c9f0e0868b5cac9743682dcc7c767f45bf26c +SIZE (Skycoder42-QHotkey-1.5.0-7-gcd72a01_GH0.tar.gz) = 53445 diff --git a/x11-toolkits/qhotkey/pkg-descr b/x11-toolkits/qhotkey/pkg-descr new file mode 100644 index 000000000000..e1def88dd0fa --- /dev/null +++ b/x11-toolkits/qhotkey/pkg-descr @@ -0,0 +1,6 @@ +QHotkey is a global shortcut/hotkey for Desktop Qt-Applications. + +The QHotkey is a class that can be used to create hotkeys/global shortcuts, +aka shortcuts that work everywhere, independent of the application state. +This means your application can be active, inactive, minimized or not visible +at all and still receive the shortcuts. diff --git a/x11-toolkits/qhotkey/pkg-plist b/x11-toolkits/qhotkey/pkg-plist new file mode 100644 index 000000000000..23213e21d875 --- /dev/null +++ b/x11-toolkits/qhotkey/pkg-plist @@ -0,0 +1,8 @@ +include/QHotkey +include/qhotkey.h +lib/cmake/QHotkey/QHotkeyConfig-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/QHotkey/QHotkeyConfig.cmake +lib/cmake/QHotkey/QHotkeyConfigVersion.cmake +lib/libqhotkey.so +lib/libqhotkey.so.1 +lib/libqhotkey.so.1.5.0