# $Id: Portfile,v 1.14 2005/10/19 08:10:07 blb Exp $

PortSystem			1.0
name				mhash
version				0.9.2
categories			devel security
maintainers			blb@opendarwin.org
description			provides easy access strong hashes
long_description \
	Libmhash is a library which implements some hash algorithms like crc32, \
	md5 and sha-1.

platforms			darwin freebsd

homepage			http://mhash.sourceforge.net/
master_sites		sourceforge
use_bzip2			yes

checksums			md5 507e0034985eee6364d404bfc761ee02 \
					sha1 81c223bb63506d33d32a07a6fe48d719d43f0a4e

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

platform darwin 8 {
	configure.env-append	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

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 md5-rfc1321.txt \
		skid2-authentication ${destroot}${prefix}/share/doc/${name}
}

