svn commit: r557744 - in head/math: . sprng
Thierry Thomas
thierry at FreeBSD.org
Fri Dec 11 15:35:37 UTC 2020
Author: thierry
Date: Fri Dec 11 15:35:35 2020
New Revision: 557744
URL: https://svnweb.freebsd.org/changeset/ports/557744
Log:
Adding math/sprng, Scalable Parallel Pseudo Random Number Generators Library.
Added:
head/math/sprng/
head/math/sprng/Makefile (contents, props changed)
head/math/sprng/distinfo (contents, props changed)
head/math/sprng/pkg-descr (contents, props changed)
head/math/sprng/pkg-plist (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Fri Dec 11 15:33:16 2020 (r557743)
+++ head/math/Makefile Fri Dec 11 15:35:35 2020 (r557744)
@@ -921,6 +921,7 @@
SUBDIR += spooles
SUBDIR += spooles-mpich
SUBDIR += spot
+ SUBDIR += sprng
SUBDIR += stp
SUBDIR += suitesparse
SUBDIR += sundials
Added: head/math/sprng/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/sprng/Makefile Fri Dec 11 15:35:35 2020 (r557744)
@@ -0,0 +1,67 @@
+# Created by: thierry at pompo.net
+# $FreeBSD$
+
+PORTNAME= SPRNG
+PORTVERSION= 5.0
+CATEGORIES= math science
+MASTER_SITES= http://www.sprng.org/Version${PORTVERSION}/
+DISTNAME= ${PORTNAME:tl}${PORTVERSION:R}
+
+MAINTAINER= thierry at FreeBSD.org
+COMMENT= Scalable Parallel Pseudo Random Number Generators Library
+
+LICENSE= CC-BY-NC-SA-4.0
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libtestu01.so:math/testu01
+
+USES= compiler dos2unix fortran gmake localbase tar:bz2
+DOS2UNIX_GLOB= LICENSE
+
+FFLAGS= -I${LOCALBASE}/include
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-testu01=${LOCALBASE} \
+ --with-testu01lib=${LOCALBASE}/lib \
+ --with-testu01inc=${LOCALBASE}/include/TestU01
+TEST_TARGET= check
+
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= EXAMPLES MPI
+OPTIONS_DEFAULT= EXAMPLES MPI
+OPTIONS_SUB= yes
+MPI_LIB_DEPENDS= libmpi.so:net/mpich
+MPI_CONFIGURE_WITH= mpi
+
+ASCII_TEXTS= checkcmrg checklcg checklcg64 checklfg checkmlfg checkpmlcg \
+ checksprng timecmrg timelcg timelcg64 timelfg timemlfg timepmlcg\
+ timesprng
+
+.include <bsd.port.pre.mk>
+
+pre-configure:
+.if ${CHOSEN_COMPILER_TYPE} == clang
+ ${FIND} ${WRKSRC} -name Makefile.in | \
+ ${XARGS} ${REINPLACE_CMD} -e 's|-lstdc++|-lc++|'
+.endif
+.for s in check_gen.cpp check_gen_simple.cpp
+ ${FIND} ${WRKSRC} -name ${s} | \
+ ${XARGS} ${REINPLACE_CMD} -e 's|using namespace std;||'
+.endfor
+
+post-stage:
+ (cd ${STAGEDIR}${PREFIX}/share && \
+ ${RM} .insertlib gencheck gentime insertlib)
+ (cd ${STAGEDIR}${PREFIX}/bin && ${RM} ${ASCII_TEXTS})
+
+post-install-EXAMPLES-on:
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/EXAMPLES && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+ (cd ${STAGEDIR}${EXAMPLESDIR} && ${RM} -r .deps)
+.if !defined(WITH_DEBUG)
+ ${FIND} ${STAGEDIR}${EXAMPLESDIR} -name "*.sprng" | \
+ ${XARGS} ${STRIP_CMD}
+.endif
+
+.include <bsd.port.post.mk>
Added: head/math/sprng/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/sprng/distinfo Fri Dec 11 15:35:35 2020 (r557744)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1607615633
+SHA256 (sprng5.tar.bz2) = 9172a495472cc24893e7489ce9b5654300dc60cba4430e436ce50d28eb749a66
+SIZE (sprng5.tar.bz2) = 648021
Added: head/math/sprng/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/sprng/pkg-descr Fri Dec 11 15:35:35 2020 (r557744)
@@ -0,0 +1,13 @@
+Computational stochastic approaches (Monte Carlo methods) based on the random
+sampling are becoming extremely important research tools not only in their
+"traditional" fields such as physics, chemistry or applied mathematics but also
+in social sciences and, recently, in various branches of industry. An indication
+of importance is, for example, the fact that Monte Carlo calculations consume
+about one half of the supercomputer cycles. One of the indispensable and
+important ingredients for reliable and statistically sound calculations is the
+source of pseudo random numbers. The goal of this project is to develop,
+implement and test a scalable package for parallel pseudo random number
+generation which will be easy to use on a variety of architectures, especially
+in large-scale parallel Monte Carlo applications.
+
+WWW: http://www.sprng.org/
Added: head/math/sprng/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/sprng/pkg-plist Fri Dec 11 15:35:35 2020 (r557744)
@@ -0,0 +1,93 @@
+%%MPI%%bin/2streams_mpi.tmp
+bin/FIPS_140_2.tmp
+bin/alphabit.tmp
+bin/bigCrush.tmp
+bin/check.ccmrg
+bin/check.clcg
+bin/check.clcg64
+bin/check.clfg
+bin/check.cmlfg
+bin/check.cpmlcg
+bin/check.fcmrg
+bin/check.flcg
+bin/check.flfg
+bin/check.fmlfg
+bin/check.fpmlcg
+bin/check_sim.ccmrg
+bin/check_sim.clcg
+bin/check_sim.clcg64
+bin/check_sim.clfg
+bin/check_sim.cmlfg
+bin/check_sim.cpmlcg
+bin/check_sim.fcmrg
+bin/check_sim.flcg
+bin/check_sim.flfg
+bin/check_sim.fmlfg
+bin/check_sim.fpmlcg
+bin/collisions.tmp
+bin/convert.tmp
+bin/convertf.tmp
+bin/coupon.tmp
+bin/crush.tmp
+bin/equidist.tmp
+%%MPI%%bin/fsprng-simple_mpi.tmp
+%%MPI%%bin/fsprng_mpi.tmp
+bin/gap.tmp
+bin/libsprng.a
+bin/maxt.tmp
+%%MPI%%bin/message-simple_mpi.tmp
+%%MPI%%bin/message_mpi.tmp
+bin/metropolis.tmp
+bin/perm.tmp
+bin/pi-simple.tmp
+%%MPI%%bin/pi-simple_mpi.tmp
+bin/pif-simple.tmp
+bin/poker.tmp
+bin/rabbit.tmp
+bin/random_walk.tmp
+bin/runs.tmp
+bin/seed-simple.tmp
+%%MPI%%bin/seed-simple_mpi.tmp
+bin/seed.tmp
+%%MPI%%bin/seed_mpi.tmp
+bin/seedf-simple.tmp
+bin/seedf.tmp
+bin/serial.tmp
+bin/simple-simple.tmp
+bin/simplef-simple.tmp
+bin/smallCrush.tmp
+bin/spawn.tmp
+bin/spawnf.tmp
+bin/sprng-simple.tmp
+%%MPI%%bin/sprng-simple_mpi.tmp
+bin/sprng.tmp
+%%MPI%%bin/sprng_mpi.tmp
+bin/sprngf-simple.tmp
+bin/sprngf.tmp
+bin/subroutinef.tmp
+bin/sum.tmp
+bin/time.ccmrg
+bin/time.clcg
+bin/time.clcg64
+bin/time.clfg
+bin/time.cmlfg
+bin/time.cpmlcg
+bin/time.fcmrg
+bin/time.flcg
+bin/time.flfg
+bin/time.fmlfg
+bin/time.fpmlcg
+bin/wolff.tmp
+bin/wolffind.tmp
+bin/wolfftest.tmp
+include/bignum.h
+include/cmrg.h
+include/lcg.h
+include/lcg64.h
+include/lfg.h
+include/mlfg.h
+include/pmlcg.h
+include/sprng.h
+include/sprng_cpp.h
+include/sprng_f.h
+lib/libsprng.a
More information about the svn-ports-all
mailing list