# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-
-inherit autotools flag-o-matic qmake-utils toolchain-funcs
+EAPI=7
MY_P=${PN}-src-${PV}
+inherit autotools flag-o-matic qmake-utils toolchain-funcs
DESCRIPTION="Simple Qt5 or GTK+3 interface for capturing and viewing video from v4l2 devices"
HOMEPAGE="http://guvcview.sourceforge.net/"
KEYWORDS="amd64 x86"
IUSE="gsl pulseaudio qt5"
+BDEPEND="
+ dev-util/intltool
+ sys-devel/autoconf-archive
+ sys-devel/gettext
+ virtual/pkgconfig
+"
RDEPEND="
>=dev-libs/glib-2.10
media-libs/libpng:0=
media-libs/libsdl2
media-libs/libv4l
>=media-libs/portaudio-19_pre
- media-video/ffmpeg
+ >=media-video/ffmpeg-2.8:0=
virtual/libusb:1
virtual/udev
gsl? ( >=sci-libs/gsl-1.15 )
- >=media-video/ffmpeg-2.8:0=
pulseaudio? ( >=media-sound/pulseaudio-0.9.15 )
qt5? (
dev-qt/qtcore:5
"
# linux-headers: bug 448260
DEPEND="${RDEPEND}
- dev-util/intltool
- sys-devel/autoconf-archive
- sys-devel/gettext
>=sys-kernel/linux-headers-3.4-r2
virtual/os-headers
- virtual/pkgconfig
"
S="${WORKDIR}/${MY_P}"
src_install() {
default
- find "${D}" -name '*.la' -delete || die
+ find "${D}" -name '*.la' -type f -delete || die
}