diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston_1.9.0.bb')
-rw-r--r-- | meta/recipes-graphics/wayland/weston_1.9.0.bb | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston_1.9.0.bb b/meta/recipes-graphics/wayland/weston_1.9.0.bb new file mode 100644 index 0000000000..e14ea9d701 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston_1.9.0.bb | |||
@@ -0,0 +1,103 @@ | |||
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://src/compositor.c;endline=23;md5=1d535fed266cf39f6d8c0647f52ac331" | ||
7 | |||
8 | SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | ||
9 | file://weston.png \ | ||
10 | file://weston.desktop \ | ||
11 | file://make-lcms-explicitly-configurable.patch \ | ||
12 | file://make-libwebp-explicitly-configurable.patch \ | ||
13 | file://0001-make-error-portable.patch \ | ||
14 | file://libsystemd.patch \ | ||
15 | file://explicit-enable-disable-systemd.patch \ | ||
16 | " | ||
17 | SRC_URI[md5sum] = "66bbba12f546570b4d97f676bc79a28e" | ||
18 | SRC_URI[sha256sum] = "9c1b03f3184fa0b0dfdf67e215048085156e1a2ca344af6613fed36794ac48cf" | ||
19 | |||
20 | inherit autotools pkgconfig useradd distro_features_check | ||
21 | # depends on virtual/egl | ||
22 | REQUIRED_DISTRO_FEATURES = "opengl" | ||
23 | |||
24 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 jpeg" | ||
25 | DEPENDS += "wayland libinput virtual/egl pango" | ||
26 | |||
27 | EXTRA_OECONF = "--enable-setuid-install \ | ||
28 | --enable-simple-clients \ | ||
29 | --enable-clients \ | ||
30 | --enable-demo-clients-install \ | ||
31 | --disable-rpi-compositor \ | ||
32 | --disable-rdp-compositor \ | ||
33 | " | ||
34 | |||
35 | EXTRA_OECONF_append_qemux86 = "\ | ||
36 | WESTON_NATIVE_BACKEND=fbdev-backend.so \ | ||
37 | " | ||
38 | EXTRA_OECONF_append_qemux86-64 = "\ | ||
39 | WESTON_NATIVE_BACKEND=fbdev-backend.so \ | ||
40 | " | ||
41 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ | ||
42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | ||
43 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'launch', '', d)} \ | ||
44 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ | ||
45 | " | ||
46 | # | ||
47 | # Compositor choices | ||
48 | # | ||
49 | # Weston on KMS | ||
50 | PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev" | ||
51 | # Weston on Wayland (nested Weston) | ||
52 | PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa" | ||
53 | # Weston on X11 | ||
54 | PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" | ||
55 | # Headless Weston | ||
56 | PACKAGECONFIG[headless] = "--enable-headless-compositor,--disable-headless-compositor" | ||
57 | # Weston on framebuffer | ||
58 | PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,udev mtdev" | ||
59 | # weston-launch | ||
60 | PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,libpam drm" | ||
61 | # VA-API desktop recorder | ||
62 | PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" | ||
63 | # Weston with EGL support | ||
64 | PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" | ||
65 | # Weston with cairo glesv2 support | ||
66 | PACKAGECONFIG[cairo-glesv2] = "--with-cairo-glesv2,--with-cairo=image,cairo" | ||
67 | # Weston with lcms support | ||
68 | PACKAGECONFIG[lcms] = "--enable-lcms,--disable-lcms,lcms" | ||
69 | # Weston with webp support | ||
70 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | ||
71 | # Weston with unwinding support | ||
72 | PACKAGECONFIG[libunwind] = "--enable-libunwind,--disable-libunwind,libunwind" | ||
73 | # Weston with systemd-login support | ||
74 | PACKAGECONFIG[systemd] = "--enable-systemd-login,--disable-systemd-login,systemd dbus" | ||
75 | # Weston with Xwayland support | ||
76 | PACKAGECONFIG[xwayland] = "--enable-xwayland,--disable-xwayland,libxcb libxcursor cairo" | ||
77 | # colord CMS support | ||
78 | PACKAGECONFIG[colord] = "--enable-colord,--disable-colord,colord" | ||
79 | |||
80 | do_install_append() { | ||
81 | # Weston doesn't need the .la files to load modules, so wipe them | ||
82 | rm -f ${D}/${libdir}/weston/*.la | ||
83 | |||
84 | # If X11, ship a desktop file to launch it | ||
85 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" = "x11" ]; then | ||
86 | install -d ${D}${datadir}/applications | ||
87 | install ${WORKDIR}/weston.desktop ${D}${datadir}/applications | ||
88 | |||
89 | install -d ${D}${datadir}/icons/hicolor/48x48/apps | ||
90 | install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps | ||
91 | fi | ||
92 | } | ||
93 | |||
94 | PACKAGES += "${PN}-examples" | ||
95 | |||
96 | FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir}" | ||
97 | FILES_${PN}-examples = "${bindir}/*" | ||
98 | |||
99 | RDEPENDS_${PN} += "xkeyboard-config" | ||
100 | RRECOMMENDS_${PN} = "liberation-fonts" | ||
101 | |||
102 | USERADD_PACKAGES = "${PN}" | ||
103 | GROUPADD_PARAM_${PN} = "--system weston-launch" | ||