1 ################################################################################
5 ################################################################################
7 WESTON_VERSION
= 1.12.0
8 WESTON_SITE
= http
://wayland.freedesktop.org
/releases
9 WESTON_SOURCE
= weston-
$(WESTON_VERSION
).
tar.xz
11 WESTON_LICENSE_FILES
= COPYING
12 # configure.ac patched by 0003-configure-search-for-lib-with-clock_getres.patch
13 WESTON_AUTORECONF
= YES
15 WESTON_DEPENDENCIES
= host-pkgconf wayland wayland-protocols \
16 libxkbcommon pixman libpng jpeg mtdev udev cairo libinput \
17 $(if
$(BR2_PACKAGE_WEBP
),webp
)
20 --with-dtddir
=$(STAGING_DIR
)/usr
/share
/wayland \
21 --disable-headless-compositor \
24 --disable-setuid-install
27 WAYLAND_PROTOCOLS_DATADIR
=$(STAGING_DIR
)/usr
/share
/wayland-protocols
29 # Uses VIDIOC_EXPBUF, only available from 3.8+
30 ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
),)
31 WESTON_CONF_OPTS
+= --disable-simple-dmabuf-v4l-client
34 ifeq ($(BR2_PACKAGE_DBUS
),y
)
35 WESTON_CONF_OPTS
+= --enable-dbus
36 WESTON_DEPENDENCIES
+= dbus
38 WESTON_CONF_OPTS
+= --disable-dbus
41 # weston-launch must be u+s root in order to work properly
42 ifeq ($(BR2_PACKAGE_LINUX_PAM
),y
)
43 define WESTON_PERMISSIONS
44 /usr
/bin
/weston-launch f
4755 0 0 - - - - -
47 - - weston-launch
-1 - - - - Weston launcher group
49 WESTON_CONF_OPTS
+= --enable-weston-launch
50 WESTON_DEPENDENCIES
+= linux-pam
52 WESTON_CONF_OPTS
+= --disable-weston-launch
55 # Needs wayland-egl, which normally only mesa provides
56 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL
)$(BR2_PACKAGE_MESA3D_OPENGL_ES
),yy
)
57 WESTON_CONF_OPTS
+= --enable-egl
58 WESTON_DEPENDENCIES
+= libegl
62 --disable-simple-egl-clients
65 ifeq ($(BR2_PACKAGE_LIBUNWIND
),y
)
66 WESTON_DEPENDENCIES
+= libunwind
68 WESTON_CONF_OPTS
+= --disable-libunwind
71 ifeq ($(BR2_PACKAGE_WESTON_RDP
),y
)
72 WESTON_DEPENDENCIES
+= freerdp
73 WESTON_CONF_OPTS
+= --enable-rdp-compositor
75 WESTON_CONF_OPTS
+= --disable-rdp-compositor
78 ifeq ($(BR2_PACKAGE_WESTON_FBDEV
),y
)
80 --enable-fbdev-compositor \
81 WESTON_NATIVE_BACKEND
=fbdev-backend.so
83 WESTON_CONF_OPTS
+= --disable-fbdev-compositor
86 ifeq ($(BR2_PACKAGE_WESTON_DRM
),y
)
88 --enable-drm-compositor \
89 WESTON_NATIVE_BACKEND
=drm-backend.so
90 WESTON_DEPENDENCIES
+= libdrm
92 WESTON_CONF_OPTS
+= --disable-drm-compositor
95 ifeq ($(BR2_PACKAGE_WESTON_X11
),y
)
97 --enable-x11-compositor \
98 WESTON_NATIVE_BACKEND
=x11-backend.so
99 WESTON_DEPENDENCIES
+= libxcb xlib_libX11
101 WESTON_CONF_OPTS
+= --disable-x11-compositor
104 ifeq ($(BR2_PACKAGE_WESTON_XWAYLAND
),y
)
105 WESTON_CONF_OPTS
+= --enable-xwayland
106 WESTON_DEPENDENCIES
+= cairo libepoxy libxcb xlib_libX11 xlib_libXcursor
108 WESTON_CONF_OPTS
+= --disable-xwayland
111 ifeq ($(BR2_PACKAGE_LIBVA
),y
)
112 WESTON_CONF_OPTS
+= --enable-vaapi-recorder
113 WESTON_DEPENDENCIES
+= libva
115 WESTON_CONF_OPTS
+= --disable-vaapi-recorder
118 ifeq ($(BR2_PACKAGE_LCMS2
),y
)
119 WESTON_CONF_OPTS
+= --enable-lcms
120 WESTON_DEPENDENCIES
+= lcms2
122 WESTON_CONF_OPTS
+= --disable-lcms
125 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
126 WESTON_CONF_OPTS
+= --enable-systemd-login
--enable-systemd-notify
127 WESTON_DEPENDENCIES
+= systemd
129 WESTON_CONF_OPTS
+= --disable-systemd-login
--disable-systemd-notify
132 ifeq ($(BR2_PACKAGE_LIBXML2
),y
)
133 WESTON_CONF_OPTS
+= --enable-junit-xml
134 WESTON_DEPENDENCIES
+= libxml2
136 WESTON_CONF_OPTS
+= --disable-junit-xml
139 ifeq ($(BR2_PACKAGE_WESTON_DEMO_CLIENTS
),y
)
140 WESTON_CONF_OPTS
+= --enable-demo-clients-install
142 WESTON_CONF_OPTS
+= --disable-demo-clients-install
145 $(eval
$(autotools-package
))