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

github.setup        nh13 BFAST 0.7.0a bfast.
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
checksums           rmd160  95daa3e29c7c7d8156bd743a28f3bccfd9dc94f6 \
                    sha256  ed8de49693165a87d5dbef352207c424b1bf6f670a83acf49a4f4f188444995e \
                    size    2456617

name                bfast
categories          science
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-3

description         a tool for fast and accurate sequence alignment

long_description    BFAST facilitates the fast and accurate mapping of \
                    short reads to reference sequences, where mapping \
                    billions of short reads with variants is of utmost \
                    importance.

set vnumonly        [lindex [regexp -inline -- {[0-9.]+} ${version}] 0]
master_sites        sourceforge:project/${name}/${name}/${vnumonly}
distname            ${name}-${version}

depends_lib         port:bzip2 \
                    port:zlib

patchfiles          CFLAGS.patch

post-patch {
    reinplace "s|@CFLAGS@|${configure.cflags} [get_canonical_archflags cc]|g" ${worksrcpath}/configure
}

# https://github.com/nh13/BFAST/issues/2
compiler.c_standard 1989
configure.cflags-append \
                    -std=gnu89

# This software is no longer maintained.
# https://github.com/nh13/BFAST/issues/4
livecheck.type      none
