You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
60 lines
1.1 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
11 years ago
|
|
||
6 years ago
|
inherit linux-mod toolchain-funcs
|
||
7 years ago
|
|
||
|
case ${PV} in
|
||
|
9999)
|
||
|
inherit git-r3
|
||
|
KEYWORDS=""
|
||
|
EGIT_REPO_URI="git://github.com/umlaeute/v4l2loopback.git"
|
||
|
;;
|
||
|
*)
|
||
|
inherit vcs-snapshot
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
SRC_URI="https://github.com/umlaeute/v4l2loopback/tarball/v${PV} -> ${P}.tar.gz"
|
||
|
;;
|
||
|
esac
|
||
11 years ago
|
|
||
|
DESCRIPTION="v4l2 loopback device which output is it's own input"
|
||
|
HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
IUSE="examples"
|
||
|
|
||
|
CONFIG_CHECK="VIDEO_DEV"
|
||
|
MODULE_NAMES="v4l2loopback(video:)"
|
||
|
BUILD_TARGETS="all"
|
||
|
|
||
7 years ago
|
pkg_setup() {
|
||
|
linux-mod_pkg_setup
|
||
|
export KERNELRELEASE=${KV_FULL}
|
||
|
}
|
||
|
|
||
6 years ago
|
src_prepare() {
|
||
|
default
|
||
|
sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
|
||
|
}
|
||
|
|
||
11 years ago
|
src_compile() {
|
||
|
linux-mod_src_compile
|
||
|
if use examples; then
|
||
6 years ago
|
emake CC=$(tc-getCC) -C examples
|
||
11 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
linux-mod_src_install
|
||
|
dosbin utils/v4l2loopback-ctl
|
||
|
dodoc doc/kernel_debugging.txt
|
||
7 years ago
|
dodoc doc/docs.txt
|
||
11 years ago
|
if use examples; then
|
||
|
dosbin examples/yuv4mpeg_to_v4l2
|
||
|
docinto examples
|
||
|
dodoc examples/{*.sh,*.c,Makefile}
|
||
|
fi
|
||
|
}
|