# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           compilers 1.0
PortGroup           octave 1.0

octave.setup        github ltfat ltfat 2.6.0 v
revision            3
license             GPL-3+ BSD
maintainers         {mps @Schamschula} openmaintainer
description         The Large Time-Frequency Analysis Toolbox
long_description    {*}${description} (LTFAT) is a Matlab/Octave toolbox for working with \
                    time-frequency analysis, wavelets and signal processing. It is \
                    intended both as an educational and a computational tool. The toolbox \
                    provides a large number of linear transforms including Gabor and \
                    wavelet transforms along with routines for constructing windows \
                    (filter prototypes) and routines for manipulating coefficients.

github.tarball_from releases
distname            ltfat-${version}-of

checksums           rmd160  27940e626acb80d5723a4a0d7360cb3bcb5408e2 \
                    sha256  14c0d9f171612c6eca0e8523b57bda7de920ead4a5b7005a3b4fbffe3333263e \
                    size    3579656

compilers.choose    fc f77 f90
compilers.setup     require_fortran

depends_build       port:gmake

patchfiles          patch-src-Makefile.in.diff \
                    patch-src-Makefile_libltfat.diff \
                    patch-oct-Makefile_unix.diff

post-patch {
    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/src/Makefile.in
}
