PortSystem          1.0
PortGroup           github 1.0

github.setup        jessek hashdeep 4.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                md5deep
categories          security sysutils
# tiger.c is LGPL, sha1.c is GPL
license             public-domain GPL-2+ LGPL-2.1+
maintainers         nomaintainer
description         Recursively compute digests on files/directories
long_description \
   md5deep and hashdeep are a cross-platform set of programs to recursively \
   compute MD5, SHA-1, or SHA-256 message digests on an arbitrary number of \
   files.

checksums           rmd160  d92dcc3d9154a84d79e7807918eb5abb2e80940a \
                    sha256  ec9d74a20016ec4f03914b6c42776d5fe4c7ffa63b73c85d07330abcb8327b3f \
                    size    4534769

patchfiles          patch-src-hash.cpp.diff \
                    space-after-literals.patch

use_autoreconf      yes
autoreconf.args     -fvi
configure.checks.implicit_function_declaration.whitelist-append strchr

post-destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog FILEFORMAT \
      NEWS README TODO ${destroot}${prefix}/share/doc/${name}
}