diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2020-08-07 13:39:56 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2020-08-08 15:18:11 +0300 |
commit | 9604a91597955a60929a6d8e32f81d0944cfaf0f (patch) | |
tree | 171bca8b7161e2b44fe8fe9caefcdf082624738c /media-video/v4l2loopback/v4l2loopback-0.12.5-r1.ebuild | |
parent | media-tv/v4l-dvb-saa716x: migrate to sys-apps/kmod (diff) | |
download | gentoo-9604a91597955a60929a6d8e32f81d0944cfaf0f.tar.gz gentoo-9604a91597955a60929a6d8e32f81d0944cfaf0f.tar.bz2 gentoo-9604a91597955a60929a6d8e32f81d0944cfaf0f.zip |
media-video/v4l2loopback: migrate to sys-apps/kmod
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'media-video/v4l2loopback/v4l2loopback-0.12.5-r1.ebuild')
-rw-r--r-- | media-video/v4l2loopback/v4l2loopback-0.12.5-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/media-video/v4l2loopback/v4l2loopback-0.12.5-r1.ebuild b/media-video/v4l2loopback/v4l2loopback-0.12.5-r1.ebuild new file mode 100644 index 000000000000..0edcdeb2cd1c --- /dev/null +++ b/media-video/v4l2loopback/v4l2loopback-0.12.5-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-mod toolchain-funcs + +case ${PV} in +9999) + inherit git-r3 + KEYWORDS="" + EGIT_REPO_URI="https://github.com/umlaeute/v4l2loopback.git" + ;; +*) + inherit vcs-snapshot + 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 +} |