Add latest media-video/v4l2loopback
This commit is contained in:
parent
1fc14df846
commit
3999790aa1
2
media-video/v4l2loopback/Manifest
Normal file
2
media-video/v4l2loopback/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST v4l2loopback-0.12.4.tar.gz 51306 BLAKE2B 4c39405401996ba1f08db550114459b0c22dcce71ad9f33ec9b28d443eca68d924acb5d912430c5c9f5307ccb73562979f48514c135646c8fd8a888e08558cf5 SHA512 5d5f031af80a88a4ce22cc7f78814fe7bcf206c9005900a0ffb42054946746be320b0b1ca0fc172d3165029981ecb411dcc2fc936668ca0a2d8de48ea383c34d
|
||||
EBUILD v4l2loopback-0.12.4.ebuild 1121 BLAKE2B f35335b43b1404d3bad9e91ae608f6eed54fd99cfabacdf91ecde95f16d1dc06b4d1e702925b262e9e503f29b366762ba63042aef2c02e3685aa53b746d612c3 SHA512 5614d01c3516ba0144a2a3a4e3a24693adfbb9715e5ff0c5daa074497ad8d72dca9579aa4060b84574522c9ead8c17ab71338aca9ac9c7460fc79809b58e8db9
|
58
media-video/v4l2loopback/v4l2loopback-0.12.4.ebuild
Normal file
58
media-video/v4l2loopback/v4l2loopback-0.12.4.ebuild
Normal file
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit linux-mod toolchain-funcs
|
||||
|
||||
case ${PV} in
|
||||
9999)
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
EGIT_REPO_URI="git://github.com/umlaeute/v4l2loopback.git"
|
||||
;;
|
||||
*)
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/umlaeute/${PN}/archive/v${PV}.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"
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user