diff options
author | Mihai Lindner <mihai.lindner@nxp.com> | 2019-12-16 13:53:19 +0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2019-12-16 14:06:39 -0300 |
commit | a4fdb4074644bda09b46490163886065b4c00aab (patch) | |
tree | 2a37b5ce4dc1b8f460c9c9a4de50326951349460 /recipes-graphics/wayland/weston_5.0.0.imx.bb | |
parent | ca58ffe4a593b75b00fd53145690f84eb1e663ee (diff) | |
download | meta-freescale-a4fdb4074644bda09b46490163886065b4c00aab.tar.gz |
weston: Upgrade to 6.0.1.imx
Signed-off-by: Mihai Lindner <mihai.lindner@nxp.com>
Diffstat (limited to 'recipes-graphics/wayland/weston_5.0.0.imx.bb')
-rw-r--r-- | recipes-graphics/wayland/weston_5.0.0.imx.bb | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/recipes-graphics/wayland/weston_5.0.0.imx.bb b/recipes-graphics/wayland/weston_5.0.0.imx.bb deleted file mode 100644 index a7778b41..00000000 --- a/recipes-graphics/wayland/weston_5.0.0.imx.bb +++ /dev/null | |||
@@ -1,140 +0,0 @@ | |||
1 | SUMMARY = "Weston, a Wayland compositor, i.MX fork" | ||
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=26;md5=f47553ae598090444273db00adfb5b66" | ||
7 | |||
8 | DEFAULT_PREFERENCE = "-1" | ||
9 | |||
10 | SRCBRANCH = "weston-imx-5.0" | ||
11 | SRC_URI = "git://source.codeaurora.org/external/imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} \ | ||
12 | file://weston.png \ | ||
13 | file://weston.desktop \ | ||
14 | file://0001-make-error-portable.patch \ | ||
15 | file://xwayland.weston-start \ | ||
16 | file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \ | ||
17 | file://0003-weston-touch-calibrator-Advertise-the-touchscreen-ca.patch \ | ||
18 | " | ||
19 | SRCREV = "fb563901657b296c7c7c86d26602a622429e334f" | ||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | ||
23 | |||
24 | inherit autotools pkgconfig useradd features_check | ||
25 | |||
26 | # Disable OpenGL for parts with GPU support for 2D but not 3D | ||
27 | REQUIRED_DISTRO_FEATURES = "opengl" | ||
28 | REQUIRED_DISTRO_FEATURES_imxgpu2d = "" | ||
29 | REQUIRED_DISTRO_FEATURES_imxgpu3d = "opengl" | ||
30 | PACKAGECONFIG_OPENGL = "opengl" | ||
31 | PACKAGECONFIG_OPENGL_imxgpu2d = "" | ||
32 | PACKAGECONFIG_OPENGL_imxgpu3d = "opengl" | ||
33 | |||
34 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 jpeg" | ||
35 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" | ||
36 | |||
37 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" | ||
38 | |||
39 | EXTRA_OECONF = "--enable-setuid-install \ | ||
40 | --disable-rdp-compositor \ | ||
41 | " | ||
42 | EXTRA_OECONF_append_qemux86 = " \ | ||
43 | WESTON_NATIVE_BACKEND=fbdev-backend.so \ | ||
44 | " | ||
45 | EXTRA_OECONF_append_qemux86-64 = " \ | ||
46 | WESTON_NATIVE_BACKEND=fbdev-backend.so \ | ||
47 | " | ||
48 | EXTRA_OECONF_append_imxfbdev = " \ | ||
49 | WESTON_NATIVE_BACKEND=fbdev-backend.so \ | ||
50 | " | ||
51 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ | ||
52 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ | ||
53 | ${@bb.utils.filter('DISTRO_FEATURES', '${PACKAGECONFIG_OPENGL} pam systemd x11', d)} \ | ||
54 | clients launch" | ||
55 | PACKAGECONFIG_remove_imxfbdev = "kms" | ||
56 | PACKAGECONFIG_append_imxgpu = " imxgpu" | ||
57 | PACKAGECONFIG_append_imxgpu2d = " imxg2d" | ||
58 | PACKAGECONFIG_append_imxgpu3d = " cairo-glesv2" | ||
59 | # | ||
60 | # Compositor choices | ||
61 | # | ||
62 | # Weston on KMS | ||
63 | PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa mtdev" | ||
64 | # Weston on Wayland (nested Weston) | ||
65 | PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa" | ||
66 | # Weston on X11 | ||
67 | PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" | ||
68 | # Headless Weston | ||
69 | PACKAGECONFIG[headless] = "--enable-headless-compositor,--disable-headless-compositor" | ||
70 | # Weston on framebuffer | ||
71 | PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,udev mtdev" | ||
72 | # weston-launch | ||
73 | PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,drm" | ||
74 | # VA-API desktop recorder | ||
75 | PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" | ||
76 | # Weston with EGL support | ||
77 | PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" | ||
78 | # Weston with cairo glesv2 support | ||
79 | PACKAGECONFIG[cairo-glesv2] = "--with-cairo-glesv2,--with-cairo=image,cairo" | ||
80 | # Weston with lcms support | ||
81 | PACKAGECONFIG[lcms] = "--enable-lcms,--disable-lcms,lcms" | ||
82 | # Weston with webp support | ||
83 | PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp" | ||
84 | # Weston with systemd-login support | ||
85 | PACKAGECONFIG[systemd] = "--enable-systemd-login,--disable-systemd-login,systemd dbus" | ||
86 | # Weston with Xwayland support (requires X11 and Wayland) | ||
87 | PACKAGECONFIG[xwayland] = "--enable-xwayland,--disable-xwayland" | ||
88 | # colord CMS support | ||
89 | PACKAGECONFIG[colord] = "--enable-colord,--disable-colord,colord" | ||
90 | # Clients support | ||
91 | PACKAGECONFIG[clients] = "--enable-clients --enable-simple-clients --enable-demo-clients-install,--disable-clients --disable-simple-clients" | ||
92 | # Weston with PAM support | ||
93 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam" | ||
94 | # Weston with i.MX GPU support | ||
95 | PACKAGECONFIG[imxgpu] = "--enable-imxgpu,--disable-imxgpu" | ||
96 | # Weston with i.MX G2D renderer | ||
97 | PACKAGECONFIG[imxg2d] = "--enable-imxg2d,--disable-imxg2d,virtual/libg2d" | ||
98 | # Weston with OpenGL support | ||
99 | PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl" | ||
100 | |||
101 | do_install_append() { | ||
102 | # Weston doesn't need the .la files to load modules, so wipe them | ||
103 | rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la | ||
104 | |||
105 | # If X11, ship a desktop file to launch it | ||
106 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" ]; then | ||
107 | install -d ${D}${datadir}/applications | ||
108 | install ${WORKDIR}/weston.desktop ${D}${datadir}/applications | ||
109 | |||
110 | install -d ${D}${datadir}/icons/hicolor/48x48/apps | ||
111 | install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps | ||
112 | fi | ||
113 | |||
114 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then | ||
115 | install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland | ||
116 | fi | ||
117 | } | ||
118 | |||
119 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ | ||
120 | libweston-${WESTON_MAJOR_VERSION} ${PN}-examples" | ||
121 | |||
122 | FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir} ${sysconfdir}/xdg/weston" | ||
123 | |||
124 | FILES_libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so" | ||
125 | SUMMARY_libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'." | ||
126 | |||
127 | FILES_${PN}-examples = "${bindir}/*" | ||
128 | |||
129 | FILES_${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so" | ||
130 | RDEPENDS_${PN}-xwayland += "xserver-xorg-xwayland" | ||
131 | |||
132 | RDEPENDS_${PN} += "xkeyboard-config" | ||
133 | RRECOMMENDS_${PN} = "liberation-fonts" | ||
134 | RRECOMMENDS_${PN}-dev += "wayland-protocols" | ||
135 | |||
136 | USERADD_PACKAGES = "${PN}" | ||
137 | GROUPADD_PARAM_${PN} = "--system weston-launch" | ||
138 | |||
139 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
140 | COMPATIBLE_MACHINE = "(imxfbdev|imxgpu)" | ||