pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add kwayland-qt6: needed for LXQt-2.0.0



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Fri Jun 7 10:56:25 2024 +0200
Changeset:	8f207b4dbe54f8832c057d1e5065db3005705d4a

Modified Files:
	Makefile
Added Files:
	kwayland-qt6/DESCR
	kwayland-qt6/Makefile
	kwayland-qt6/PLIST
	kwayland-qt6/buildlink3.mk
	kwayland-qt6/distinfo
	kwayland-qt6/patches/patch-src_client_fakeinput.cpp

Log Message:
Add kwayland-qt6: needed for LXQt-2.0.0

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8f207b4dbe54f8832c057d1e5065db3005705d4a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 kwayland-qt6/DESCR                                 |  1 +
 kwayland-qt6/Makefile                              | 37 +++++++++++++++
 kwayland-qt6/PLIST                                 | 53 ++++++++++++++++++++++
 kwayland-qt6/buildlink3.mk                         | 16 +++++++
 kwayland-qt6/distinfo                              |  6 +++
 .../patches/patch-src_client_fakeinput.cpp         | 36 +++++++++++++++
 7 files changed, 150 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index cdb6003b3e..e0dc8e8271 100644
--- a/Makefile
+++ b/Makefile
@@ -1841,6 +1841,7 @@ SUBDIR+=	kuickshow
 SUBDIR+=	kup
 SUBDIR+=	kustomize
 SUBDIR+=	kvantum
+SUBDIR+=	kwayland-qt6
 SUBDIR+=	kwin
 SUBDIR+=	kwrited
 SUBDIR+=	kyototycoon
diff --git a/kwayland-qt6/DESCR b/kwayland-qt6/DESCR
new file mode 100644
index 0000000000..f8e83d8021
--- /dev/null
+++ b/kwayland-qt6/DESCR
@@ -0,0 +1 @@
+KWayland is a Qt-style API to interact with the wayland-client API.
diff --git a/kwayland-qt6/Makefile b/kwayland-qt6/Makefile
new file mode 100644
index 0000000000..287215f514
--- /dev/null
+++ b/kwayland-qt6/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+DISTNAME=	kwayland-6.0.5
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_KDE:=plasma/6.0.5/}
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://invent.kde.org/plasma/kwayland
+COMMENT=	Qt-style Client and Server library wrapper for the Wayland libraries
+LICENSE=	gnu-lgpl-v2.1
+
+TOOL_DEPENDS+=	plasma-wayland-protocols>=1.7:../../devel/plasma-wayland-protocols
+
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	pkg-config
+# Don't do autotests.  Some builds are linux specific.
+CMAKE_ARGS+=	-DBUILD_TESTING=no
+CMAKE_ARGS+=	-DKF_IGNORE_PLATFORM_CHECK=true
+
+.include "../../devel/wayland/platform.mk"
+.if empty(PLATFORM_SUPPORTS_WAYLAND:M[Yy][Ee][Ss])
+PKG_SKIP_REASON+=       "Platform does not support Wayland"
+.endif
+
+.include "../../mk/bsd.fast.prefs.mk"
+.if ${OPSYS} == "NetBSD"
+# Work-around bad use-warning check in GNU ld 2.26
+# Stolen from /usr/pkgsrc/meta-pkgs/kde/Makefile.common
+BUILDLINK_TRANSFORM+=	rm:-Wl,--fatal-warnings
+.endif
+
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../x11/qt6-qtbase/buildlink3.mk"
+.include "../../devel/qt6-qtwayland/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/kwayland-qt6/PLIST b/kwayland-qt6/PLIST
new file mode 100644
index 0000000000..3617dac80b
--- /dev/null
+++ b/kwayland-qt6/PLIST
@@ -0,0 +1,53 @@
+@comment $NetBSD$
+include/KWayland/KWayland/Client/appmenu.h
+include/KWayland/KWayland/Client/blur.h
+include/KWayland/KWayland/Client/buffer.h
+include/KWayland/KWayland/Client/compositor.h
+include/KWayland/KWayland/Client/connection_thread.h
+include/KWayland/KWayland/Client/contrast.h
+include/KWayland/KWayland/Client/datadevice.h
+include/KWayland/KWayland/Client/datadevicemanager.h
+include/KWayland/KWayland/Client/dataoffer.h
+include/KWayland/KWayland/Client/datasource.h
+include/KWayland/KWayland/Client/dpms.h
+include/KWayland/KWayland/Client/event_queue.h
+include/KWayland/KWayland/Client/fakeinput.h
+include/KWayland/KWayland/Client/idleinhibit.h
+include/KWayland/KWayland/Client/keyboard.h
+include/KWayland/KWayland/Client/kwaylandclient_export.h
+include/KWayland/KWayland/Client/output.h
+include/KWayland/KWayland/Client/plasmashell.h
+include/KWayland/KWayland/Client/plasmavirtualdesktop.h
+include/KWayland/KWayland/Client/plasmawindowmanagement.h
+include/KWayland/KWayland/Client/plasmawindowmodel.h
+include/KWayland/KWayland/Client/pointer.h
+include/KWayland/KWayland/Client/pointerconstraints.h
+include/KWayland/KWayland/Client/pointergestures.h
+include/KWayland/KWayland/Client/region.h
+include/KWayland/KWayland/Client/registry.h
+include/KWayland/KWayland/Client/relativepointer.h
+include/KWayland/KWayland/Client/seat.h
+include/KWayland/KWayland/Client/shadow.h
+include/KWayland/KWayland/Client/shell.h
+include/KWayland/KWayland/Client/shm_pool.h
+include/KWayland/KWayland/Client/slide.h
+include/KWayland/KWayland/Client/subcompositor.h
+include/KWayland/KWayland/Client/subsurface.h
+include/KWayland/KWayland/Client/surface.h
+include/KWayland/KWayland/Client/textinput.h
+include/KWayland/KWayland/Client/touch.h
+include/KWayland/KWayland/Client/xdgdecoration.h
+include/KWayland/KWayland/Client/xdgforeign.h
+include/KWayland/KWayland/Client/xdgoutput.h
+include/KWayland/KWayland/Client/xdgshell.h
+include/KWayland/kwayland_version.h
+lib/cmake/KWayland/KWaylandConfig.cmake
+lib/cmake/KWayland/KWaylandConfigVersion.cmake
+lib/cmake/KWayland/KWaylandTargets-noconfig.cmake
+lib/cmake/KWayland/KWaylandTargets.cmake
+lib/libKWaylandClient.so
+lib/libKWaylandClient.so.6
+lib/libKWaylandClient.so.${PKGVERSION}
+lib/pkgconfig/KWaylandClient.pc
+share/qlogging-categories6/kwayland.categories
+share/qlogging-categories6/kwayland.renamecategories
diff --git a/kwayland-qt6/buildlink3.mk b/kwayland-qt6/buildlink3.mk
new file mode 100644
index 0000000000..298ef87e42
--- /dev/null
+++ b/kwayland-qt6/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	kwayland
+
+.if !defined(KWAYLAND_BUILDLINK3_MK)
+KWAYLAND_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.kwayland+=	kwayland>=6.0.5
+BUILDLINK_PKGSRCDIR.kwayland?=	../../wip/kwayland-qt6
+
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../x11/qt6-qtbase/buildlink3.mk"
+.include "../../devel/qt6-qtwayland/buildlink3.mk"
+.endif	# KWAYLAND_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-kwayland
diff --git a/kwayland-qt6/distinfo b/kwayland-qt6/distinfo
new file mode 100644
index 0000000000..0d0e7fc077
--- /dev/null
+++ b/kwayland-qt6/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (kwayland-6.0.5.tar.xz) = 7ae1745c86e08f3b0e8549b4acbefef751f3a66b6c541539f1f739855e9ac5c3
+SHA512 (kwayland-6.0.5.tar.xz) = 85007a154b223bf87d5b66f00671d8a011125145797e19d60631e0f3d7c95d301bd0004180b9cfaa2fa6790c4057f68b614462870703076e1dcccc09bbc3a84b
+Size (kwayland-6.0.5.tar.xz) = 133720 bytes
+SHA1 (patch-src_client_fakeinput.cpp) = e22343c8fa46bb875fe70c93823ab2cc4448e528
diff --git a/kwayland-qt6/patches/patch-src_client_fakeinput.cpp b/kwayland-qt6/patches/patch-src_client_fakeinput.cpp
new file mode 100644
index 0000000000..b2a66f66b2
--- /dev/null
+++ b/kwayland-qt6/patches/patch-src_client_fakeinput.cpp
@@ -0,0 +1,36 @@
+$NetBSD$
+
+linux/input.h only for linux
+
+--- src/client/fakeinput.cpp.orig	2024-06-07 08:38:43.065754933 +0000
++++ src/client/fakeinput.cpp
+@@ -10,7 +10,9 @@
+ #include <QPointF>
+ #include <QSizeF>
+ 
++#ifdef Q_OS_LINUX
+ #include <linux/input.h>
++#endif
+ 
+ #include <wayland-fake-input-client-protocol.h>
+ 
+@@ -98,13 +100,19 @@ void FakeInput::Private::sendPointerButt
+     uint32_t b = 0;
+     switch (button) {
+     case Qt::LeftButton:
++#ifdef BTN_LEFT
+         b = BTN_LEFT;
++#endif
+         break;
+     case Qt::RightButton:
++#ifdef BTN_RIGHT
+         b = BTN_RIGHT;
++#endif
+         break;
+     case Qt::MiddleButton:
++#ifdef BTN_MIDDLE
+         b = BTN_MIDDLE;
++#endif
+         break;
+     default:
+         // TODO: more buttons, check implementation in QtWayland


Home | Main Index | Thread Index | Old Index