Compare commits
4 Commits
packages/g
...
packages/m
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c034e1ba9f | ||
![]() |
84b6266190 | ||
![]() |
94a42d786f | ||
![]() |
0e71ea51ce |
44
var/spack/repos/builtin/packages/meshlab/package.py
Normal file
44
var/spack/repos/builtin/packages/meshlab/package.py
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
|
class Meshlab(CMakePackage):
|
||||||
|
"""The open source mesh processing system."""
|
||||||
|
|
||||||
|
homepage = "https://www.meshlab.net"
|
||||||
|
url = "https://github.com/cnr-isti-vclab/meshlab/archive/refs/tags/MeshLab-2023.12.tar.gz"
|
||||||
|
git = "https://github.com/cnr-isti-vclab/meshlab.git"
|
||||||
|
|
||||||
|
maintainers("wdconinc")
|
||||||
|
|
||||||
|
license("GPL-3.0", checked_by="wdconinc")
|
||||||
|
|
||||||
|
version("main", branch="main", submodules=True)
|
||||||
|
version("2023.12", commit="2dbd2f4b12df3b47d8777b2b4a43cabd9e425735", submodules=True)
|
||||||
|
|
||||||
|
variant("double_scalar", default=False, description="Type to use for scalars")
|
||||||
|
|
||||||
|
depends_on("eigen")
|
||||||
|
depends_on("glew")
|
||||||
|
depends_on("mpfr")
|
||||||
|
depends_on("qt@5.15: +opengl")
|
||||||
|
|
||||||
|
def cmake_args(self):
|
||||||
|
args = [
|
||||||
|
self.define_from_variant("MESHLAB_BUILD_WITH_DOUBLE_SCALAR", "double_scalar"),
|
||||||
|
# E57 and Nexus plugins fail on gcc-13 due to missing include cstdint,
|
||||||
|
# but patching is cumbersome since build process downloads their source.
|
||||||
|
# Ref: https://github.com/asmaloney/libE57Format/pull/176
|
||||||
|
self.define("MESHLAB_ALLOW_DOWNLOAD_SOURCE_LIBE57", False),
|
||||||
|
# Ref: https://github.com/cnr-isti-vclab/corto/pull/44
|
||||||
|
self.define("MESHLAB_ALLOW_DOWNLOAD_SOURCE_NEXUS", False),
|
||||||
|
]
|
||||||
|
|
||||||
|
for bundle in "LIBIGL", "LEVMAR", "LIB3DS", "EMBREE", "NEXUS", "QHULL", "STRUCTURE_SYNTH", "TINYGLTF", "MUPARSER", "BOOST", "OPENCTM", "U3D", "LIBE57", "CGAL", "XERCES":
|
||||||
|
args.append(self.define(f"MESHLAB_ALLOW_DOWNLOAD_SOURCE_{bundle}", False))
|
||||||
|
|
||||||
|
return args
|
Reference in New Issue
Block a user