aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2023-12-02 19:26:40 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2023-12-02 19:34:13 +0000
commit6a90aa2883c681f4a9b6176ba3d3a2ca7bd850d7 (patch)
tree3c82fa3dd7da7d123c80f1e5871a4ed3c6cf5b21
parent387a9946b0ab80126e70b8daa7f4f2a8f544fd96 (diff)
downloadports-6a90aa2883c681f4a9b6176ba3d3a2ca7bd850d7.tar.gz
ports-6a90aa2883c681f4a9b6176ba3d3a2ca7bd850d7.zip
accessibility/libqaccessibilityclient: flavorize for Qt5 and Qt6
-rw-r--r--accessibility/kmag/Makefile3
-rw-r--r--accessibility/libqaccessibilityclient/Makefile20
-rw-r--r--accessibility/libqaccessibilityclient/pkg-plist.qt5 (renamed from accessibility/libqaccessibilityclient/pkg-plist)0
-rw-r--r--accessibility/libqaccessibilityclient/pkg-plist.qt611
-rw-r--r--x11-wm/kwinft/Makefile4
5 files changed, 30 insertions, 8 deletions
diff --git a/accessibility/kmag/Makefile b/accessibility/kmag/Makefile
index 9a822746cae2..a6dccda0cee8 100644
--- a/accessibility/kmag/Makefile
+++ b/accessibility/kmag/Makefile
@@ -1,5 +1,6 @@
PORTNAME= kmag
DISTVERSION= ${KDE_APPLICATIONS_VERSION}
+PORTREVISION= 1
CATEGORIES= accessibility kde kde-applications
MAINTAINER= kde@FreeBSD.org
@@ -9,7 +10,7 @@ WWW= https://www.kde.org/applications/utilities/kmag/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= libqaccessibilityclient-qt5.so:accessibility/libqaccessibilityclient
+LIB_DEPENDS= libqaccessibilityclient-qt5.so:accessibility/libqaccessibilityclient@qt5
USES= cmake compiler:c++11-lang gettext kde:5 qt:5 tar:xz
USE_KDE= auth codecs config configwidgets coreaddons \
diff --git a/accessibility/libqaccessibilityclient/Makefile b/accessibility/libqaccessibilityclient/Makefile
index 6bbd6409fe44..2b17a4d6b8b6 100644
--- a/accessibility/libqaccessibilityclient/Makefile
+++ b/accessibility/libqaccessibilityclient/Makefile
@@ -1,20 +1,30 @@
PORTNAME= libqaccessibilityclient
DISTVERSION= 0.5.0
+PORTREVISION= 1
CATEGORIES= accessibility kde
MASTER_SITES= KDE/stable/${PORTNAME}/
+PKGNAMESUFFIX= -${FLAVOR}
MAINTAINER= kde@FreeBSD.org
COMMENT= Helper to make writing accessibility tools easier
WWW= https://api.kde.org/libqaccessibilityclient/html/index.html
-LICENSE= LGPL21 LGPL3
-LICENSE_COMB= dual
+LICENSE= LGPL21 LGPL3
+LICENSE_COMB= dual
LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSES/LGPL-2.1-only.txt
LICENSE_FILE_LGPL3= ${WRKSRC}/LICENSES/LGPL-3.0-only.txt
-USES= cmake compiler:c++11-lang kde:5 qt:5 tar:xz
+FLAVORS= qt5 qt6
+FLAVOR?= qt5
+
+USES= cmake compiler:c++11-lang kde:${FLAVOR:S/qt//} \
+ qt:${FLAVOR:S/qt//} tar:xz
+CMAKE_ARGS= -DQT_MAJOR_VERSION=${FLAVOR:S/qt//}
USE_KDE= ecm:build
-USE_QT= core dbus gui widgets \
- buildtools:build qmake:build
+USE_QT= ${_USE_QT_${FLAVOR}}
+_USE_QT_qt5= core dbus gui widgets buildtools:build qmake:build
+_USE_QT_qt6= base
+
+PLIST= ${.CURDIR}/pkg-plist.${FLAVOR}
.include <bsd.port.mk>
diff --git a/accessibility/libqaccessibilityclient/pkg-plist b/accessibility/libqaccessibilityclient/pkg-plist.qt5
index 4fb6b3034bc4..4fb6b3034bc4 100644
--- a/accessibility/libqaccessibilityclient/pkg-plist
+++ b/accessibility/libqaccessibilityclient/pkg-plist.qt5
diff --git a/accessibility/libqaccessibilityclient/pkg-plist.qt6 b/accessibility/libqaccessibilityclient/pkg-plist.qt6
new file mode 100644
index 000000000000..53e9b7c9a75e
--- /dev/null
+++ b/accessibility/libqaccessibilityclient/pkg-plist.qt6
@@ -0,0 +1,11 @@
+include/QAccessibilityClient6/qaccessibilityclient/accessibleobject.h
+include/QAccessibilityClient6/qaccessibilityclient/libqaccessibilityclient-version.h
+include/QAccessibilityClient6/qaccessibilityclient/qaccessibilityclient_export.h
+include/QAccessibilityClient6/qaccessibilityclient/registry.h
+lib/cmake/QAccessibilityClient6/QAccessibilityClient6Config.cmake
+lib/cmake/QAccessibilityClient6/QAccessibilityClient6ConfigVersion.cmake
+lib/cmake/QAccessibilityClient6/QAccessibilityClient6Targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/QAccessibilityClient6/QAccessibilityClient6Targets.cmake
+lib/libqaccessibilityclient-qt6.so
+lib/libqaccessibilityclient-qt6.so.0
+lib/libqaccessibilityclient-qt6.so.0.5.0
diff --git a/x11-wm/kwinft/Makefile b/x11-wm/kwinft/Makefile
index 41dbf3b41b0f..cff034f19120 100644
--- a/x11-wm/kwinft/Makefile
+++ b/x11-wm/kwinft/Makefile
@@ -1,7 +1,7 @@
PORTNAME= kwinft
DISTVERSIONPREFIX= ${PORTNAME}@
DISTVERSION= 5.27.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-wm wayland
MAINTAINER= jbeich@FreeBSD.org
@@ -55,7 +55,7 @@ DOCS_USE= KDE=doctools:build
DOCS_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_KF5DocTools
QA11Y_DESC= Accessibility (focus tracking) for Zoom effect
-QA11Y_LIB_DEPENDS= libqaccessibilityclient-qt5.so:accessibility/libqaccessibilityclient
+QA11Y_LIB_DEPENDS= libqaccessibilityclient-qt5.so:accessibility/libqaccessibilityclient@qt5
QA11Y_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_QAccessibilityClient
post-patch: