# -*- 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                murk
version             0.3
revision            2
categories          security
platforms           darwin
maintainers         nomaintainer
license             BSD-old

description         rsync friendly encryption tool

long_description    rsync friendly encryption that runs on the unix command \
                    line. Encrypt a file and backup the changes to an untrusted host.

homepage            http://murk.sourceforge.net/
master_sites        sourceforge:project/murk/murk/${version}

checksums           rmd160  02d4f8784bca9896605df53746516d2c7a7c4015 \
                    sha256  0d9a53efe8ab62eea8e1deb0b6c0f3e605573b23a6f1eda4cb71aa3f921a6ea8

use_bzip2           yes

depends_build       port:bzip2

depends_lib         path:lib/libssl.dylib:openssl

patchfiles          patch-configure

configure.args      -I ${prefix}/include \
                    -L ${prefix}/lib

variant universal {}

build.args          CC="${configure.cc} [get_canonical_archflags]"

test.run            yes
test.target         test

destroot {
    xinstall -m 755 ${worksrcpath}/murk ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/doc/murk.1 \
        ${destroot}${prefix}/share/man/man1
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} INSTALL LICENSE README TODO \
        doc/index.html doc/manpage.html ${destroot}${prefix}/share/doc/${name}
}