media-tv/v4l-utils: Add opengl useflag
authorAlexis Ballier <aballier@gentoo.org>
Wed, 27 Feb 2019 13:18:23 +0000 (14:18 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 27 Feb 2019 16:30:30 +0000 (17:30 +0100)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
media-tv/v4l-utils/v4l-utils-1.16.3.ebuild

index ebf0e8365010f575e618d2a7c890a3e6bfc8905e..8c1466e3ee744bf9c871386a4c15445c25620b06 100644 (file)
@@ -11,14 +11,13 @@ SRC_URI="http://linuxtv.org/downloads/v4l-utils/${P}.tar.bz2"
 LICENSE="GPL-2+ LGPL-2.1+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="qt5"
+IUSE="opengl qt5"
 
 RDEPEND=">=media-libs/libv4l-${PV}[jpeg]
        qt5? (
                dev-qt/qtcore:5
                dev-qt/qtgui:5
-               dev-qt/qtopengl:5
-               virtual/opengl
+               opengl? ( dev-qt/qtopengl:5[-gles2(-)] virtual/opengl )
                media-libs/alsa-lib
        )
        virtual/libudev
@@ -39,6 +38,9 @@ src_configure() {
                        UIC="$(pkg-config --variable=host_bins Qt5Core)/uic" \
                        RCC="$(pkg-config --variable=host_bins Qt5Core)/rcc" \
                )
+               if use !opengl; then
+                       sed -e 's/Qt5OpenGL/DiSaBlEd/g' -i configure || die
+               fi
        fi
        # Hard disable the flags that apply only to the libs.
        econf \