1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 07:22:38 +01:00

media-video/v4l2-relayd: add new ebuild

This commit is contained in:
2025-10-11 22:15:41 +02:00
parent 91e3cf6022
commit 34fde41d35
3 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST v4l2-relayd-0.1.5.tar.xz 17500 BLAKE2B 15fcd1adfa7d6e550df5df03ea292b58a9376fdf6205e84f074830de1287611f69a69a762462ad5110096b5262edc2068baef0c1e47db39bb70173ff4e796872 SHA512 b7c432b295177d73a640e21056a6d706af51cd525ea07b19f26d1bc79536d43167f8821522f3e8449356ace7b9fab913aeb5081d9d11065cfe6d0c6cb4637b2b

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>david.guglielmi@gmail.com</email>
<name>David GUGLIELMI</name>
</maintainer>
<use>
<flag name="icamera">Intel MIPI Camera support</flag>
</use>
<upstream>
<remote-id type="launchpad">v4l2-relayd</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,55 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools systemd
DESCRIPTION="Streaming relay for v4l2loopback using GStreamer"
HOMEPAGE="https://git.launchpad.net/v4l2-relayd"
SRC_URI="
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/${PN}/${PV}-0ubuntu1/${PN}_${PV}.orig.tar.xz
-> ${P}.tar.xz
"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE="+icamera"
DEPEND="
dev-libs/glib:=
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
"
RDEPEND="
${DEPEND}
icamera? (
media-plugins/gst-plugins-icamera
)
media-video/v4l2loopback
"
src_prepare() {
eautoreconf
if use icamera; then
sed -i \
-e '/^FORMAT=/s#.*#FORMAT=NV12#g' \
-e '/^VIDEOSRC=/s#.*#VIDEOSRC="icamerasrc"#g' \
-e '/^CARD_LABEL=/s#.*#CARD_LABEL="Intel MIPI Camera"#g' \
data/etc/default/${PN} || die
sed -i \
-e 's#card_label="Virtual Camera"#card_label="Intel MIPI Camera"#g' \
data/etc/modprobe.d/${PN}.conf || die
fi
default
}
src_configure() {
econf \
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
}