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