Compare commits

...

4 Commits

Author SHA1 Message Date
Wouter Deconinck
c034e1ba9f meshlab: allow downloads of vendored components 2024-06-28 11:01:09 -05:00
Wouter Deconinck
84b6266190 meshlab: put in builtin repo 2024-04-08 14:41:37 -05:00
Wouter Deconinck
94a42d786f meshlab: disable two failing plugins 2024-04-08 14:29:31 -05:00
Wouter Deconinck
0e71ea51ce meshlab: new package 2024-04-08 14:29:31 -05:00

View 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