# -*- 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.7.2 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  e56f2dd863f215e3f3e7921cd9be4cc9fde62c6b \
                        sha256  4c396dd44aec69e0a171a04f857e28aad2e0bbfb733b48b6d81a2c6868e86840 \
                        size    9645411
github.tarball_from     archive

depends_lib-append      port:scotch \
                        port:zlib

# https://github.com/MmgTools/mmg/pull/240
patchfiles-append       0001-libmmg3d_private.h-include-inttypes.h-for-PRId.patch

configure.args-append   -DBUILD_SHARED_LIBS=YES

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