# -*- 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 140001 2015-09-05 22:34:27Z khindenburg@macports.org $ PortSystem 1.0 PortGroup active_variants 1.1 name putty version 0.65 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 a36925963930cba7ca16a27a8f338c3de95e869b \ sha256 d543c1fd4944ea51d46d4abf31bfb8cde9bd1c65cb36dc6b83e51ce875660ca0 depends_build port:pkgconfig worksrcdir ${worksrcdir}/unix # unix configure calls the configure in top folder patch.pre_args -d ${worksrcpath}/../ patchfiles patch-configure.diff variant gui description {Build the GUI tools (including putty itself)} { depends_lib-append port:gtk2 configure.args-delete --without-gtk require_active_variants gtk2 x11 } default_variants +gui configure.args-append --without-gtk 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}