libglib2: bump to version 2.48.2
[buildroot-gz.git] / package / weston / weston.mk
blob31c9281bb8d372892d6d86368dd8d427075d7663
1 ################################################################################
3 # weston
5 ################################################################################
7 WESTON_VERSION = 1.11.0
8 WESTON_SITE = http://wayland.freedesktop.org/releases
9 WESTON_SOURCE = weston-$(WESTON_VERSION).tar.xz
10 WESTON_LICENSE = MIT
11 WESTON_LICENSE_FILES = COPYING
13 WESTON_DEPENDENCIES = host-pkgconf wayland wayland-protocols \
14 libxkbcommon pixman libpng jpeg mtdev udev cairo libinput \
15 $(if $(BR2_PACKAGE_WEBP),webp)
17 WESTON_CONF_OPTS = \
18 --with-dtddir=$(STAGING_DIR)/usr/share/wayland \
19 --disable-headless-compositor \
20 --disable-colord \
21 --disable-setuid-install
23 WESTON_MAKE_OPTS = \
24 WAYLAND_PROTOCOLS_DATADIR=$(STAGING_DIR)/usr/share/wayland-protocols
26 # Uses VIDIOC_EXPBUF, only available from 3.8+
27 ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8),)
28 WESTON_CONF_OPTS += --disable-simple-dmabuf-v4l-client
29 endif
31 ifeq ($(BR2_PACKAGE_DBUS),y)
32 WESTON_CONF_OPTS += --enable-dbus
33 WESTON_DEPENDENCIES += dbus
34 else
35 WESTON_CONF_OPTS += --disable-dbus
36 endif
38 # weston-launch must be u+s root in order to work properly
39 ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
40 define WESTON_PERMISSIONS
41 /usr/bin/weston-launch f 4755 0 0 - - - - -
42 endef
43 define WESTON_USERS
44 - - weston-launch -1 - - - - Weston launcher group
45 endef
46 WESTON_CONF_OPTS += --enable-weston-launch
47 WESTON_DEPENDENCIES += linux-pam
48 else
49 WESTON_CONF_OPTS += --disable-weston-launch
50 endif
52 # Needs wayland-egl, which normally only mesa provides
53 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL)$(BR2_PACKAGE_MESA3D_OPENGL_ES),yy)
54 WESTON_CONF_OPTS += --enable-egl
55 WESTON_DEPENDENCIES += libegl
56 else
57 WESTON_CONF_OPTS += \
58 --disable-egl \
59 --disable-simple-egl-clients
60 endif
62 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
63 WESTON_DEPENDENCIES += libunwind
64 else
65 WESTON_CONF_OPTS += --disable-libunwind
66 endif
68 ifeq ($(BR2_PACKAGE_WESTON_RDP),y)
69 WESTON_DEPENDENCIES += freerdp
70 WESTON_CONF_OPTS += --enable-rdp-compositor
71 else
72 WESTON_CONF_OPTS += --disable-rdp-compositor
73 endif
75 ifeq ($(BR2_PACKAGE_WESTON_FBDEV),y)
76 WESTON_CONF_OPTS += \
77 --enable-fbdev-compositor \
78 WESTON_NATIVE_BACKEND=fbdev-backend.so
79 else
80 WESTON_CONF_OPTS += --disable-fbdev-compositor
81 endif
83 ifeq ($(BR2_PACKAGE_WESTON_DRM),y)
84 WESTON_CONF_OPTS += \
85 --enable-drm-compositor \
86 WESTON_NATIVE_BACKEND=drm-backend.so
87 WESTON_DEPENDENCIES += libdrm
88 else
89 WESTON_CONF_OPTS += --disable-drm-compositor
90 endif
92 ifeq ($(BR2_PACKAGE_WESTON_RPI),y)
93 WESTON_DEPENDENCIES += rpi-userland
94 WESTON_CONF_OPTS += --enable-rpi-compositor \
95 --disable-resize-optimization \
96 WESTON_NATIVE_BACKEND=rpi-backend.so
97 else
98 WESTON_CONF_OPTS += --disable-rpi-compositor
99 endif # BR2_PACKAGE_WESTON_RPI
101 ifeq ($(BR2_PACKAGE_WESTON_X11),y)
102 WESTON_CONF_OPTS += \
103 --enable-x11-compositor \
104 WESTON_NATIVE_BACKEND=x11-backend.so
105 WESTON_DEPENDENCIES += libxcb xlib_libX11
106 else
107 WESTON_CONF_OPTS += --disable-x11-compositor
108 endif
110 ifeq ($(BR2_PACKAGE_WESTON_XWAYLAND),y)
111 WESTON_CONF_OPTS += --enable-xwayland
112 WESTON_DEPENDENCIES += cairo libepoxy libxcb xlib_libX11 xlib_libXcursor
113 else
114 WESTON_CONF_OPTS += --disable-xwayland
115 endif
117 ifeq ($(BR2_PACKAGE_LIBVA),y)
118 WESTON_CONF_OPTS += --enable-vaapi-recorder
119 WESTON_DEPENDENIES += libva
120 else
121 WESTON_CONF_OPTS += --disable-vaapi-recorder
122 endif
124 ifeq ($(BR2_PACKAGE_LCMS2),y)
125 WESTON_CONF_OPTS += --enable-lcms
126 WESTON_DEPENDENCIES += lcms2
127 else
128 WESTON_CONF_OPTS += --disable-lcms
129 endif
131 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
132 WESTON_CONF_OPTS += --enable-systemd-login --enable-systemd-notify
133 WESTON_DEPENDENCIES += systemd
134 else
135 WESTON_CONF_OPTS += --disable-systemd-login --disable-systemd-notify
136 endif
138 ifeq ($(BR2_PACKAGE_LIBXML2),y)
139 WESTON_CONF_OPTS += --enable-junit-xml
140 WESTON_DEPENDENCIES += libxml2
141 else
142 WESTON_CONF_OPTS += --disable-junit-xml
143 endif
145 ifeq ($(BR2_PACKAGE_WESTON_DEMO_CLIENTS),y)
146 WESTON_CONF_OPTS += --enable-demo-clients-install
147 else
148 WESTON_CONF_OPTS += --disable-demo-clients-install
149 endif
151 $(eval $(autotools-package))