# -*- 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           legacysupport 1.1
PortGroup           makefile 1.0

name                sfeed
version             2.2
revision            0
license             ISC

categories          net www
maintainers         {@sikmir disroot.org:sikmir} openmaintainer
description         RSS and Atom parser (and some format programs)
long_description    {*}${description}

homepage            https://git.codemadness.org/${name}/

master_sites        https://codemadness.org/releases/${name}/

checksums           rmd160  561df214e587fc5e77f68bb8aba32905d3f55219 \
                    sha256  4270389c3cfa474caa3892271c3171a751490328cc52e502d8435de3c2e41cc5 \
                    size    68969

depends_lib-append  port:ncurses

legacysupport.newest_darwin_requires_legacy 10

makefile.override   CC PREFIX

compiler.c_standard 1999

configure.cflags-append \
                    -D_DARWIN_C_SOURCE

build.args          "COMPATOBJ:=" \
                    "SFEED_CURSES_LDFLAGS:=-lncurses"

destroot.args       ${build.args}

livecheck.type   regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  href=\"sfeed-(.*)\\.tar\\.gz\"
