You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
a54acbca97
Co-authored-by: Sergey Fedorov <barracuda@macos-powerpc.org>
57 lines
1.9 KiB
Tcl
57 lines
1.9 KiB
Tcl
# -*- 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
|
||
|
||
PortSystem 1.0
|
||
PortGroup active_variants 1.1
|
||
PortGroup cmake 1.1
|
||
|
||
name putty
|
||
version 0.84
|
||
categories security net
|
||
conflicts pssh-lilydjwg
|
||
maintainers nomaintainer
|
||
license MIT
|
||
|
||
description A free implementation of Telnet and SSH, \
|
||
along with an xterm terminal emulator
|
||
|
||
long_description PuTTY is ${description}.
|
||
|
||
homepage https://www.chiark.greenend.org.uk/~sgtatham/putty/
|
||
master_sites ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-${version}/ \
|
||
https://the.earth.li/~sgtatham/putty/${version}/
|
||
|
||
checksums rmd160 c87c6d0af904752c4d86cc1834d22744087edced \
|
||
sha256 06057862ae198f1dbd219d0c7493080d59f606194bb5056c549e342aa01b69fe \
|
||
size 3005843
|
||
|
||
patchfiles-append patch-MSG_NOSIGNAL.diff \
|
||
patch-STDC_FORMAT_MACROS.diff
|
||
|
||
# ecc-ssh.c: error: unknown field ‘ecdh_vt’ specified in initializer
|
||
compiler.blacklist-append \
|
||
*gcc-4.0 *gcc-4.2
|
||
|
||
depends_build-append port:pkgconfig
|
||
configure.args-append -DPUTTY_GTK_VERSION=0
|
||
|
||
if {${os.platform} eq "darwin" && ${os.major} < 16} {
|
||
configure.args-append \
|
||
-DHAVE_ALIGNED_ALLOC=0
|
||
}
|
||
|
||
pre-configure {
|
||
configure.cflags-delete -DNDEBUG
|
||
}
|
||
|
||
variant gui description {Build the GUI tools (including putty itself)} {
|
||
depends_lib-append path:lib/pkgconfig/gtk+-3.0.pc:gtk3
|
||
require_active_variants gtk3 x11
|
||
configure.args-append -DPUTTY_GTK_VERSION=3
|
||
}
|
||
|
||
default_variants +gui
|
||
|
||
livecheck.type regex
|
||
livecheck.url ${homepage}download.html
|
||
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
|