0579e8f00d
algorithms for generating non-uniform pseudorandom variates as a library of C functions designed and implemented by the ARVAG (Automatic Random VAriate Generation) project group in Vienna, and released under the GNU Public License (GPL). It is especially designed for situations where: - a non-standard distribution or a truncated distribution is needed; - experiments with different types of distributions are made; - random variates for variance reduction techniques are used; or - fast generators of predictable quality are necessary. UNU.RAN provides generators that are superior in many aspects to those found in quite a number of other libraries; however, due to its more sophisticated programming interface, it might not be as easy to use. It uses an object-oriented interface in which distributions and generators are treated as independent objects, so that different methods for generating non-uniform random variates may be chosen according to various criteria, such as speed, quality, and variance reduction. It is flexible enough to permit sampling from non-standard distributions, such as distributions that arise in a model and can only be computed in complicated subroutines. WWW: http://statmath.wu-wien.ac.at/unuran/ PR: ports/128883 Submitted by: bf <bf2006a at yahoo.com>
42 lines
1,021 B
Makefile
42 lines
1,021 B
Makefile
# New ports collection makefile for: unuran
|
|
# Date created: 13 November 2008
|
|
# Whom: bf <bf2006a@yahoo.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= unuran
|
|
PORTVERSION= 1.2.4
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://statmath.wu-wien.ac.at/unuran/
|
|
|
|
MAINTAINER= bf2006a@yahoo.com
|
|
COMMENT= Universal Non-Uniform RANdom number generators
|
|
|
|
LIB_DEPENDS= rngstreams:${PORTSDIR}/math/rngstreams
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shared --with-urng-rngstream --with-urng-default=rngstream \
|
|
--enable-info
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
USE_LDCONFIG= yes
|
|
INFO= unuran
|
|
PORTDOCS= unuran.pdf unuran.txt
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
post-install:
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for DD in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${DD} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.ifdef(MAINTAINER_MODE)
|
|
CONFIGURE_ARGS+= --enable-check-struct --enable-logging
|
|
|
|
regression-test: build
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} check)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|