media-video/v4l2loopback - 9999 (natinst)

Search

Install

Install this version:

emerge -a =media-video/v4l2loopback-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-video/v4l2loopback-9999

Or alternatively:

emerge --autounmask-write -a =media-video/v4l2loopback-9999

Package Information

Description:
v4l2 loopback device whose output is its own input
Homepage:
https://github.com/umlaeute/v4l2loopback
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dkms toolchain-funcs

case ${PV} in
9999)
	inherit git-r3
	EGIT_REPO_URI="https://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 whose output is its own input"
HOMEPAGE="https://github.com/umlaeute/v4l2loopback"

LICENSE="GPL-2"
SLOT="0"
IUSE="examples"

CONFIG_CHECK="VIDEO_DEV"

pkg_setup() {
	dkms_pkg_setup
	export KERNELRELEASE=${KV_FULL}
}

src_prepare() {
	default
	sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
}

src_compile() {
	local modlist=(
		v4l2loopback=video:::v4l2loopback
	)

	emake utils
	dkms_src_compile
	if use examples; then
		emake CC="$(tc-getCC)" -C examples
	fi
}

src_install() {
	dkms_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
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-video/v4l2loopback | euse -E <flag> -p media-video/v4l2loopback | euse -D <flag> -p media-video/v4l2loopback

Global/Standard Flags

Inherited Eclasses