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

name                mafft
version             7.526
revision            0

categories          science
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Multiple alignment program for amino acid or nucleotide sequences
long_description    {*}${description}

homepage            https://mafft.cbrc.jp/alignment/software/
master_sites        ${homepage}
distname            mafft-${version}-without-extensions-src

checksums           rmd160  ca7ae642a8aaa4861e7e12cad3c51088ddfbe6bc \
                    sha256  145ac64ef687a5f9b2176886ad395e46e912bee93834879c5da100fa2d215972 \
                    size    622425

extract.suffix      .tgz
extract.rename      yes

patchfiles-append   patch-Makefile.diff

# dp.h:13: error: thread-local storage not supported for this target
# mltaln.h:352: error: thread-local storage not supported for this target
compiler.thread_local_storage yes

build.dir           ${worksrcpath}/core

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} license README.md ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       ${homepage}/source.html
livecheck.regex     mafft-(\[0-9.\]+)-without-extensions-src${extract.suffix}
