blob: 960e5d0e5311ec907fff92480acbe8181027433b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit linux-mod vcs-snapshot
DESCRIPTION="v4l2 loopback device which output is it's own input"
HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
SRC_URI="https://github.com/umlaeute/v4l2loopback/tarball/v${PV} -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
CONFIG_CHECK="VIDEO_DEV"
MODULE_NAMES="v4l2loopback(video:)"
BUILD_TARGETS="all"
DEPEND=""
RDEPEND="${DEPEND}"
src_compile() {
linux-mod_src_compile
if use examples; then
cd "${S}"/examples
emake
fi
}
src_install() {
linux-mod_src_install
dosbin utils/v4l2loopback-ctl
dodoc doc/kernel_debugging.txt
dohtml doc/v4l2.html
if use examples; then
dosbin examples/yuv4mpeg_to_v4l2
docinto examples
dodoc examples/{*.sh,*.c,Makefile}
fi
}
|