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

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

categories          science comms
license             GPL-2+
maintainers         {ra1nb0w @ra1nb0w} openmaintainer
description         decodes images transmitted by NOAA weather satellites
long_description    {*}${description}

github.setup        srcejon aptdec 3e8297a912f89a3c42af0845b83a209a6cd13c55
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20220924-[string range ${github.version} 0 7]
revision            0

# unfortunately, I can't find an easy solution
fetch.type          git
github.livecheck.branch libaptdec

depends_build-append \
    port:pkgconfig

depends_lib-append \
    port:zlib \
    port:libpng \
    port:libsndfile

cmake.build_type Release

# algebra.c:38: error: ‘for’ loop initial declaration used outside C99 mode
configure.cflags-append \
                    -std=c99

post-fetch {
    system -W ${worksrcpath} "git submodule update --init --recursive"
}
