# $Id: Portfile 54860 2009-08-03 06:54:17Z ryandesign@macports.org $

PortSystem          1.0

name                stfl
version             0.20
categories          devel
platforms           darwin
maintainers         lutz.horn@fastmail.fm

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        http://www.clifford.at/stfl/
distname            stfl-${version}

checksums           md5     905e0b8f81fe1b5c95b8d78f56df966b \
                    sha1    0bd33d44fd71c8e2f1383fab52d4db547384024c \
                    rmd160  d99415b39c110459a5f10eb58242291fb4a87ce4

depends_lib         port:ncursesw \
                    port:libiconv

patchfiles          patch-Makefile.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}
