# wayland bdepend for wayland-scanner, xorg-server for cvt utility
BDEPEND="
dev-libs/wayland
>=dev-util/meson-0.50.0
dev-util/gdbus-codegen
dev-util/glib-utils
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
test? ( app-text/docbook-xml-dtd:4.5 )
wayland? ( >=sys-kernel/linux-headers-4.4
x11-base/xorg-server )
"
PATCHES=(
# Some patches from gnome-3-32 branch on top of 3.32.2
"${WORKDIR}"/patches/
# Allow building USE=wayland without cogl-gles2 from USE=gles2
"${FILESDIR}"/${PV}-no-cogl-gles2.patch
)
src_configure(){
# TODO: Replicate debug vs release meson build type behaviour under our buildtype=plain
localemesonargs=(
-Dopengl=true
#opengl_libname
#gles2_libname
$(meson_use gles2)
-Degl=true
-Dglx=true
$(meson_use wayland)
$(meson_use wayland native_backend)
$(meson_use screencast remote_desktop)
-Degl_device=false# This should be dependent on wayland,video_drivers_nvidia, once eglstream support is there
-Dwayland_eglstream=false# requires packages egl-wayland for wayland-eglstream-protocols.pc
$(meson_use udev)
$(meson_use input_devices_wacom libwacom)
-Dpango_ft2=true
-Dstartup_notification=true
-Dsm=true
$(meson_use introspection)
$(meson_use test cogl_tests)
$(meson_use test clutter_tests)
$(meson_use test tests)
-Dinstalled_tests=false
#verbose # Let upstream choose default for verbose mode
#xwayland_path
# TODO: relies on default settings, but in Gentoo we might have some more packages we want to give Xgrab access (mostly virtual managers and remote desktops)