You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit versionator toolchain-funcs
|
||
|
|
||
9 years ago
|
MY_P="${PN}_${PV}"
|
||
9 years ago
|
|
||
9 years ago
|
DESCRIPTION="NVIDIA Video Codec SDK"
|
||
9 years ago
|
HOMEPAGE="https://developer.nvidia.com/nvidia-video-codec-sdk"
|
||
9 years ago
|
SRC_URI="https://developer.nvidia.com/video-sdk-$(replace_all_version_separators '') -> ${MY_P}.zip"
|
||
9 years ago
|
|
||
9 years ago
|
LICENSE="MIT tools? ( NVIDIA-CODEC-SDK )"
|
||
9 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
9 years ago
|
IUSE="tools"
|
||
9 years ago
|
|
||
9 years ago
|
RDEPEND="
|
||
|
!media-video/nvenc
|
||
|
>=x11-drivers/nvidia-drivers-347.09"
|
||
9 years ago
|
DEPEND="${RDEPEND}
|
||
|
app-arch/unzip"
|
||
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
9 years ago
|
TOOLS="NvEncoder NvEncoderPerf NvTranscoder NvEncoderLowLatency"
|
||
9 years ago
|
|
||
|
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
|
||
9 years ago
|
dodoc "${S}/Samples/NVIDIA_Video_Codec_SDK_Samples_Guide.pdf"
|
||
9 years ago
|
fi
|
||
|
|
||
9 years ago
|
dodoc doc/*.pdf ReadMe.txt Release_notes.txt
|
||
9 years ago
|
|
||
|
insinto /usr/include
|
||
9 years ago
|
doins Samples/common/inc/nvEncodeAPI.h
|
||
9 years ago
|
}
|