1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/math/testu01/Makefile
Martin Wilke 5d2e9071f4 TestU01 is a software library, implemented in the ANSI C language, and
offering a collection of utilities for the empirical statistical testing
of uniform random number generators.

The library implements several types of random number generators in generic
form, as well as many specific generators proposed in the literature or
found in widely-used software. It provides general implementations of the
classical statistical tests for random number generators, as well as several
others proposed in the literature, and some original ones. These tests can
be applied to the generators predefined in the library and to user-defined
generators. Specific tests suites for either sequences of uniform random
numbers in [0,1] or bit sequences are also available. Basic tools for
plotting vectors of points produced by generators are provided as well.

Additional software permits one to perform systematic studies of the
interaction between a specific test and the structure of the point sets
produced by a given family of random number generators. That is, for a given
kind of test and a given class of random number generators, to determine how
large should be the sample size of the test, as a function of the generator's
period length, before the generator starts to fail the test systematically.

WWW: http://www.iro.umontreal.ca/~simardr/testu01/tu01.html

PR:		ports/128861
Submitted by:	bf <bf2006a at yahoo.com>
2008-12-07 15:55:06 +00:00

48 lines
1.4 KiB
Makefile

# New ports collection makefile for: rngstreams
# Date created: 13 November 2008
# Whom: bf <bf2006a@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= TestU01
PORTVERSION= 1.2.1
CATEGORIES= math
MASTER_SITES= http://www.iro.umontreal.ca/~simardr/testu01/:0 \
http://www.iro.umontreal.ca/~lecuyer/myftp/papers/:1
DISTFILES= ${PORTNAME}${EXTRACT_SUFX}:0 testu01.pdf:1
EXTRACT_ONLY= ${PORTNAME}${EXTRACT_SUFX}
MAINTAINER= bf2006a@yahoo.com
COMMENT= Utilities for statistical testing of uniform random number generators
LIB_DEPENDS= gmp:${PORTSDIR}/math/libgmp4
USE_ZIP= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --includedir="${PREFIX}/include/${PORTNAME}"
USE_GMAKE= yes
MAKE_ARGS= docdir="${DOCSDIR}" exdir="${EXAMPLESDIR}"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
USE_LDCONFIG= yes
CLAGS+= -fPIC
PLIST_SUB= PORTNAME="${PORTNAME}"
post-patch:
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
.ifdef(NOPORTDOCS)
@${REINPLACE_CMD} -e '/^SUBDIRS \=/s/ doc / /' ${WRKSRC}/Makefile.in
@${FIND} -X ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \
-e '/^install-data-am\: /s/install-docDATA//'
.endif
.ifdef(NOPORTEXAMPLES)
@${REINPLACE_CMD} -e '/^SUBDIRS \=/s/ examples / /' ${WRKSRC}/Makefile.in
.endif
.ifndef(NOPORTDOCS)
post-install:
@${INSTALL_DATA} ${DISTDIR}/testu01.pdf ${DOCSDIR}
.endif
.include <bsd.port.mk>