PortSystem 1.0

name			diehard
version			0.1
categories		math
license			none
platforms		darwin
maintainers		nomaintainer
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

patchfiles		diehard.c.patch Makefile.patch cdomso.c.patch

use_configure	no

build.target
build.args	CC=${configure.cc} LDFLAGS="${configure.ld_archflags}" \
		CFLAGS="${configure.cflags} ${configure.cc_archflags}"

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}
}
