logrotate: enable selinux support
[buildroot-gz.git] / package / weston / weston.mk
blob9bd127c6d0b51289b80388ea0ef7e2876ba961ce
1 ################################################################################
3 # weston
5 ################################################################################
7 WESTON_VERSION = 1.12.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
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)
19 WESTON_CONF_OPTS = \
20 --with-dtddir=$(STAGING_DIR)/usr/share/wayland \
21 --disable-headless-compositor \
22 --disable-colord \
23 --disable-devdocs \
24 --disable-setuid-install
26 WESTON_MAKE_OPTS = \
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
32 endif
34 ifeq ($(BR2_PACKAGE_DBUS),y)
35 WESTON_CONF_OPTS += --enable-dbus
36 WESTON_DEPENDENCIES += dbus
37 else
38 WESTON_CONF_OPTS += --disable-dbus
39 endif
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 - - - - -
45 endef
46 define WESTON_USERS
47 - - weston-launch -1 - - - - Weston launcher group
48 endef
49 WESTON_CONF_OPTS += --enable-weston-launch
50 WESTON_DEPENDENCIES += linux-pam
51 else
52 WESTON_CONF_OPTS += --disable-weston-launch
53 endif
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
59 else
60 WESTON_CONF_OPTS += \
61 --disable-egl \
62 --disable-simple-egl-clients
63 endif
65 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
66 WESTON_DEPENDENCIES += libunwind
67 else
68 WESTON_CONF_OPTS += --disable-libunwind
69 endif
71 ifeq ($(BR2_PACKAGE_WESTON_RDP),y)
72 WESTON_DEPENDENCIES += freerdp
73 WESTON_CONF_OPTS += --enable-rdp-compositor
74 else
75 WESTON_CONF_OPTS += --disable-rdp-compositor
76 endif
78 ifeq ($(BR2_PACKAGE_WESTON_FBDEV),y)
79 WESTON_CONF_OPTS += \
80 --enable-fbdev-compositor \
81 WESTON_NATIVE_BACKEND=fbdev-backend.so
82 else
83 WESTON_CONF_OPTS += --disable-fbdev-compositor
84 endif
86 ifeq ($(BR2_PACKAGE_WESTON_DRM),y)
87 WESTON_CONF_OPTS += \
88 --enable-drm-compositor \
89 WESTON_NATIVE_BACKEND=drm-backend.so
90 WESTON_DEPENDENCIES += libdrm
91 else
92 WESTON_CONF_OPTS += --disable-drm-compositor
93 endif
95 ifeq ($(BR2_PACKAGE_WESTON_X11),y)
96 WESTON_CONF_OPTS += \
97 --enable-x11-compositor \
98 WESTON_NATIVE_BACKEND=x11-backend.so
99 WESTON_DEPENDENCIES += libxcb xlib_libX11
100 else
101 WESTON_CONF_OPTS += --disable-x11-compositor
102 endif
104 ifeq ($(BR2_PACKAGE_WESTON_XWAYLAND),y)
105 WESTON_CONF_OPTS += --enable-xwayland
106 WESTON_DEPENDENCIES += cairo libepoxy libxcb xlib_libX11 xlib_libXcursor
107 else
108 WESTON_CONF_OPTS += --disable-xwayland
109 endif
111 ifeq ($(BR2_PACKAGE_LIBVA),y)
112 WESTON_CONF_OPTS += --enable-vaapi-recorder
113 WESTON_DEPENDENCIES += libva
114 else
115 WESTON_CONF_OPTS += --disable-vaapi-recorder
116 endif
118 ifeq ($(BR2_PACKAGE_LCMS2),y)
119 WESTON_CONF_OPTS += --enable-lcms
120 WESTON_DEPENDENCIES += lcms2
121 else
122 WESTON_CONF_OPTS += --disable-lcms
123 endif
125 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
126 WESTON_CONF_OPTS += --enable-systemd-login --enable-systemd-notify
127 WESTON_DEPENDENCIES += systemd
128 else
129 WESTON_CONF_OPTS += --disable-systemd-login --disable-systemd-notify
130 endif
132 ifeq ($(BR2_PACKAGE_LIBXML2),y)
133 WESTON_CONF_OPTS += --enable-junit-xml
134 WESTON_DEPENDENCIES += libxml2
135 else
136 WESTON_CONF_OPTS += --disable-junit-xml
137 endif
139 ifeq ($(BR2_PACKAGE_WESTON_DEMO_CLIENTS),y)
140 WESTON_CONF_OPTS += --enable-demo-clients-install
141 else
142 WESTON_CONF_OPTS += --disable-demo-clients-install
143 endif
145 $(eval $(autotools-package))