# -*- 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                seqan-apps
version             2.4.0
revision            2
categories          science
platforms           darwin
universal_variant   no

license             BSD LGPL-3 GPL-3
maintainers         fu-berlin.de:rene.rahn

description         Applications distributed with the SeqAn library

long_description    SeqAn applications for the analysis of large sets of sequences, e.g. \
                    read mapping, genome comparison, local alignment, data mining.

homepage            https://www.seqan.de/applications/

depends_lib-append  port:boost \
                    port:bzip2 \
                    port:zlib
depends_run-append  port:coinor-liblemon

master_sites        http://packages.seqan.de/seqan-src
distfiles           seqan-src-${version}${extract.suffix}
distname            seqan-seqan-v${version}

checksums           rmd160  c843f8c749e6f2d8ff5233f160d9683743dce7c2 \
                    sha256  d7084d17729214003e84818e0280a16f223c8f1c6a30eeef040c27e0c0047bd7 \
                    size    109626901

compiler.cxx_standard   2014
compiler.openmp_version 3.0

configure.args-append   -DSEQAN_BUILD_SYSTEM=SEQAN_RELEASE_APPS

if {${os.platform} eq "darwin" && ${os.major} < 16} {
    known_fail yes
    pre-fetch {
        ui_error "${name} ${version} requires macOS 10.12 or greater."
        return -code error "Incompatible macOS version."
    }
}

livecheck.url       http://packages.seqan.de/
livecheck.regex     seqan-src-(\[0-9.\]+)${extract.suffix}