diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-01-24 14:43:34 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-01-24 14:47:29 +0100 |
commit | 50fdd8ac7325a03d90c9e0fc8c019dc3e269144e (patch) | |
tree | 94acb6ee146943587ec932c4daf49fc76b14801a /media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1.ebuild | |
parent | net-misc/icecast: Bump to version 2.4.3 (diff) | |
download | gentoo-50fdd8ac7325a03d90c9e0fc8c019dc3e269144e.tar.gz gentoo-50fdd8ac7325a03d90c9e0fc8c019dc3e269144e.tar.bz2 gentoo-50fdd8ac7325a03d90c9e0fc8c019dc3e269144e.zip |
media-video/nvidia_video_sdk: Add version 6.0.1, renamed from nvenc to nvidia_video_sdk since NVIDIA changed the branding.
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1.ebuild')
-rw-r--r-- | media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1.ebuild b/media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1.ebuild new file mode 100644 index 000000000000..4223dc49d73c --- /dev/null +++ b/media-video/nvidia_video_sdk/nvidia_video_sdk-6.0.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" +IUSE="tools" + +RDEPEND=" + !media-video/nvenc + >=x11-drivers/nvidia-drivers-347.09" +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 +} |