# -*- 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
set major [join [lrange [split ${version} .] 0 1] .]
master_sites https://www.libssh.org/files/${major}
checksums rmd160 b3a2c44cfcecac541b81d083b7ff8bc903313eba \
sha256 43304ca22f0ba0b654e14b574a39816bc70212fdea5858a6637cc26cade3d592 \
categories devel security net
maintainers {ionic @Ionic} openmaintainer
description an SSH library
long_description The ssh library was designed to be used by \
programmers needing a working SSH implementation \
by the mean of a library.
homepage http://www.libssh.org
depends_lib path:lib/libssl.dylib:openssl \
patchfiles-append support-older-ssh-agent.patch
default_variants +kerberos5
file mkdir ${workpath}/build
# -isystem has the added benefit of moving the include
# directory specified to the end of the include path list.
# This will help the build system respect custom include
# paths correctly (i.e., searching them before the MP include
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
-DWITH_INTERNAL_DOC=OFF \
variant kerberos5 description {Enable GSSApi/Kerberos support} {
depends_lib-append port:kerberos5
configure.args-replace -DWITH_GSSAPI=OFF \