# $Id: Portfile 43476 2008-12-11 04:06:39Z ryandesign@macports.org $

PortSystem              1.0

name                    mhash
version                 0.9.9.9
categories              devel security
maintainers             ryandesign openmaintainer
homepage                http://mhash.sourceforge.net/
master_sites            sourceforge
use_bzip2               yes
use_parallel_build      yes
platforms               darwin freebsd

description \
    provides easy access strong hashes

long_description \
    Libmhash is a library which implements some hash algorithms like crc32, \
    md5 and sha-1.

checksums \
    md5     f91c74f9ccab2b574a98be5bc31eb280 \
    sha1    d6f324e70a42a8bbf7a5458521257225afcf0caf \
    rmd160  4b3e8f601687e791aed62c90cbf5850ea714129b

configure.args \
    --mandir=${prefix}/share/man

test.run                yes
test.target             check

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        THANKS \
        TODO \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath}/doc \
        skid2-authentication \
        ${destroot}${prefix}/share/doc/${name}
}
