From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 82EED138BED for ; Sat, 24 Oct 2015 11:33:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCCA7E07F2; Sat, 24 Oct 2015 11:32:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 50013E07F2 for ; Sat, 24 Oct 2015 11:32:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E186340B3F for ; Sat, 24 Oct 2015 11:32:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AEDCB1779 for ; Sat, 24 Oct 2015 11:32:52 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1445686350.78cc1323c1b1885b04bfb451a0416a6c1a048c05.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/nvenc/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/nvenc/Manifest media-video/nvenc/metadata.xml media-video/nvenc/nvenc-5.0.1.ebuild X-VCS-Directories: media-video/nvenc/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 78cc1323c1b1885b04bfb451a0416a6c1a048c05 X-VCS-Branch: master Date: Sat, 24 Oct 2015 11:32:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9b41dd00-2f17-4bbf-9d1d-dfc31a58901c X-Archives-Hash: 13fd2ce8a2d858da2d2fc65fc038cd34 commit: 78cc1323c1b1885b04bfb451a0416a6c1a048c05 Author: Alexis Ballier gentoo org> AuthorDate: Sat Oct 24 11:30:24 2015 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Sat Oct 24 11:32:30 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78cc1323 media-video/nvenc: Initial import. Ebuild by me. Package-Manager: portage-2.2.23 media-video/nvenc/Manifest | 1 + media-video/nvenc/metadata.xml | 12 ++++++++ media-video/nvenc/nvenc-5.0.1.ebuild | 57 ++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/media-video/nvenc/Manifest b/media-video/nvenc/Manifest new file mode 100644 index 0000000..51661d5 --- /dev/null +++ b/media-video/nvenc/Manifest @@ -0,0 +1 @@ +DIST nvenc_5.0.1_sdk.zip 96524757 SHA256 0e9c575b4cf94bda3ae22cfaa4ce9eb931e566cc2046c3db63b92cbda5edf22d SHA512 ba6b61a2dad97c206ac0f7f72395b0ca0fc52ee2b82b0e662cb3dcf983af8c3b43f7d369d77e7c974fa310346d73620332fa3d1251e7aa503da66f2ba5654417 WHIRLPOOL ce012b578942d8494923b3189e34c34bd3e2ec54543aed3b6d5978729c7c892061268a5dfff47222e64d0ba9c806dd2b04033a98f20dbc89814012ab9d6366d8 diff --git a/media-video/nvenc/metadata.xml b/media-video/nvenc/metadata.xml new file mode 100644 index 0000000..4e01343 --- /dev/null +++ b/media-video/nvenc/metadata.xml @@ -0,0 +1,12 @@ + + + + video + + media-video@gentoo.org + + + Build and install example tools. + Install video samples to use with the tools. + + diff --git a/media-video/nvenc/nvenc-5.0.1.ebuild b/media-video/nvenc/nvenc-5.0.1.ebuild new file mode 100644 index 0000000..22d16cb --- /dev/null +++ b/media-video/nvenc/nvenc-5.0.1.ebuild @@ -0,0 +1,57 @@ +# 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}_sdk" + +DESCRIPTION="NVIDIA Encoder (NVENC) API" +HOMEPAGE="https://developer.nvidia.com/nvidia-video-codec-sdk" +SRC_URI="http://developer.download.nvidia.com/compute/nvenc/v$(get_version_component_range "1-2")/${MY_P}.zip" + +LICENSE="NVIDIA-CODEC-SDK" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+tools samples" + +RDEPEND=">=dev-util/nvidia-cuda-toolkit-6.5" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}/${MY_P}" + +TOOLS="NvEncoder NvEncoderPerf NvTranscoder" + +src_compile() { + if use tools ; then + export CUDA_PATH=/opt/cuda + 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 + fi + + dodoc doc/*.pdf + + if use samples ; then + dodoc Samples/NVENC_Samples_Guide.pdf + insinto /usr/share/${PN} + doins -r Samples/YUV + fi + + insinto /usr/include + doins Samples/common/inc/nv*.h +}