diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston_1.4.0.bb')
-rw-r--r-- | meta/recipes-graphics/wayland/weston_1.4.0.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston_1.4.0.bb b/meta/recipes-graphics/wayland/weston_1.4.0.bb new file mode 100644 index 0000000000..5c389a0e04 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston_1.4.0.bb | |||
@@ -0,0 +1,77 @@ | |||
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=275efac2559a224527bd4fd593d38466 \ | ||
6 | file://src/compositor.c;endline=23;md5=aa98a8db03480fe7d500d0b1f4b8850c" | ||
7 | |||
8 | SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | ||
9 | file://weston.png \ | ||
10 | file://weston.desktop \ | ||
11 | file://0001-remove-dependence-on-wayland-scanner-flags.patch" | ||
12 | SRC_URI[md5sum] = "4438d2b1f3c9ba9a4a2b10d89fac6fd0" | ||
13 | SRC_URI[sha256sum] = "74a2319d98e9cdb1acf24659699719aa89ac268cf549759271e326edc5f9ed64" | ||
14 | |||
15 | |||
16 | inherit autotools pkgconfig useradd | ||
17 | |||
18 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 jpeg" | ||
19 | DEPENDS += "wayland virtual/egl pango" | ||
20 | |||
21 | EXTRA_OECONF = "--enable-setuid-install \ | ||
22 | --disable-xwayland \ | ||
23 | --enable-simple-clients \ | ||
24 | --enable-clients \ | ||
25 | --enable-demo-clients-install \ | ||
26 | --disable-simple-egl-clients \ | ||
27 | --disable-libunwind \ | ||
28 | --disable-rpi-compositor \ | ||
29 | --disable-rdp-compositor" | ||
30 | |||
31 | |||
32 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland', '', d)} \ | ||
33 | ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | ||
34 | ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)} \ | ||
35 | " | ||
36 | # | ||
37 | # Compositor choices | ||
38 | # | ||
39 | # Weston on KMS | ||
40 | PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev" | ||
41 | # Weston on Wayland (nested Weston) | ||
42 | PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa" | ||
43 | # Weston on X11 | ||
44 | PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" | ||
45 | # Headless Weston | ||
46 | PACKAGECONFIG[headless] = "--enable-headless-compositor,--disable-headless-compositor" | ||
47 | # Weston on framebuffer | ||
48 | PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,udev mtdev" | ||
49 | # weston-launch | ||
50 | PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,libpam drm" | ||
51 | # VA-API desktop recorder | ||
52 | PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" | ||
53 | |||
54 | do_install_append() { | ||
55 | # Weston doesn't need the .la files to load modules, so wipe them | ||
56 | rm -f ${D}/${libdir}/weston/*.la | ||
57 | |||
58 | # If X11, ship a desktop file to launch it | ||
59 | if [ "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" = "x11" ]; then | ||
60 | install -d ${D}${datadir}/applications | ||
61 | install ${WORKDIR}/weston.desktop ${D}${datadir}/applications | ||
62 | |||
63 | install -d ${D}${datadir}/icons/hicolor/48x48/apps | ||
64 | install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps | ||
65 | fi | ||
66 | } | ||
67 | |||
68 | PACKAGES += "${PN}-examples" | ||
69 | |||
70 | FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${datadir}" | ||
71 | FILES_${PN}-examples = "${bindir}/*" | ||
72 | |||
73 | RDEPENDS_${PN} += "xkeyboard-config" | ||
74 | RRECOMMENDS_${PN} = "liberation-fonts" | ||
75 | |||
76 | USERADD_PACKAGES = "${PN}" | ||
77 | GROUPADD_PARAM_${PN} = "--system weston-launch" | ||