diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 18:09:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-01 18:09:41 +0000 |
commit | 1cb9751b08317bdd27f9df5b026299f056cec8d0 (patch) | |
tree | 52631db9ed9fc2db374f5ce2dd6f349adb515ef3 | |
parent | 701aeb4849eae35a65590cd8c04b83ba171f11a7 (diff) |
media-video/nvidia_video_sdk : import from gentoo, drop dependency on nvidia-drivers
-rw-r--r-- | media-video/nvidia_video_sdk/Manifest | 1 | ||||
-rw-r--r-- | media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1-r10.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/media-video/nvidia_video_sdk/Manifest b/media-video/nvidia_video_sdk/Manifest new file mode 100644 index 00000000..cd7a24c8 --- /dev/null +++ b/media-video/nvidia_video_sdk/Manifest @@ -0,0 +1 @@ +DIST nvidia_video_sdk_6.0.1.zip 21310785 BLAKE2B 4563e919c268c7ba6f1686946f5a3e687f87312cd647ee52e8f57c8d5d356c40259b99b2aa427df9c7110bee9741c4c79c373b721643a3efa1568086e6681b3d SHA512 1ab398010f5018482170bf722d84278b1920f003119143911fbb0a811e6f1237a039b4120011cc141728f3fd3d7667295ce8703717eafad82b4675bb3211df87 diff --git a/media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1-r10.ebuild b/media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1-r10.ebuild new file mode 100644 index 00000000..be466819 --- /dev/null +++ b/media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1-r10.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit versionator toolchain-funcs + +MY_P="${PN}_${PV}" + +DESCRIPTION="NVIDIA Video Codec SDK" +HOMEPAGE="https://developer.nvidia.com/nvidia-video-codec-sdk" +SRC_URI="https://developer.nvidia.com/video-sdk-$(replace_all_version_separators '') -> ${MY_P}.zip" + +LICENSE="MIT tools? ( NVIDIA-CODEC-SDK )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="tools" + +RDEPEND=" + !media-video/nvenc" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}/${MY_P}" + +TOOLS="NvEncoder NvEncoderPerf NvTranscoder NvEncoderLowLatency" + +src_compile() { + if use tools ; then + export EXTRA_LDFLAGS="${LDFLAGS}" + for i in ${TOOLS} ; do + pushd "${S}/Samples/${i}" || die + emake GCC="$(tc-getCXX)" CCFLAGS="${CXXFLAGS}" + popd + done + fi +} + +src_install() { + if use tools ; then + for i in ${TOOLS}; do + dobin "${S}/Samples/${i}/${i}" + done + dodoc "${S}/Samples/NVIDIA_Video_Codec_SDK_Samples_Guide.pdf" + fi + + dodoc doc/*.pdf ReadMe.txt Release_notes.txt + + insinto /usr/include + doins Samples/common/inc/nvEncodeAPI.h +} |