diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2022-02-17 18:18:56 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-20 21:04:35 +0000 |
commit | 45f4b43e19eaa79839a78f33e799ab100cbd29f9 (patch) | |
tree | e452e6632810f3fc2d12b7c7ad93e03fac263538 /media-gfx/openvdb | |
parent | media-gfx/blender: Fix live ebuild (diff) | |
download | gentoo-45f4b43e19eaa79839a78f33e799ab100cbd29f9.tar.gz gentoo-45f4b43e19eaa79839a78f33e799ab100cbd29f9.tar.bz2 gentoo-45f4b43e19eaa79839a78f33e799ab100cbd29f9.zip |
media-gfx/openvdb: Add nanovdb useflag
OpenVDB now includes the header only library NanoVDB in its source tree.
Add support for installing the additional headers via a useflag.
Signed-off-by: Sebastian Parborg <darkdefende@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/openvdb')
-rw-r--r-- | media-gfx/openvdb/metadata.xml | 3 | ||||
-rw-r--r-- | media-gfx/openvdb/openvdb-9.0.0-r2.ebuild | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/media-gfx/openvdb/metadata.xml b/media-gfx/openvdb/metadata.xml index a4302c6004d8..ac6d484a46d8 100644 --- a/media-gfx/openvdb/metadata.xml +++ b/media-gfx/openvdb/metadata.xml @@ -18,6 +18,9 @@ <flag name="blosc"> Allow using blosc compression via <pkg>dev-libs/c-blosc</pkg> </flag> + <flag name="nanovdb"> + A lightweight, header only, and GPU friendly version of VDB. + </flag> <flag restrict=">=media-gfx/openvdb-7.0.0" name="numpy"> Build pyopenvdb with support for <pkg>dev-python/numpy</pkg> </flag> diff --git a/media-gfx/openvdb/openvdb-9.0.0-r2.ebuild b/media-gfx/openvdb/openvdb-9.0.0-r2.ebuild index e1cc1a9a6192..d50e1f5bab74 100644 --- a/media-gfx/openvdb/openvdb-9.0.0-r2.ebuild +++ b/media-gfx/openvdb/openvdb-9.0.0-r2.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.g LICENSE="MPL-2.0" SLOT="0/9" KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" -IUSE="cpu_flags_x86_avx cpu_flags_x86_sse4_2 +blosc doc numpy python static-libs test utils zlib abi6-compat abi7-compat +abi8-compat" +IUSE="cpu_flags_x86_avx cpu_flags_x86_sse4_2 +blosc doc +nanovdb numpy python static-libs test utils zlib abi6-compat abi7-compat +abi8-compat" RESTRICT="!test? ( test )" REQUIRED_USE=" @@ -87,8 +87,6 @@ src_configure() { die "OpenVDB ABI version is not compatible" fi - # TODO: add NanoVDB? - # https://academysoftwarefoundation.github.io/openvdb/NanoVDB_HowToBuild.html local mycmakeargs=( -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/" -DOPENVDB_ABI_VERSION_NUMBER="${version}" @@ -106,6 +104,7 @@ src_configure() { -DUSE_COLORED_OUTPUT=ON -DUSE_IMATH_HALF=ON -DUSE_LOG4CPLUS=ON + -DUSE_NANOVDB=$(usex nanovdb) ) if use python; then |