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

github.setup        rcedgar muscle 5.3 v
github.tarball_from archive
revision            0

categories          science
license             GPL-3
maintainers         {reneeotten @reneeotten} openmaintainer

description         A program for multiple sequence alignment with high accuracy and high throughput
long_description    ${description}

homepage            https://drive5.com/muscle5

checksums           rmd160  db64aa0053a8650e289908bfc7cb0ed5a61ce7f2 \
                    sha256  74b22a94e630b16015c2bd9ae83aa2be2c2048d3e41f560b2d4a954725c81968 \
                    size    28692261

compiler.openmp_version 2.5

patchfiles          patch-Makefile.diff \
                    patch-gitver.txt.diff

post-patch {
    reinplace "s|@@VERSION@@|\"${version}\"|g" ${worksrcpath}/src/gitver.txt
}

variant native description {Build with best native support for local CPU capabilities} {
    configure.cppflags-append -mtune=native
    configure.optflags-replace -Os -O3
}

build.dir           ${worksrcpath}/src
build.target

destroot {
    xinstall -m 0755 -W ${worksrcpath}/bin muscle ${destroot}${prefix}/bin
}
