diff options
| author | Kenneth Raplee <kenrap@FreeBSD.org> | 2026-11-03 11:19:51 +0000 |
|---|---|---|
| committer | Kenneth Raplee <kenrap@FreeBSD.org> | 2026-11-04 07:54:08 +0000 |
| commit | 2e8f136527e95003ca8011690ed6211caa3fb477 (patch) | |
| tree | cdfb28dbf7f6fdef710ede4407f443da67091b14 | |
| parent | e20de833f7c0e380225c59d9ca647088e467f0ce (diff) | |
audio/hpsjam: Migrate to Qt6
The codebase uses no Qt5-only APIs, so this flips the port to qt:6 with
a C++17 compiler floor. One small source patch replaces the deprecated
Qt calls with their current equivalents.
(cherry picked from commit 6bf16d9347d0dc0f4047cc7526c23f157611330f)
| -rw-r--r-- | audio/hpsjam/Makefile | 5 | ||||
| -rw-r--r-- | audio/hpsjam/files/patch-src_mixerdlg.cpp | 27 |
2 files changed, 30 insertions, 2 deletions
diff --git a/audio/hpsjam/Makefile b/audio/hpsjam/Makefile index 83c3ea2703c6..1724d754020c 100644 --- a/audio/hpsjam/Makefile +++ b/audio/hpsjam/Makefile @@ -1,6 +1,7 @@ PORTNAME= hpsjam DISTVERSIONPREFIX= v DISTVERSION= 1.2.8 +PORTREVISION= 1 CATEGORIES= audio MAINTAINER= ports@FreeBSD.org @@ -11,12 +12,12 @@ LICENSE= BSD2CLAUSE LIB_DEPENDS= libjack.so:audio/jack -USES= compiler:c++11-lang gl qmake qt:5 tar:bzip2 +USES= compiler:c++17-lang gl qmake qt:6 tar:bzip2 USE_GITHUB= yes GH_ACCOUNT= hselasky GH_TUPLE= mborgerding:kissfft:131.1.0:a/kissfft USE_GL= gl -USE_QT= core gui svg widgets buildtools:build +USE_QT= base svg USE_RC_SUBR= ${PORTNAME}_server USER= nobody diff --git a/audio/hpsjam/files/patch-src_mixerdlg.cpp b/audio/hpsjam/files/patch-src_mixerdlg.cpp new file mode 100644 index 000000000000..93284e1891b8 --- /dev/null +++ b/audio/hpsjam/files/patch-src_mixerdlg.cpp @@ -0,0 +1,27 @@ +--- src/mixerdlg.cpp.orig 2022-11-16 08:53:08 UTC ++++ src/mixerdlg.cpp +@@ -259,9 +259,9 @@ HpsJamSlider :: mousePressEvent(QMouseEvent *event) + { + if (event->button() != Qt::LeftButton) + return; +- if (target.contains(event->pos())) { ++ if (target.contains(event->position().toPoint())) { + active = true; +- start = event->pos(); ++ start = event->position().toPoint(); + } + } + +@@ -271,10 +271,10 @@ HpsJamSlider :: mouseMoveEvent(QMouseEvent *event) + if (height() < (int)dsize) + return; + if (active == true) { +- const QPoint delta = event->pos() - start; ++ const QPoint delta = event->position().toPoint() - start; + const float offset = (float)delta.y() / (float)(height() - dsize); + +- start = event->pos(); ++ start = event->position().toPoint(); + + value -= offset; + if (value < 0.0f) |
