1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit linux-mod toolchain-funcs
12 EGIT_REPO_URI="git://github.com/umlaeute/v4l2loopback.git"
16 KEYWORDS="~amd64 ~x86"
18 SRC_URI="https://github.com/umlaeute/v4l2loopback/archive/v${PV}.tar.gz -> ${P}.tar.gz"
22 DESCRIPTION="v4l2 loopback device which output is it's own input"
23 HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
29 CONFIG_CHECK="VIDEO_DEV"
30 MODULE_NAMES="v4l2loopback(video:)"
35 export KERNELRELEASE=${KV_FULL}
40 epatch "${FILESDIR}/use-v4l2-buffer-ptr-instead-timeval.patch"
41 sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
47 emake CC=$(tc-getCC) -C examples
53 dosbin utils/v4l2loopback-ctl
54 dodoc doc/kernel_debugging.txt
57 dosbin examples/yuv4mpeg_to_v4l2
59 dodoc examples/{*.sh,*.c,Makefile}