# $Id$

PortSystem          1.0

name                stfl
version             0.24
categories          devel
platforms           darwin
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}
distname            stfl-${version}

checksums           md5     98c764ccc8f13ed05ea22559d7116b96 \
                    sha1    c770a20f719f5a7f0a691727098c51b43df9c33c \
                    rmd160  374ef95e6de3e77991a469ce75c1c972d8c8a3be \
                    sha256  d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090

depends_lib         port:ncurses \
                    port:libiconv

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

post-patch {
    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile.cfg
}

use_configure       no

build.env           CC=${configure.cc} \
                    CFLAGS=${configure.cppflags} \
                    LDLIBS=${configure.ldflags}

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