# -*- 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 92682 2012-05-03 21:15:04Z ryandesign@macports.org $

PortSystem          1.0

name                minicom
version             2.6.1
categories          comms
maintainers         waqar openmaintainer
platforms           darwin
license             GPL-2

description         Menu driven communications program

long_description    Minicom is a menu driven communications program. It \
                    emulates ANSI and VT102 terminals. It has a dialing \
                    directory and auto zmodem download.

homepage            http://alioth.debian.org/projects/minicom
master_sites        http://alioth.debian.org/frs/download.php/3700

checksums           rmd160 d9c7bf6d661427ff1a4007a917574e4ecd872c50 \
                    sha256 a6e7bf533c3796f3a67a7d109f328d46497c687ed13885bd1be4ce0548fc4f56

depends_build       port:pkgconfig

depends_lib         port:gettext

depends_run         port:kermit \
                    port:lrzsz

post-patch {
    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/src/rwconf.c
    reinplace "s|/usr/bin/ascii-xfr|${prefix}/bin/ascii-xfr|g" ${worksrcpath}/src/rwconf.c
}

configure.args      --enable-lock-dir=/tmp \
                    --enable-kermit=${prefix}/bin
