diff options
author | Sam James <sam@gentoo.org> | 2024-03-23 06:33:03 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-23 06:33:03 +0000 |
commit | 9bdf7713ca76703178f2bdbe84ea945b9aec9d63 (patch) | |
tree | e627f7e35f5849b8ca1a2619f2833693faaaef6a /media-video | |
parent | net-analyzer/hydra: remove unused patch (diff) | |
download | gentoo-9bdf7713ca76703178f2bdbe84ea945b9aec9d63.tar.gz gentoo-9bdf7713ca76703178f2bdbe84ea945b9aec9d63.tar.bz2 gentoo-9bdf7713ca76703178f2bdbe84ea945b9aec9d63.zip |
media-video/v4l2loopback: add 0.13.1
Closes: https://bugs.gentoo.org/914291
Closes: https://bugs.gentoo.org/926831
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/v4l2loopback/Manifest | 1 | ||||
-rw-r--r-- | media-video/v4l2loopback/v4l2loopback-0.13.1.ebuild | 62 | ||||
-rw-r--r-- | media-video/v4l2loopback/v4l2loopback-9999.ebuild | 5 |
3 files changed, 67 insertions, 1 deletions
diff --git a/media-video/v4l2loopback/Manifest b/media-video/v4l2loopback/Manifest index 8df167f2e7a4..163aa99510e5 100644 --- a/media-video/v4l2loopback/Manifest +++ b/media-video/v4l2loopback/Manifest @@ -1,2 +1,3 @@ DIST v4l2loopback-0.12.5.tar.gz 51468 BLAKE2B 514f686fc6f87feebedb1b047e764fa03938c265c88db0fedfb6aba3544f5b8b495631fc0bcdf4b88c1c4d522f6b4d7546b4d0d10381f6be2efc7f405511033a SHA512 5fd2affbb4a7f38bb78f996179de6570b2bd69cfed2a79c4505e7ea2cdf5b65c0a6807f1f4e03f320b667f5cbe62f26fadd412bc0fec5944e4e394635bf5fb3d DIST v4l2loopback-0.12.7.tar.gz 52145 BLAKE2B 08b0dd6dfd065f8bc450aad8d711d1723fe65bbee6be4624038f34e8ad8bc2ed6e544fc5771fb42b0e8c92213c2db71aff5857c0b1fd6343c6900bf27df618d7 SHA512 fcfe55396e9ddad56e592ffccd955c8ceff49c11cfbc5af382123ee0c15b41729b78cb763acbb17d288c48498f2183a4b24f146758ae67e1982b7ab2b07ff973 +DIST v4l2loopback-0.13.1.tar.gz 84323 BLAKE2B ad84826791763107c29ecc79435eb5e6d5bd1c18a18cfeabebaffd2c6f00a17564e8cb2773c35aba40cc181d06a21b2aafc86910b1d160adee98c015497cda7f SHA512 28b8c90f1e5fe48d19f41dbc188bf383ce8a6db33707ef161b55cae3217704a7e45e91a782bc3bf08db338f8ba0f045afd52899026be7e2e9bfeb6799a876628 diff --git a/media-video/v4l2loopback/v4l2loopback-0.13.1.ebuild b/media-video/v4l2loopback/v4l2loopback-0.13.1.ebuild new file mode 100644 index 000000000000..4f52cdf4437f --- /dev/null +++ b/media-video/v4l2loopback/v4l2loopback-0.13.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 toolchain-funcs + +case ${PV} in +9999) + inherit git-r3 + EGIT_REPO_URI="https://github.com/umlaeute/v4l2loopback.git" + ;; +*) + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/umlaeute/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + ;; +esac + +DESCRIPTION="v4l2 loopback device whose output is its own input" +HOMEPAGE="https://github.com/umlaeute/v4l2loopback" + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples" + +CONFIG_CHECK="VIDEO_DEV" + +pkg_setup() { + linux-mod-r1_pkg_setup + export KERNELRELEASE=${KV_FULL} +} + +src_prepare() { + default + sed -i -e 's/gcc /$(CC) /' examples/Makefile || die +} + +src_compile() { + local modlist=( + v4l2loopback=video: + ) + + linux-mod-r1_src_compile + + emake CC="$(tc-getCC)" -C utils + + if use examples; then + emake CC="$(tc-getCC)" -C examples + fi +} + +src_install() { + linux-mod-r1_src_install + dosbin utils/v4l2loopback-ctl + dodoc doc/kernel_debugging.txt + dodoc doc/docs.txt + if use examples; then + dosbin examples/yuv4mpeg_to_v4l2 + docinto examples + dodoc examples/{*.sh,*.c,Makefile} + fi +} diff --git a/media-video/v4l2loopback/v4l2loopback-9999.ebuild b/media-video/v4l2loopback/v4l2loopback-9999.ebuild index 20dda14f748d..4f52cdf4437f 100644 --- a/media-video/v4l2loopback/v4l2loopback-9999.ebuild +++ b/media-video/v4l2loopback/v4l2loopback-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -41,6 +41,9 @@ src_compile() { ) linux-mod-r1_src_compile + + emake CC="$(tc-getCC)" -C utils + if use examples; then emake CC="$(tc-getCC)" -C examples fi |