# -*- 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
# $Id: Portfile 84550 2011-09-27 21:05:11Z snc@macports.org $

PortSystem          1.0

name                crswallow
version             0.2
categories          sysutils
license             MPL-1.1 GPL-2.0+ LGPL-2.1+
platforms           darwin
maintainers         gmail.com:stefan.van.der.eijk openmaintainer

description         filter or rate-limit text lines containing CR
long_description    crswallow processes text lines passed in from stdin and \
                    forwards most of them to stdout/stderr. Text lines which \
                    contain the carriage return character (cr) are often \
                    used by software to print progress information on a text \
                    console. Some tools update the status very often, e.g. \
                    mencoder may do so several hundred times per second. \
                    Such output can be very disturbing when running software \
                    over a remote terminal connection with low bandwidth. \
                    The crswallow filter can limit status output to a single \
                    update in a given time interval, for example once per \
                    second.
                                
homepage            http://code.google.com/p/crswallow/
master_sites        googlecode

checksums           md5     f1a751c0ea8891ec1682d4ea209fc3b0 \
                    sha1    96701106de01db3e4b46e799ff23b8537019410c \
                    rmd160  781d40d2fd00eafdbe9076ec9dfbf40670beef2e

worksrcdir          ${name}

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

use_configure       no
build.cmd           ${configure.cc}
build.args          ${configure.cflags} ${archflags} -o ${name}
build.target        ${name}.c

destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}
