# -*- 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           github      1.0
PortGroup           muniversal  1.0
PortGroup           openssl     1.0

github.setup        libssh2 libssh2 1.11.1 libssh2-
github.tarball_from releases
revision            0

categories          devel net
maintainers         {wohner.eu:normen @Gminfly} openmaintainer

homepage            https://www.libssh2.org/

description         libssh2 is a library implementing the SSH2 protocol

long_description    libssh2 is a library implementing the SSH2 protocol as \
                    defined by Internet Drafts: SECSH-TRANS(22), \
                    SECSH-USERAUTH(25), SECSH-CONNECTION(23), SECSH-ARCH(20), \
                    SECSH-FILEXFER(06), SECSH-DHGEX(04), and SECSH-NUMBERS(10).

license             BSD

checksums           rmd160  52fe2f3426d24da14fd2ad7a442b536f32c701f1 \
                    sha256  d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7 \
                    size    1093012

depends_build-append \
                    bin:gawk:gawk
depends_lib-append  port:zlib

# There are too many pragmas inside functions now to patch out.
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

configure.args      ac_cv_prog_AWK=${prefix}/bin/gawk

configure.checks.implicit_function_declaration.whitelist-append strchr

variant debug description {Enable debug mode including tracing support} {
    configure.args-append \
        --enable-debug
}
