aboutsummaryrefslogtreecommitdiff
blob: 0801fc33e0219860a550264d3dc61bc2b4356ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake-utils cuda

DESCRIPTION="NVIDIA Ray Tracing Engine"
HOMEPAGE="https://developer.nvidia.com/optix"
SRC_URI="NVIDIA-OptiX-SDK-${PV}-linux64-25650775.sh"

SLOT="0/6"
KEYWORDS="~amd64"
RESTRICT="fetch"
LICENSE="NVIDIA-r2"

RDEPEND="dev-util/nvidia-cuda-toolkit
	virtual/opengl
	media-libs/freeglut"
DEPEND="${RDEPEND}"

S="${WORKDIR}"

CMAKE_USE_DIR=${S}/SDK

src_unpack() {
	tail -n +218 "${DISTDIR}"/${A} | tar -zx || die
}

src_prepare() {
	cmake-utils_src_prepare
	rm -rf SDK-precompiled-samples
	export PATH=$(cuda_gccdir):${PATH}
}

src_install() {
	insinto /opt/${PN}
	doins -r doc include lib64
}