media-plugins/gst-plugins-vaapi: Make egl support optional (#588498 by Toralf Förster...
authorPacho Ramos <pacho@gentoo.org>
Sun, 31 Jul 2016 08:45:27 +0000 (10:45 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 31 Jul 2016 08:54:17 +0000 (10:54 +0200)
Package-Manager: portage-2.3.0

media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.8.2.ebuild
media-plugins/gst-plugins-vaapi/metadata.xml

index c2c586062bc6457b769e141f0ed150ef675cded1..1d4c4f51e23b3c102d21b73a52ea4718e7182251 100644 (file)
@@ -14,7 +14,7 @@ LICENSE="LGPL-2.1"
 SLOT="1.0"
 KEYWORDS="~amd64 ~x86"
 
-IUSE="+drm opengl wayland +X"
+IUSE="+drm egl opengl wayland +X"
 REQUIRED_USE="|| ( drm opengl wayland X )"
 
 RDEPEND="
@@ -26,14 +26,16 @@ RDEPEND="
        drm? (
                >=virtual/libudev-208:=[${MULTILIB_USEDEP}]
                >=x11-libs/libdrm-2.4.46[${MULTILIB_USEDEP}] )
-       X? (
-               >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
-               >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] )
+       egl? (
+               >=media-libs/gst-plugins-bad-${PV}:1.0[opengl,${MULTILIB_USEDEP}] )
        opengl? (
                >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
                >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
                >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] )
        wayland? ( >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] )
+       X? (
+               >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+               >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] )
 "
 DEPEND="${RDEPEND}
        >=dev-util/gtk-doc-am-1.12
@@ -46,8 +48,8 @@ multilib_src_configure() {
        ECONF_SOURCE=${S} \
        econf \
                --disable-static \
-               --enable-egl \
                $(use_enable drm) \
+               $(use_enable egl) \
                $(use_enable opengl glx) \
                $(use_enable wayland) \
                $(use_enable X x11)
index 74f4f08c3cc016abb3c25bb798cc94501a311f6c..38a37a97b3fbf1d8eba656e4540c3295e3e1d091 100644 (file)
@@ -7,6 +7,7 @@
        </maintainer>
        <use>
                <flag name="drm">Enable DRM renderer</flag>
+               <flag name="egl">Enable EGL support</flag>
        </use>
        <upstream>
                <remote-id type="github">01org/gstreamer-vaapi</remote-id>