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

name                redwax-tool
version             1.0.0
revision            0

set domain          https://redwax.eu
homepage            ${domain}/rt/

description         The universal certificate conversion tool.

long_description    \
    {*}${description} Read certificates and keys from your chosen sources, \
    filter the certificates and keys you're interested in, write those \
    certificates and keys to the destinations of your choice.

categories          security devel
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  286a1a569afda3937543ee2f9f1cfd53e6119c71 \
                    sha256  28856bd059c299952ec5e9d70af0252f1415409e579dd0227556a219ebc43683 \
                    size    441548

master_sites        ${domain}/dist/rt/

use_autoreconf      yes
autoreconf.args     -fvi

depends_build-append \
                    bin:pkg-config:pkgconfig

depends_lib-append  port:apr \
                    port:apr-util \
                    port:expat \
                    port:nss \
                    port:p11-kit \
                    port:libical \
                    port:ldns \
                    port:unbound

configure.args-append \
                    --with-bash-completion-dir=${prefix}/share/bash-completion/completions \
                    --with-keychain \
                    --with-ldns \
                    --with-libical \
                    --with-nss \
                    --with-openssl \
                    --with-p11-kit \
                    --with-unbound
