diff options
author | Sven Eden <yamakuzure@gmx.net> | 2020-04-27 11:46:21 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2020-04-27 11:46:21 +0200 |
commit | 210b3f956bcdfffa2f75b806fb629b174097ff82 (patch) | |
tree | 4f45eae18a967963527d67c0740ad04968edc7ee /media-video | |
parent | app-office/zoom: Bump (diff) | |
download | seden-210b3f956bcdfffa2f75b806fb629b174097ff82.tar.gz seden-210b3f956bcdfffa2f75b806fb629b174097ff82.tar.bz2 seden-210b3f956bcdfffa2f75b806fb629b174097ff82.zip |
media-video/v4l2loopback: Bump to 0.12.5 plus (pseudo) kernel 5.6 fix
Signed-off-by: Sven Eden <yamakuzure@gmx.net>
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/v4l2loopback/Manifest | 1 | ||||
-rw-r--r-- | media-video/v4l2loopback/files/v4l2loopback-0.12.5-fix_kernel_5.6.patch | 20 | ||||
-rw-r--r-- | media-video/v4l2loopback/metadata.xml | 14 | ||||
-rw-r--r-- | media-video/v4l2loopback/v4l2loopback-0.12.5.ebuild | 64 |
4 files changed, 99 insertions, 0 deletions
diff --git a/media-video/v4l2loopback/Manifest b/media-video/v4l2loopback/Manifest new file mode 100644 index 0000000..c81c94d --- /dev/null +++ b/media-video/v4l2loopback/Manifest @@ -0,0 +1 @@ +DIST v4l2loopback-0.12.5.tar.gz 49060 BLAKE2B 6caa3d8fed14beea599d05a18ea0cbcc2e1522fb32dcf80b35d1de057a8a2ea4239da2f123acf9969f571d32e6696fa8d12b81c877ca5b1aa31d84b6ab5c27da SHA512 0d2af7fa86d0730d227f067dc53c281817eea327f707fea2b60386afde39ff094dd8197f39fb140685e4e3024f0730f3e5185dea3da5224195e4cb50faa846b6 diff --git a/media-video/v4l2loopback/files/v4l2loopback-0.12.5-fix_kernel_5.6.patch b/media-video/v4l2loopback/files/v4l2loopback-0.12.5-fix_kernel_5.6.patch new file mode 100644 index 0000000..5f81467 --- /dev/null +++ b/media-video/v4l2loopback/files/v4l2loopback-0.12.5-fix_kernel_5.6.patch @@ -0,0 +1,20 @@ +--- a/v4l2loopback.c 2020-04-27 11:12:31.550824848 +0200 ++++ b/v4l2loopback.c 2020-04-27 11:31:25.550780536 +0200 +@@ -16,7 +16,16 @@ + #include <linux/version.h> + #include <linux/vmalloc.h> + #include <linux/mm.h> +-#include <linux/time.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) ++# include <uapi/linux/time.h> ++# include <uapi/linux/module.h> ++# include <uapi/linux/videodev2.h> ++# include <uapi/linux/v4l2-common.h> ++# define timeval __kernel_v4l2_timeval ++ typedef __kernel_old_time_t time_t; ++#else ++# include <linux/time.h> ++#endif + #include <linux/module.h> + #include <linux/videodev2.h> + #include <linux/sched.h> diff --git a/media-video/v4l2loopback/metadata.xml b/media-video/v4l2loopback/metadata.xml new file mode 100644 index 0000000..04c233e --- /dev/null +++ b/media-video/v4l2loopback/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>naota@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>grknight@gentoo.org</email> + <name>Brian Evans</name> + </maintainer> + <upstream> + <remote-id type="github">umlaeute/v4l2loopback</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-video/v4l2loopback/v4l2loopback-0.12.5.ebuild b/media-video/v4l2loopback/v4l2loopback-0.12.5.ebuild new file mode 100644 index 0000000..748600c --- /dev/null +++ b/media-video/v4l2loopback/v4l2loopback-0.12.5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-mod toolchain-funcs + +case ${PV} in +9999) + inherit git-r3 + KEYWORDS="" + EGIT_REPO_URI="git://github.com/umlaeute/v4l2loopback.git" + ;; +*) + inherit vcs-snapshot + KEYWORDS="~amd64 ~x86" + SNAPSHOT_COMMIT="0b8feb80fdef9a415d8250bca1790b3ff23e8391" + SRC_URI="https://github.com/umlaeute/v4l2loopback/archive/${SNAPSHOT_COMMIT}.tar.gz -> ${P}.tar.gz" + ;; +esac + +DESCRIPTION="v4l2 loopback device which output is it's own input" +HOMEPAGE="https://github.com/umlaeute/v4l2loopback" + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples" + +PATCHES=( + "${FILESDIR}"/${P}-fix_kernel_5.6.patch +) + +CONFIG_CHECK="VIDEO_DEV" +MODULE_NAMES="v4l2loopback(video:)" +BUILD_TARGETS="all" + +pkg_setup() { + linux-mod_pkg_setup + export KERNELRELEASE=${KV_FULL} +} + +src_prepare() { + default + sed -i -e 's/gcc /$(CC) /' examples/Makefile || die +} + +src_compile() { + linux-mod_src_compile + if use examples; then + emake CC=$(tc-getCC) -C examples + fi +} + +src_install() { + linux-mod_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 +} |