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

name          ldas-tools-filters
version       2.5.2
categories    science
maintainers   nomaintainer

description   Filters library used by ldas-tools
long_description {*}${description}

homepage      https://wiki.ligo.org/DASWG/LDASTools
master_sites  https://software.igwn.org/lscsoft/source/

checksums     rmd160 bbe90cc33b7841bf623b3c0aa2b01939f425f6eb \
              sha256 f63305882c13bb03b1e47fca5e14ec09e905b91f6f0ea27f520db4c53801aee2

depends_build  port:pkgconfig
depends_lib    port:ldas-tools-al

configure.args --disable-warnings-as-errors \
               --disable-silent-rules \
               --with-optimization=high \
               --disable-tcl \
               --without-doxygen \
               --without-dot \
               --disable-latex

if {${configure.cxx_stdlib} eq "libstdc++" } {
    configure.args-append --disable-cxx11
}

# requires clang from Xcode5 or higher to build
compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2

use_parallel_build yes

if {${os.platform} eq "darwin" && ${os.major} < 11} {
    known_fail  yes
    pre-fetch {
        ui_error "${name} only runs on Mac OS X 10.7 or greater."
        return -code error "incompatible Mac OS X version"
    }
}

#------------------------------------------------------------------------

livecheck.type   regex
livecheck.url    ${master_sites}
livecheck.regex  {ldas-tools-filters-(\d+(?:\.\d+)*).tar.gz}
