# -*- 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

name                    mmg3d4
revision                4
version                 4.0.2
categories              science math
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license                 GPL-3+
homepage                https://www.mmgtools.org

description             An open source software for simplicial remeshing (compatibility version)

long_description        mmg is an open source software for bidimensional and tridimensional surface and volume remeshing (compatibility version).

master_sites            https://gforge.inria.fr/frs/download.php/file/34531/${name}
distname                ${name}-${version}-Source

checksums               rmd160  1734928f83e427712527005afd6d556b7cc62cf9 \
                        sha256  5067cab6fa5b7478ccfd50f7ae1a00a356d66c8cbc014c20b89ad54857c227dd \
                        size    167168

# The source forces 10.4 target with x86_64 arch.
patchfiles-append       patch-fix-arch.diff

depends_lib-append      port:scotch

configure.args-append   -DLIBMMG3D4_SHARED=ON

# this port is only used for compatibility
livecheck.type          none
