# -*- 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

name                cadaver
version             0.24
revision            1
categories          www
maintainers         {fossekall.de:michael.klein @mklein-de} openmaintainer
description         Commandline client for DAV
long_description    cadaver is a command-line WebDAV client for Unix. It \
                    supports file upload, download, on-screen display, \
                    namespace operations (move/copy), collection creation \
                    and deletion, and locking operations.
homepage            https://notroj.github.io/cadaver
license             GPL-2

master_sites        ${homepage}

checksums           rmd160 8efe1502d0be32baaa88eb7a9c15cfaff88e27bd \
                    sha256 46cff2f3ebd32cd32836812ca47bcc75353fc2be757f093da88c0dd8f10fd5f6 \
                    size 808069

# https://trac.macports.org/ticket/72814
post-patch {
    reinplace "s|27 28 29 30 31 32|27 28 29 30 31 32 33 34|" ${worksrcpath}/configure.ac
}

use_autoreconf      yes
autoreconf.args     -fiv

depends_build-append \
                    path:bin/pkg-config:pkgconfig
depends_lib         port:neon \
                    path:lib/libssl.dylib:openssl \
                    port:readline

configure.args-append \
                    --with-neon=${prefix} \
                    --with-ssl=openssl
