# -*- 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               github 1.0
PortGroup               cmake 1.1
PortGroup               boost 1.0

github.setup            iqtree iqtree2 2.1.3 v
github.tarball_from     archive
revision                1

categories              science
platforms               darwin
license                 GPL-2
maintainers             {reneeotten @reneeotten} openmaintainer

description             Efficient phylogenomic software by maximum likelihood
long_description        The IQ-TREE software was created as the successor of IQPNNI and \
                        TREE-PUZZLE (thus the name IQ-TREE). IQ-TREE was motivated by the \
                        rapid accumulation of phylogenomic data, leading to a need for \
                        efficient phylogenomic software that can handle a large amount of \
                        data and provide more complex models of sequence evolution. To this \
                        end, IQ-TREE can utilize multicore computers and distributed parallel \
                        computing to speed up the analysis. IQ-TREE automatically performs \
                        checkpointing to resume an interrupted analysis.

homepage                http://www.iqtree.org/

checksums               rmd160  f430a8a41380ab97741aaa9a24af1ac91e1b23d5 \
                        sha256  d34d16df5eb4d7368ecbfa14d2dd64845b71fd361583db2cd09f8fac72882278 \
                        size    5301281

patchfiles-append       patch-CMakeLists.txt.diff

configure.args-append   -DIQTREE_FLAGS=omp

boost.depends_type      build

depends_build-append    path:share/pkgconfig/eigen3.pc:eigen3 \
                        port:libomp \
                        port:zlib

compiler.cxx_standard   2011
compiler.cpath-append   ${prefix}/include/libomp

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    foreach file {example.nex example.cf models.nex example.phy} {
        move ${destroot}${prefix}/${file} ${destroot}${prefix}/share/doc/${name}
    }
}

github.livecheck.regex  {([0-9.]+)}
