# -*- 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                murk
version             0.3
revision            4
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 \
                    size    33220

use_bzip2           yes

openssl.branch      1.0
openssl.configure   build_flags

depends_build-append \
                    port:ctags

depends_lib-append  port:bzip2

patchfiles          configure.patch

configure.args      -I [openssl::include_dir] \
                    -I ${prefix}/include \
                    -L [openssl::lib_dir] \
                    -L ${prefix}/lib

variant universal {}

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

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}
}