# $Id: Portfile,v 1.1 2005/11/05 11:21:27 mww Exp $

PortSystem 1.0

name			diehard
version			0.1
categories		math
platforms		darwin
maintainers		mww@opendarwin.org
description		Marsaglia's Diehard Battery of Tests of Randomness
long_description	${description}

homepage		http://stat.fsu.edu/pub/diehard/
master_sites	http://www.cs.hku.hk/~diehard/cdrom/ \
				http://stat.fsu.edu/pub/diehard/ freebsd
distname		die.c
checksums		md5 854ea157c0ff73dd0d58928c834b6122

use_configure	no

build.target

destroot {
	xinstall -m 755 ${worksrcpath}/diehard ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/NOTES ${destroot}${prefix}/share/doc/${name}
}

platform darwin 8 { build.args	CC=/usr/bin/gcc-4.0 }

