gentoo-ebuilds/media-video/guvcview/guvcview-2.2.1.ebuild
Alfred Wingate 5ae819774a
media-video/guvcview: restrict libsfml-3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41992
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2025-05-08 21:44:55 +01:00

73 lines
1.5 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Simple Qt6 or GTK+3 interface for capturing and viewing video from v4l2 devices"
HOMEPAGE="https://guvcview.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/project/${PN}/source/${PN}-src-${PV}.tar.bz2"
S="${WORKDIR}/${PN}-src-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="gsl pulseaudio qt6 sfml"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
"
# <media-libs/libsfml-3: breaking changes
RDEPEND="
media-libs/libpng:=
media-libs/libv4l
media-libs/portaudio
media-video/ffmpeg:=
virtual/libusb:1
virtual/udev
gsl? ( sci-libs/gsl:= )
pulseaudio? ( media-libs/libpulse )
qt6? ( dev-qt/qtbase:6[gui,widgets] )
!qt6? (
dev-libs/glib:2
x11-libs/gtk+:3
)
sfml? (
media-libs/libglvnd
<media-libs/libsfml-3:=
)
!sfml? ( media-libs/libsdl2 )
"
# linux-headers: bug 448260
DEPEND="
${RDEPEND}
virtual/os-headers
!qt6? ( x11-base/xorg-proto )
"
PATCHES=(
"${FILESDIR}"/${PN}-2.2.1-fix-desktop-file-for-cmake.patch
"${FILESDIR}"/${PN}-2.2.1-set-metainfo-dir.patch
)
src_configure() {
local mycmakeargs=(
-DINSTALL_DEVKIT=ON
-DUSE_DEBIANMENU=OFF
-DUSE_PULSE=$(usex pulseaudio)
-DUSE_GTK3=$(usex !qt6)
-DUSE_QT6=$(usex qt6)
-DUSE_SDL2=$(usex !sfml)
-DUSE_SFML=$(usex sfml)
)
cmake_src_configure
}
src_install() {
cmake_src_install
gunzip "${ED}"/usr/share/man/man1/guvcview.1.gz || die
}