1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit linux-mod toolchain-funcs
12 EGIT_REPO_URI="https://github.com/umlaeute/v4l2loopback.git"
15 # inherit vcs-snapshot
16 KEYWORDS="~amd64 ~x86"
17 SRC_URI="https://github.com/umlaeute/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
21 DESCRIPTION="v4l2 loopback device which output is it's own input"
22 HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
28 CONFIG_CHECK="VIDEO_DEV"
29 MODULE_NAMES="v4l2loopback(video:)"
34 export KERNELRELEASE=${KV_FULL}
39 sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
45 emake CC=$(tc-getCC) -C examples
51 dosbin utils/v4l2loopback-ctl
52 dodoc doc/kernel_debugging.txt
55 dosbin examples/yuv4mpeg_to_v4l2
57 dodoc examples/{*.sh,*.c,Makefile}