# -*- 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                rsyncrypto
version             1.14
revision            1
checksums           rmd160  84e8f680e419a2c4b935ba6f51dc7216fc51df04 \
                    sha256  4f1e2605449c7d35b69d77bce95cb652a8ba1a0996b3babd776fcc98a5a7deff \
                    size    405166

platforms           darwin
categories          security
license             {GPL-2+ OpenSSLException}
maintainers         {ryandesign @ryandesign} openmaintainer

description         rsync friendly file encryption

long_description    A slightly reduced strength bulk encryption. \
                    In exchange for the reduced strength, you get \
                    the ability to rsync the encrypted files, \
                    so that local changes in the plaintext file \
                    will result in (relatively) local changes \
                    to the cyphertext file.

homepage            https://sourceforge.net/projects/rsyncrypto/
master_sites        sourceforge:project/rsyncrypto/rsyncrypto/${version}
use_bzip2           yes

depends_lib         port:argtable \
                    port:gzip \
                    path:lib/libssl.dylib:openssl

patchfiles          configure.patch

# crypto.cpp:176:12: error: calling a private constructor of class 'std::__1::unique_ptr<key, std::__1::default_delete<key> >'
# https://sourceforge.net/p/rsyncrypto/bugs/20/
compiler.cxx_standard 2011
configure.cxxflags-append -std=c++11