net-libs/webkit-gtk: simplify opengl vs gles2 handling, fix gst gles2 deps
authorMart Raudsepp <leio@gentoo.org>
Sun, 22 Jul 2018 13:09:10 +0000 (16:09 +0300)
committerMart Raudsepp <leio@gentoo.org>
Mon, 23 Jul 2018 22:23:47 +0000 (01:23 +0300)
commit7f268cbd114024d9dad9cdfe241e83a9f1716b82
treeb1b402bcff5daee4ad05997b4750677ca810b1dc
parent0ef939500fc5ea10e291e8097a5f25b90fc1bb88
net-libs/webkit-gtk: simplify opengl vs gles2 handling, fix gst gles2 deps

webkit-gtk itself does not support both full OpenGL and GLESv2 at once yet.
ENABLE_OPENGL enables OpenGL in general, and if enabled then ENABLE_GLES2
determines which API is used - if enabled, then gles2, otherwise full GL.
Simplify REQUIRED_USE handling to enforce the opengl/gles2 conflict
separately, and have the webgl case just want either, to be future-proof
and easier to read independently.

WebGL should just always be enabled when either GL API is enabled, but
keeping it under USE flag for the time being, until an even deeper
GL/GStreamer webkitgtk cmake review, due to the webgl? ( gstreamer )
REQUIRED_USE still present.
For now just (probably) properly depend on gstreamer gles2 support for
USE="gles2 gstreamer" builds.

Bug: https://bugs.gentoo.org/500150
Package-Manager: Portage-2.3.43, Repoman-2.3.10
net-libs/webkit-gtk/webkit-gtk-2.20.3.ebuild