Install this version:
emerge -a =media-plugins/vapoursynth-bilateralgpu-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-plugins/vapoursynth-bilateralgpu-9999
Or alternatively:
emerge --autounmask-write -a =media-plugins/vapoursynth-bilateralgpu-9999
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake cuda
DESCRIPTION="Bilateral filter for VapourSynth based on the OpenCV-CUDA library"
HOMEPAGE="https://github.com/WolframRhodium/VapourSynth-BilateralGPU"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/WolframRhodium/VapourSynth-BilateralGPU.git"
KEYWORDS=""
else
inherit vcs-snapshot
SRC_URI="https://github.com/WolframRhodium/VapourSynth-BilateralGPU/archive/r${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
RDEPEND+="
media-libs/vapoursynth
dev-util/nvidia-cuda-toolkit
"
DEPEND="${RDEPEND}
"
src_prepare() {
default
cmake_src_prepare
cuda_add_sandbox
}
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_LIBDIR="$(get_libdir)/vapoursynth/"
-DVAPOURSYNTH_INCLUDE_DIRECTORY="$(pkg-config --cflags-only-I vapoursynth | sed 's/-I//')"
-DCMAKE_CUDA_FLAGS="--threads 0 --use_fast_math -Wno-deprecated-gpu-targets $(cuda_gccdir -f | tr -d \")"
)
cmake_src_configure
}
media-libs/vapoursynth dev-util/nvidia-cuda-toolkit
media-libs/vapoursynth dev-util/nvidia-cuda-toolkit