kwayland: Add kwayland 5.6.3

Qt-style Client and Server library wrapper for the Wayland libraries
This commit is contained in:
Mark Davies 2016-05-09 23:54:00 +12:00
parent 2ac105d6cb
commit fad4f4d0f7
7 changed files with 283 additions and 0 deletions

10
kwayland/DESCR Normal file
View file

@ -0,0 +1,10 @@
KWayland provides two libraries:
- KWayland::Client
- KWayland::Server
As the names suggest they implement a Client respectively a Server API for the Wayland
protocol. The API is Qt-styled removing the needs to interact with a for a Qt developer
uncomfortable low-level C-API. For example the callback mechanism from the Wayland API
is replaced by signals; data types are adjusted to be what a Qt developer expects, e.g.
two arguments of int are represented by a QPoint or a QSize.

16
kwayland/Makefile Normal file
View file

@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.25 2016/01/10 20:01:05 markd Exp $
DISTNAME= kwayland-${PLASMAVER}
CATEGORIES= x11
HOMEPAGE= https://www.kde.org/workspaces/plasmadesktop/
COMMENT= Qt-style Client and Server library wrapper for the Wayland libraries
LICENSE= gnu-lgpl-v2.1
.include "../../wip/kde5/plasma.mk"
USE_TOOLS+= pkg-config
.include "../../wip/wayland/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

85
kwayland/PLIST Normal file
View file

@ -0,0 +1,85 @@
@comment $NetBSD$
include/KF5/KWayland/Client/blur.h
include/KF5/KWayland/Client/buffer.h
include/KF5/KWayland/Client/compositor.h
include/KF5/KWayland/Client/connection_thread.h
include/KF5/KWayland/Client/contrast.h
include/KF5/KWayland/Client/datadevice.h
include/KF5/KWayland/Client/datadevicemanager.h
include/KF5/KWayland/Client/dataoffer.h
include/KF5/KWayland/Client/datasource.h
include/KF5/KWayland/Client/dpms.h
include/KF5/KWayland/Client/event_queue.h
include/KF5/KWayland/Client/fakeinput.h
include/KF5/KWayland/Client/fullscreen_shell.h
include/KF5/KWayland/Client/idle.h
include/KF5/KWayland/Client/keyboard.h
include/KF5/KWayland/Client/kwaylandclient_export.h
include/KF5/KWayland/Client/output.h
include/KF5/KWayland/Client/outputconfiguration.h
include/KF5/KWayland/Client/outputdevice.h
include/KF5/KWayland/Client/outputmanagement.h
include/KF5/KWayland/Client/plasmashell.h
include/KF5/KWayland/Client/plasmawindowmanagement.h
include/KF5/KWayland/Client/plasmawindowmodel.h
include/KF5/KWayland/Client/pointer.h
include/KF5/KWayland/Client/region.h
include/KF5/KWayland/Client/registry.h
include/KF5/KWayland/Client/seat.h
include/KF5/KWayland/Client/server_decoration.h
include/KF5/KWayland/Client/shadow.h
include/KF5/KWayland/Client/shell.h
include/KF5/KWayland/Client/shm_pool.h
include/KF5/KWayland/Client/slide.h
include/KF5/KWayland/Client/subcompositor.h
include/KF5/KWayland/Client/subsurface.h
include/KF5/KWayland/Client/surface.h
include/KF5/KWayland/Client/touch.h
include/KF5/KWayland/Server/blur_interface.h
include/KF5/KWayland/Server/buffer_interface.h
include/KF5/KWayland/Server/clientconnection.h
include/KF5/KWayland/Server/compositor_interface.h
include/KF5/KWayland/Server/contrast_interface.h
include/KF5/KWayland/Server/datadevice_interface.h
include/KF5/KWayland/Server/datadevicemanager_interface.h
include/KF5/KWayland/Server/dataoffer_interface.h
include/KF5/KWayland/Server/datasource_interface.h
include/KF5/KWayland/Server/display.h
include/KF5/KWayland/Server/dpms_interface.h
include/KF5/KWayland/Server/fakeinput_interface.h
include/KF5/KWayland/Server/global.h
include/KF5/KWayland/Server/idle_interface.h
include/KF5/KWayland/Server/keyboard_interface.h
include/KF5/KWayland/Server/kwaylandserver_export.h
include/KF5/KWayland/Server/output_interface.h
include/KF5/KWayland/Server/outputchangeset.h
include/KF5/KWayland/Server/outputconfiguration_interface.h
include/KF5/KWayland/Server/outputdevice_interface.h
include/KF5/KWayland/Server/outputmanagement_interface.h
include/KF5/KWayland/Server/plasmashell_interface.h
include/KF5/KWayland/Server/plasmawindowmanagement_interface.h
include/KF5/KWayland/Server/pointer_interface.h
include/KF5/KWayland/Server/qtsurfaceextension_interface.h
include/KF5/KWayland/Server/region_interface.h
include/KF5/KWayland/Server/resource.h
include/KF5/KWayland/Server/seat_interface.h
include/KF5/KWayland/Server/server_decoration_interface.h
include/KF5/KWayland/Server/shadow_interface.h
include/KF5/KWayland/Server/shell_interface.h
include/KF5/KWayland/Server/slide_interface.h
include/KF5/KWayland/Server/subcompositor_interface.h
include/KF5/KWayland/Server/surface_interface.h
include/KF5/KWayland/Server/touch_interface.h
include/KF5/kwayland_version.h
lib/cmake/KF5Wayland/KF5WaylandConfig.cmake
lib/cmake/KF5Wayland/KF5WaylandConfigVersion.cmake
lib/cmake/KF5Wayland/KF5WaylandTargets-noconfig.cmake
lib/cmake/KF5Wayland/KF5WaylandTargets.cmake
lib/libKF5WaylandClient.so
lib/libKF5WaylandClient.so.5
lib/libKF5WaylandClient.so.${PKGVERSION}
lib/libKF5WaylandServer.so
lib/libKF5WaylandServer.so.5
lib/libKF5WaylandServer.so.${PKGVERSION}
qt5/mkspecs/modules/qt_KWaylandClient.pri
qt5/mkspecs/modules/qt_KWaylandServer.pri

15
kwayland/buildlink3.mk Normal file
View file

@ -0,0 +1,15 @@
# $NetBSD$
BUILDLINK_TREE+= kwayland
.if !defined(KWAYLAND_BUILDLINK3_MK)
KWAYLAND_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.kwayland+= kwayland>=5.6.3
BUILDLINK_PKGSRCDIR.kwayland?= ../../wip/kwayland
.include "../../wip/wayland/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.endif # KWAYLAND_BUILDLINK3_MK
BUILDLINK_TREE+= -kwayland

6
kwayland/distinfo Normal file
View file

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (kwayland-5.6.3.tar.xz) = c45b10cbaf7aec32f46febb95ddd6844bbf6bacb
RMD160 (kwayland-5.6.3.tar.xz) = 0c515fe1f5c32a2c4bde071e266eafed5c9a3c80
SHA512 (kwayland-5.6.3.tar.xz) = 27323f70cd202ad95ca1b567bf458b933073048ff9f8ebefbb88cdd3403e2f67fd69b1a99aa2bb45f81a3913feebd0279fce748d30fcbb771994df9eeffb1d23
Size (kwayland-5.6.3.tar.xz) = 168184 bytes

142
kwayland/files/input.h Normal file
View file

@ -0,0 +1,142 @@
#define BTN_LEFT 0x110
#define BTN_RIGHT 0x111
#define BTN_MIDDLE 0x112
#define BTN_SIDE 0x113
#define BTN_EXTRA 0x114
#define BTN_FORWARD 0x115
#define BTN_BACK 0x116
#define BTN_TASK 0x117
#define BTN_JOYSTICK 0x120
#define KEY_RESERVED 0
#define KEY_ESC 1
#define KEY_1 2
#define KEY_2 3
#define KEY_3 4
#define KEY_4 5
#define KEY_5 6
#define KEY_6 7
#define KEY_7 8
#define KEY_8 9
#define KEY_9 10
#define KEY_0 11
#define KEY_MINUS 12
#define KEY_EQUAL 13
#define KEY_BACKSPACE 14
#define KEY_TAB 15
#define KEY_Q 16
#define KEY_W 17
#define KEY_E 18
#define KEY_R 19
#define KEY_T 20
#define KEY_Y 21
#define KEY_U 22
#define KEY_I 23
#define KEY_O 24
#define KEY_P 25
#define KEY_LEFTBRACE 26
#define KEY_RIGHTBRACE 27
#define KEY_ENTER 28
#define KEY_LEFTCTRL 29
#define KEY_A 30
#define KEY_S 31
#define KEY_D 32
#define KEY_F 33
#define KEY_G 34
#define KEY_H 35
#define KEY_J 36
#define KEY_K 37
#define KEY_L 38
#define KEY_SEMICOLON 39
#define KEY_APOSTROPHE 40
#define KEY_GRAVE 41
#define KEY_LEFTSHIFT 42
#define KEY_BACKSLASH 43
#define KEY_Z 44
#define KEY_X 45
#define KEY_C 46
#define KEY_V 47
#define KEY_B 48
#define KEY_N 49
#define KEY_M 50
#define KEY_COMMA 51
#define KEY_DOT 52
#define KEY_SLASH 53
#define KEY_RIGHTSHIFT 54
#define KEY_KPASTERISK 55
#define KEY_LEFTALT 56
#define KEY_SPACE 57
#define KEY_CAPSLOCK 58
#define KEY_F1 59
#define KEY_F2 60
#define KEY_F3 61
#define KEY_F4 62
#define KEY_F5 63
#define KEY_F6 64
#define KEY_F7 65
#define KEY_F8 66
#define KEY_F9 67
#define KEY_F10 68
#define KEY_NUMLOCK 69
#define KEY_SCROLLLOCK 70
#define KEY_KP7 71
#define KEY_KP8 72
#define KEY_KP9 73
#define KEY_KPMINUS 74
#define KEY_KP4 75
#define KEY_KP5 76
#define KEY_KP6 77
#define KEY_KPPLUS 78
#define KEY_KP1 79
#define KEY_KP2 80
#define KEY_KP3 81
#define KEY_KP0 82
#define KEY_KPDOT 83
#define KEY_ZENKAKUHANKAKU 85
#define KEY_102ND 86
#define KEY_F11 87
#define KEY_F12 88
#define KEY_RO 89
#define KEY_KATAKANA 90
#define KEY_HIRAGANA 91
#define KEY_HENKAN 92
#define KEY_KATAKANAHIRAGANA 93
#define KEY_MUHENKAN 94
#define KEY_KPJPCOMMA 95
#define KEY_KPENTER 96
#define KEY_RIGHTCTRL 97
#define KEY_KPSLASH 98
#define KEY_SYSRQ 99
#define KEY_RIGHTALT 100
#define KEY_LINEFEED 101
#define KEY_HOME 102
#define KEY_UP 103
#define KEY_PAGEUP 104
#define KEY_LEFT 105
#define KEY_RIGHT 106
#define KEY_END 107
#define KEY_DOWN 108
#define KEY_PAGEDOWN 109
#define KEY_INSERT 110
#define KEY_DELETE 111
#define KEY_MACRO 112
#define KEY_MUTE 113
#define KEY_VOLUMEDOWN 114
#define KEY_VOLUMEUP 115
#define KEY_POWER 116 /* SC System Power Down */
#define KEY_KPEQUAL 117
#define KEY_KPPLUSMINUS 118
#define KEY_PAUSE 119
#define KEY_SCALE 120 /* AL Compiz Scale (Expose) */
#define KEY_KPCOMMA 121
#define KEY_HANGEUL 122
#define KEY_HANGUEL KEY_HANGEUL
#define KEY_HANJA 123
#define KEY_YEN 124
#define KEY_LEFTMETA 125
#define KEY_RIGHTMETA 126
#define KEY_COMPOSE 127

9
kwayland/hacks.mk Normal file
View file

@ -0,0 +1,9 @@
# $NetBSD$
#
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} == "NetBSD"
pre-configure:
mkdir ${BUILDLINK_DIR}/include/linux
cp ${FILESDIR}/input.h ${BUILDLINK_DIR}/include/linux/input.h
.endif