# -*- 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$

PortSystem              1.0

name                    nload
version                 0.7.2
categories              net
maintainers             raphael openmaintainer
description             A console application which monitors network traffic \
                        and bandwidth usage in real time
long_description        nload is a console application which monitors network \
                        traffic and bandwidth usage in real time. It visualizes \
                        the in- and outgoing traffic using two graphs and provides \
                        additional info like total amount of transfered data and \
                        min/max network usage.
homepage                http://www.roland-riegel.de/nload/
license                 GPL-2
platforms               darwin

master_sites            sourceforge

checksums               md5     5b851ecf898edcd1f465946745e95eb6 \
                        sha1    fe1f6e93a9233b55a61580a23e94edc965583fa3 \
                        rmd160  e4e7cee98de4b83106998f4552f4e1e0071f61f4

depends_build           port:automake \
                        port:autoconf
depends_lib             port:ncurses

patchfiles              patch-configure.in.diff

pre-configure {         system "cd ${worksrcpath} && ./run_autotools"
}

use_parallel_build      yes

post-destroot {         set docdir ${destroot}${prefix}/share/doc/${name}
                        xinstall -d ${docdir}
                        xinstall -m 644 -W ${worksrcpath} \
                            AUTHORS \
                            COPYING \
                            ChangeLog \
                            README \
                            ${docdir}
}