aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2019-12-01 11:53:50 +0800
committerBenda Xu <heroxbd@gentoo.org>2019-12-01 12:35:25 +0800
commitbe7eb1e085cbf56160a34f829d06e5bf9b82c9d2 (patch)
tree6fec789bb93926414a5fb4b2c582a1e7e457bc5a /dev-libs/optix
parentdev-util/plog: initial commit of 1.1.4_p20191110. (diff)
downloadsci-be7eb1e085cbf56160a34f829d06e5bf9b82c9d2.tar.gz
sci-be7eb1e085cbf56160a34f829d06e5bf9b82c9d2.tar.bz2
sci-be7eb1e085cbf56160a34f829d06e5bf9b82c9d2.zip
dev-libs/optix: initial commit of 6.0.0.
This is included as a dependency of sci-physics/opticks. Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-libs/optix')
-rw-r--r--dev-libs/optix/Manifest1
-rw-r--r--dev-libs/optix/metadata.xml7
-rw-r--r--dev-libs/optix/optix-6.0.0.ebuild39
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/optix/Manifest b/dev-libs/optix/Manifest
new file mode 100644
index 000000000..2ae783676
--- /dev/null
+++ b/dev-libs/optix/Manifest
@@ -0,0 +1 @@
+DIST NVIDIA-OptiX-SDK-6.0.0-linux64-25650775.sh 642319364 BLAKE2B 5dc6e23d606ca9f947aff046d20592729e562c66c475d47aa0cda8d3e7361cabbe102b5b0e125744d27e25321d4ac8486a55bc145c54c96c719de6e821744ba9 SHA512 33fbb312c47174a9ddb26bd4b1a1e5089b70eaebdecd80561c91c1926fba2fb8c94ec39b4c2dc8f0ccbb5e27bbd38ad8fb08df1d605ed1ec5b3fd34ecca908b7
diff --git a/dev-libs/optix/metadata.xml b/dev-libs/optix/metadata.xml
new file mode 100644
index 000000000..7203fb853
--- /dev/null
+++ b/dev-libs/optix/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>heroxbd@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-libs/optix/optix-6.0.0.ebuild b/dev-libs/optix/optix-6.0.0.ebuild
new file mode 100644
index 000000000..0801fc33e
--- /dev/null
+++ b/dev-libs/optix/optix-6.0.0.ebuild
@@ -0,0 +1,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
+}