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

name                stfl
version             0.24
revision            2
categories          devel
platforms           darwin
license             LGPL-3+
maintainers         nomaintainer

description         Structured Terminal Forms Language/Library
long_description    STFL is a library which implements a curses-based widget \
                    set for text terminals. A special language (the \
                    Structured Terminal Forms Language) is used to describe \
                    STFL GUIs. The language is designed to be easy and fast \
                    to write so an application programmer does not need to \
                    spend ages fiddling around with the GUI and can \
                    concentrate on the more interesting programming tasks.

homepage            http://www.clifford.at/stfl/
master_sites        ${homepage}

checksums           rmd160  374ef95e6de3e77991a469ce75c1c972d8c8a3be \
                    sha256  d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090 \
                    size    45585

depends_lib         port:ncurses \
                    port:libiconv

patchfiles          patch-Makefile.diff \
                    patch-stfl_internals.h.diff \
                    patch-newsboat.diff

# Enable ncurses wide character support. Fixes:
# implicit declaration of function 'wget_wch' is invalid in C99
# implicit declaration of function 'mvwaddnwstr' is invalid in C99
configure.cflags-append \
                    -DNCURSES_WIDECHAR=1

makefile.prefix_name \
                    prefix

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
