diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston_8.0.0.bb')
-rw-r--r-- | meta/recipes-graphics/wayland/weston_8.0.0.bb | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston_8.0.0.bb b/meta/recipes-graphics/wayland/weston_8.0.0.bb new file mode 100644 index 0000000000..83aee870aa --- /dev/null +++ b/meta/recipes-graphics/wayland/weston_8.0.0.bb | |||
@@ -0,0 +1,112 @@ | |||
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=6c53bbbd99273f4f7c4affa855c33c0a" | ||
7 | |||
8 | SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | ||
9 | file://weston.png \ | ||
10 | file://weston.desktop \ | ||
11 | file://xwayland.weston-start \ | ||
12 | file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \ | ||
13 | " | ||
14 | SRC_URI[md5sum] = "53e4810d852df0601d01fd986a5b22b3" | ||
15 | SRC_URI[sha256sum] = "7518b49b2eaa1c3091f24671bdcc124fd49fc8f1af51161927afa4329c027848" | ||
16 | |||
17 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | ||
18 | |||
19 | inherit meson pkgconfig useradd features_check | ||
20 | # depends on virtual/egl | ||
21 | REQUIRED_DISTRO_FEATURES = "opengl" | ||
22 | |||
23 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 jpeg" | ||
24 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" | ||
25 | |||
26 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" | ||
27 | |||
28 | EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=false -Dpipewire=false" | ||
29 | |||
30 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ | ||
31 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ | ||
32 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd x11', d)} \ | ||
33 | ${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'headless', d)} \ | ||
34 | clients launch" | ||
35 | # | ||
36 | # Compositor choices | ||
37 | # | ||
38 | # Weston on KMS | ||
39 | PACKAGECONFIG[kms] = "-Dbackend-drm=true,-Dbackend-drm=false,drm udev virtual/egl virtual/libgles2 virtual/libgbm mtdev" | ||
40 | # Weston on Wayland (nested Weston) | ||
41 | PACKAGECONFIG[wayland] = "-Dbackend-wayland=true,-Dbackend-wayland=false,virtual/egl virtual/libgles2" | ||
42 | # Weston on X11 | ||
43 | PACKAGECONFIG[x11] = "-Dbackend-x11=true,-Dbackend-x11=false,virtual/libx11 libxcb libxcb libxcursor cairo" | ||
44 | # Headless Weston | ||
45 | PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false" | ||
46 | # Weston on framebuffer | ||
47 | PACKAGECONFIG[fbdev] = "-Dbackend-fbdev=true,-Dbackend-fbdev=false,udev mtdev" | ||
48 | # weston-launch | ||
49 | PACKAGECONFIG[launch] = "-Dweston-launch=true,-Dweston-launch=false,drm" | ||
50 | # VA-API desktop recorder | ||
51 | PACKAGECONFIG[vaapi] = "-Dbackend-drm-screencast-vaapi=true,-Dbackend-drm-screencast-vaapi=false,libva" | ||
52 | # Weston with EGL support | ||
53 | PACKAGECONFIG[egl] = "-Drenderer-gl=true,-Drenderer-gl=false,virtual/egl" | ||
54 | # Weston with lcms support | ||
55 | PACKAGECONFIG[lcms] = "-Dcolor-management-lcms=true,-Dcolor-management-lcms=false,lcms" | ||
56 | # Weston with webp support | ||
57 | PACKAGECONFIG[webp] = "-Dimage-webp=true,-Dimage-webp=false,libwebp" | ||
58 | # Weston with systemd-login support | ||
59 | PACKAGECONFIG[systemd] = "-Dsystemd=true -Dlauncher-logind=true,-Dsystemd=false -Dlauncher-logind=false,systemd dbus" | ||
60 | # Weston with Xwayland support (requires X11 and Wayland) | ||
61 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false" | ||
62 | # colord CMS support | ||
63 | PACKAGECONFIG[colord] = "-Dcolor-management-colord=true,-Dcolor-management-colord=false,colord" | ||
64 | # Clients support | ||
65 | PACKAGECONFIG[clients] = "-Dsimple-clients=all -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" | ||
66 | # Virtual remote output with GStreamer on DRM backend | ||
67 | PACKAGECONFIG[remoting] = "-Dremoting=true,-Dremoting=false,gstreamer-1.0" | ||
68 | # Weston with PAM support | ||
69 | PACKAGECONFIG[pam] = "-Dpam=true,-Dpam=false,libpam" | ||
70 | |||
71 | do_install_append() { | ||
72 | # Weston doesn't need the .la files to load modules, so wipe them | ||
73 | rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la | ||
74 | |||
75 | # If X11, ship a desktop file to launch it | ||
76 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" ]; then | ||
77 | install -d ${D}${datadir}/applications | ||
78 | install ${WORKDIR}/weston.desktop ${D}${datadir}/applications | ||
79 | |||
80 | install -d ${D}${datadir}/icons/hicolor/48x48/apps | ||
81 | install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps | ||
82 | fi | ||
83 | |||
84 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then | ||
85 | install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland | ||
86 | fi | ||
87 | |||
88 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'launch', 'yes', 'no', d)}" = "yes" ]; then | ||
89 | chmod u+s ${D}${bindir}/weston-launch | ||
90 | fi | ||
91 | } | ||
92 | |||
93 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ | ||
94 | libweston-${WESTON_MAJOR_VERSION} ${PN}-examples" | ||
95 | |||
96 | FILES_${PN}-dev += "${libdir}/${BPN}/libexec_weston.so" | ||
97 | FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so* ${datadir}" | ||
98 | |||
99 | FILES_libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so" | ||
100 | SUMMARY_libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'." | ||
101 | |||
102 | FILES_${PN}-examples = "${bindir}/*" | ||
103 | |||
104 | FILES_${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so" | ||
105 | RDEPENDS_${PN}-xwayland += "xserver-xorg-xwayland" | ||
106 | |||
107 | RDEPENDS_${PN} += "xkeyboard-config" | ||
108 | RRECOMMENDS_${PN} = "weston-init liberation-fonts" | ||
109 | RRECOMMENDS_${PN}-dev += "wayland-protocols" | ||
110 | |||
111 | USERADD_PACKAGES = "${PN}" | ||
112 | GROUPADD_PARAM_${PN} = "--system weston-launch" | ||