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