# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem              1.0
PortGroup               cmake  1.1
PortGroup               github 1.0

github.setup            MmgTools mmg 5.8.0 v
revision                0
categories              science math
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license                 LGPL-3+
homepage                https://www.mmgtools.org

description             An open source software for simplicial remeshing

long_description        ${name} is an open source software for bidimensional \
                        and tridimensional surface and volume remeshing.

checksums               rmd160  cb7f8c5d55fe9c386b05c5da36739089ab0512df \
                        sha256  686eaab84de79c072f3aedf26cd11ced44c84b435d51ce34e016ad203172922f \
                        size    9675000
github.tarball_from     archive

depends_lib-append      port:scotch \
                        port:zlib

# The compiler feature "cxx_std_11" is not known to CXX compiler
compiler.cxx_standard   2011

configure.args-append   -DBUILD_SHARED_LIBS=YES

# Elas project cannot be found
# https://github.com/SUscTools/Elas
configure.args-append   -DUSE_ELAS=NO \
                        -DUSE_VTK=NO

variant vtk description "Enable VTK support" {
    depends_lib-append  port:vtk

    configure.args-replace \
                        -DUSE_VTK=NO -DUSE_VTK=YES
}
