diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston_13.0.0.bb')
-rw-r--r-- | meta/recipes-graphics/wayland/weston_13.0.0.bb | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston_13.0.0.bb b/meta/recipes-graphics/wayland/weston_13.0.0.bb new file mode 100644 index 0000000000..798cf6f19c --- /dev/null +++ b/meta/recipes-graphics/wayland/weston_13.0.0.bb | |||
@@ -0,0 +1,146 @@ | |||
1 | SUMMARY = "Weston, a Wayland compositor" | ||
2 | DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" | ||
3 | HOMEPAGE = "http://wayland.freedesktop.org" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \ | ||
6 | file://libweston/compositor.c;endline=27;md5=eb6d5297798cabe2ddc65e2af519bcf0 \ | ||
7 | " | ||
8 | |||
9 | SRC_URI = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \ | ||
10 | file://0001-libweston-tools-Include-libgen.h-for-basename-signat.patch \ | ||
11 | file://weston.png \ | ||
12 | file://weston.desktop \ | ||
13 | file://xwayland.weston-start \ | ||
14 | file://systemd-notify.weston-start \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[sha256sum] = "52ff1d4aa2394a2e416c85a338b627ce97fa71d43eb762fd4aaf145d36fc795a" | ||
18 | |||
19 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/weston/-/tags" | ||
20 | UPSTREAM_CHECK_REGEX = "weston-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | ||
21 | |||
22 | inherit meson pkgconfig useradd | ||
23 | |||
24 | # depends on virtual/egl | ||
25 | # | ||
26 | require ${THISDIR}/required-distro-features.inc | ||
27 | |||
28 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" | ||
29 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" | ||
30 | |||
31 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" | ||
32 | |||
33 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" | ||
34 | |||
35 | EXTRA_OEMESON += "-Dpipewire=false" | ||
36 | |||
37 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland egl clients', '', d)} \ | ||
38 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ | ||
39 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)} \ | ||
40 | ${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'headless', d)} \ | ||
41 | image-jpeg \ | ||
42 | screenshare \ | ||
43 | shell-desktop \ | ||
44 | shell-fullscreen \ | ||
45 | shell-ivi \ | ||
46 | shell-kiosk \ | ||
47 | " | ||
48 | |||
49 | # Can be 'damage', 'im', 'egl', 'shm', 'touch', 'dmabuf-feedback', 'dmabuf-v4l', 'dmabuf-egl' or 'all' | ||
50 | SIMPLECLIENTS ?= "all" | ||
51 | |||
52 | # | ||
53 | # Compositor choices | ||
54 | # | ||
55 | # Weston on KMS | ||
56 | PACKAGECONFIG[kms] = "-Dbackend-drm=true,-Dbackend-drm=false,drm udev seatd virtual/egl virtual/libgles2 virtual/libgbm mtdev" | ||
57 | # Weston on Wayland (nested Weston) | ||
58 | PACKAGECONFIG[wayland] = "-Dbackend-wayland=true,-Dbackend-wayland=false,virtual/egl virtual/libgles2" | ||
59 | # Weston on X11 | ||
60 | PACKAGECONFIG[x11] = "-Dbackend-x11=true,-Dbackend-x11=false,virtual/libx11 libxcb libxcursor" | ||
61 | # Headless Weston | ||
62 | PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false" | ||
63 | # Weston on RDP | ||
64 | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp" | ||
65 | # VA-API desktop recorder | ||
66 | PACKAGECONFIG[vaapi] = "-Dbackend-drm-screencast-vaapi=true,-Dbackend-drm-screencast-vaapi=false,libva" | ||
67 | # Weston with EGL support | ||
68 | PACKAGECONFIG[egl] = "-Drenderer-gl=true,-Drenderer-gl=false,virtual/egl" | ||
69 | # Weston with lcms support | ||
70 | PACKAGECONFIG[lcms] = "-Dcolor-management-lcms=true,-Dcolor-management-lcms=false,lcms" | ||
71 | # Weston with webp support | ||
72 | PACKAGECONFIG[webp] = "-Dimage-webp=true,-Dimage-webp=false,libwebp" | ||
73 | # Weston with systemd support | ||
74 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd dbus" | ||
75 | # Weston with Xwayland support (requires X11 and Wayland) | ||
76 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcb libxcursor xcb-util-cursor xwayland" | ||
77 | # colord CMS support | ||
78 | PACKAGECONFIG[colord] = "-Ddeprecated-color-management-colord=true,-Ddeprecated-color-management-colord=false,colord" | ||
79 | # Clients support | ||
80 | PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLECLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" | ||
81 | # Virtual remote output with GStreamer on DRM backend | ||
82 | PACKAGECONFIG[remoting] = "-Dremoting=true,-Dremoting=false,gstreamer1.0 gstreamer1.0-plugins-base" | ||
83 | # Weston with screen-share support | ||
84 | PACKAGECONFIG[screenshare] = "-Dscreenshare=true,-Dscreenshare=false" | ||
85 | # Traditional desktop shell | ||
86 | PACKAGECONFIG[shell-desktop] = "-Dshell-desktop=true,-Dshell-desktop=false" | ||
87 | # Fullscreen shell | ||
88 | PACKAGECONFIG[shell-fullscreen] = "-Dshell-fullscreen=true,-Dshell-fullscreen=false" | ||
89 | # In-Vehicle Infotainment (IVI) shell | ||
90 | PACKAGECONFIG[shell-ivi] = "-Dshell-ivi=true,-Dshell-ivi=false" | ||
91 | # Kiosk shell | ||
92 | PACKAGECONFIG[shell-kiosk] = "-Dshell-kiosk=true,-Dshell-kiosk=false" | ||
93 | # JPEG image loading support | ||
94 | PACKAGECONFIG[image-jpeg] = "-Dimage-jpeg=true,-Dimage-jpeg=false, jpeg" | ||
95 | # screencasting via PipeWire | ||
96 | PACKAGECONFIG[pipewire] = "-Dbackend-pipewire=true,-Dbackend-pipewire=false,pipewire" | ||
97 | # VNC remote screensharing | ||
98 | PACKAGECONFIG[vnc] = "-Dbackend-vnc=true,-Dbackend-vnc=false,neatvnc" | ||
99 | |||
100 | |||
101 | do_install:append() { | ||
102 | # Weston doesn't need the .la files to load modules, so wipe them | ||
103 | rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la | ||
104 | |||
105 | # If X11, ship a desktop file to launch it | ||
106 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" ]; then | ||
107 | install -d ${D}${datadir}/applications | ||
108 | install ${UNPACKDIR}/weston.desktop ${D}${datadir}/applications | ||
109 | |||
110 | install -d ${D}${datadir}/icons/hicolor/48x48/apps | ||
111 | install ${UNPACKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps | ||
112 | fi | ||
113 | |||
114 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then | ||
115 | install -Dm 644 ${UNPACKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland | ||
116 | fi | ||
117 | |||
118 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'yes', 'no', d)}" = "yes" ]; then | ||
119 | install -Dm 644 ${UNPACKDIR}/systemd-notify.weston-start ${D}${datadir}/weston-start/systemd-notify | ||
120 | fi | ||
121 | |||
122 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'launch', 'yes', 'no', d)}" = "yes" ]; then | ||
123 | chmod u+s ${D}${bindir}/weston-launch | ||
124 | fi | ||
125 | } | ||
126 | |||
127 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ | ||
128 | libweston-${WESTON_MAJOR_VERSION} ${PN}-examples" | ||
129 | |||
130 | FILES:${PN}-dev += "${libdir}/${BPN}/libexec_weston.so" | ||
131 | FILES:${PN} = "${sysconfdir} ${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so* ${datadir}" | ||
132 | |||
133 | FILES:libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so" | ||
134 | SUMMARY:libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'." | ||
135 | |||
136 | FILES:${PN}-examples = "${bindir}/*" | ||
137 | |||
138 | FILES:${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so" | ||
139 | RDEPENDS:${PN}-xwayland += "xwayland" | ||
140 | |||
141 | RDEPENDS:${PN} += "xkeyboard-config" | ||
142 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" | ||
143 | RRECOMMENDS:${PN}-dev += "wayland-protocols" | ||
144 | |||
145 | USERADD_PACKAGES = "${PN}" | ||
146 | GROUPADD_PARAM:${PN} = "--system weston-launch" | ||