# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 CMAKE_MAKEFILE_GENERATOR=emake inherit cmake toolchain-funcs MY_PV="$(ver_rs "1-3" '_')" DESCRIPTION="An Open-Source subdivision surface library" HOMEPAGE="https://graphics.pixar.com/opensubdiv/docs/intro.html" SRC_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/OpenSubdiv-${MY_PV}" # Modfied Apache-2.0 license, where section 6 has been replaced. # See for example CMakeLists.txt for details. LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~x86" IUSE="cuda examples opencl openmp ptex tbb test tutorials" RESTRICT="!test? ( test )" RDEPEND=" media-libs/glew:= media-libs/glfw:= x11-libs/libXinerama cuda? ( dev-util/nvidia-cuda-toolkit:* ) opencl? ( virtual/opencl ) ptex? ( media-libs/ptex ) " DEPEND=" ${RDEPEND} tbb? (