# -*- 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 111353 2013-09-19 07:21:56Z ryandesign@macports.org $

PortSystem          1.0

name                putty
version             0.63
categories          security net
platforms           darwin
maintainers         nomaintainer
license             MIT

description         a free implementation of Telnet and SSH, along with an \
                    xterm terminal emulator

long_description    PuTTY is ${description}

homepage            http://www.chiark.greenend.org.uk/~sgtatham/putty/
master_sites        ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-${version}/ \
                    http://the.earth.li/~sgtatham/putty/${version}/

checksums           rmd160  cf28d88a5f0e1db6c21bb0308bd59ed4d6399e5f \
                    sha256  81e8eaaf31be7d9a46b4f3fb80d1d9540776f142cd89d0a11f2f8082dc68f8b5

depends_build       port:pkgconfig

depends_lib         port:gtk2

worksrcdir          ${worksrcdir}/unix

patchfiles          patch-Makefile.in.diff \
                    patch-configure.diff

configure.cppflags-delete -I${prefix}/include
configure.cppflags-append -isystem${prefix}/include

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