diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/opensubdiv')
-rw-r--r-- | var/spack/repos/builtin/packages/opensubdiv/package.py | 95 |
1 files changed, 48 insertions, 47 deletions
diff --git a/var/spack/repos/builtin/packages/opensubdiv/package.py b/var/spack/repos/builtin/packages/opensubdiv/package.py index d940d3115b..18f1c4f056 100644 --- a/var/spack/repos/builtin/packages/opensubdiv/package.py +++ b/var/spack/repos/builtin/packages/opensubdiv/package.py @@ -15,76 +15,77 @@ class Opensubdiv(CMakePackage, CudaPackage): with static topology at interactive framerates.""" homepage = "https://graphics.pixar.com/opensubdiv/docs/intro.html" - url = "https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_4_0.tar.gz" - git = "https://github.com/PixarAnimationStudios/OpenSubdiv" + url = "https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_4_0.tar.gz" + git = "https://github.com/PixarAnimationStudios/OpenSubdiv" - version('develop', branch='dev') - version('3.4.3', sha256='7b22eb27d636ab0c1e03722c7a5a5bd4f11664ee65c9b48f341a6d0ce7f36745') - version('3.4.0', sha256='d932b292f83371c7518960b2135c7a5b931efb43cdd8720e0b27268a698973e4') + version("develop", branch="dev") + version("3.4.3", sha256="7b22eb27d636ab0c1e03722c7a5a5bd4f11664ee65c9b48f341a6d0ce7f36745") + version("3.4.0", sha256="d932b292f83371c7518960b2135c7a5b931efb43cdd8720e0b27268a698973e4") def url_for_version(self, version): url = "https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v{0}.tar.gz" return url.format(version.underscored) - variant('tbb', default=False, description='Builds with Intel TBB support') - variant('openmp', default=False, description='Builds with OpenMP support') - variant('doc', default=False, description='Builds documentation. Requires Python 2') - - depends_on('cmake@2.8.6:', type='build') - depends_on('graphviz', type='build', when='+doc') - depends_on('doxygen', type='build', when='+doc') - depends_on('py-docutils', type='build', when='+doc') - depends_on('python@2.6:2', type='build', when='+doc') - depends_on('gl') - depends_on('glew@1.9.0:') - depends_on('glfw@3.0.0:') - depends_on('intel-tbb@4.0:', when='+tbb') - depends_on('libxrandr') - depends_on('libxcursor') - depends_on('libxinerama') - depends_on('llvm-openmp', when='+openmp') + variant("tbb", default=False, description="Builds with Intel TBB support") + variant("openmp", default=False, description="Builds with OpenMP support") + variant("doc", default=False, description="Builds documentation. Requires Python 2") + + depends_on("cmake@2.8.6:", type="build") + depends_on("graphviz", type="build", when="+doc") + depends_on("doxygen", type="build", when="+doc") + depends_on("py-docutils", type="build", when="+doc") + depends_on("python@2.6:2", type="build", when="+doc") + depends_on("gl") + depends_on("glew@1.9.0:") + depends_on("glfw@3.0.0:") + depends_on("intel-tbb@4.0:", when="+tbb") + depends_on("libxrandr") + depends_on("libxcursor") + depends_on("libxinerama") + depends_on("llvm-openmp", when="+openmp") def cmake_args(self): spec = self.spec args = [] - args.append('-DNO_EXAMPLES=1') # disable examples build - args.append('-DNO_TUTORIALS=1') # disable tutorials build - args.append('-DNO_REGRESSION=1') # disable regression tests build - args.append('-DNO_PTEX=1') # disable PTex support - args.append('-DNO_OPENCL=1') # disable OpenCL - args.append('-DNO_CLEW=1') # disable CLEW wrapper library - args.append('-DNO_METAL=1') # disable Metal + args.append("-DNO_EXAMPLES=1") # disable examples build + args.append("-DNO_TUTORIALS=1") # disable tutorials build + args.append("-DNO_REGRESSION=1") # disable regression tests build + args.append("-DNO_PTEX=1") # disable PTex support + args.append("-DNO_OPENCL=1") # disable OpenCL + args.append("-DNO_CLEW=1") # disable CLEW wrapper library + args.append("-DNO_METAL=1") # disable Metal - args.append('-DNO_OPENGL=0') # OpenGL always on - args.append('-DGLEW_LOCATION={0}'.format(spec['glew'].prefix)) + args.append("-DNO_OPENGL=0") # OpenGL always on + args.append("-DGLEW_LOCATION={0}".format(spec["glew"].prefix)) - if '+cuda' in spec: - args.append('-DNO_CUDA=0') + if "+cuda" in spec: + args.append("-DNO_CUDA=0") - cuda_arch = [x for x in spec.variants['cuda_arch'].value if x] + cuda_arch = [x for x in spec.variants["cuda_arch"].value if x] if cuda_arch: - args.append('-DOSD_CUDA_NVCC_FLAGS={0}'.format( - ' '.join(self.cuda_flags(cuda_arch)))) + args.append( + "-DOSD_CUDA_NVCC_FLAGS={0}".format(" ".join(self.cuda_flags(cuda_arch))) + ) else: - args.append('-DOSD_CUDA_NVCC_FLAGS=') + args.append("-DOSD_CUDA_NVCC_FLAGS=") else: - args.append('-DNO_CUDA=1') + args.append("-DNO_CUDA=1") - if '+tbb' in spec: - args.append('-DNO_TBB=0') + if "+tbb" in spec: + args.append("-DNO_TBB=0") else: - args.append('-DNO_TBB=1') + args.append("-DNO_TBB=1") - if '+doc' in spec: - args.append('-DNO_DOC=0') + if "+doc" in spec: + args.append("-DNO_DOC=0") else: - args.append('-DNO_DOC=1') + args.append("-DNO_DOC=1") - if '+openmp' in spec: - args.append('-DNO_OMP=0') + if "+openmp" in spec: + args.append("-DNO_OMP=0") else: - args.append('-DNO_OMP=1') + args.append("-DNO_OMP=1") return args |