Commit d97ac221 authored by yuri's avatar yuri
Browse files

New port: devel/pcg-cpp: PCG Random Number Generation, C++ Edition

parent e3c698ff
......@@ -3706,6 +3706,7 @@
SUBDIR += pasm
SUBDIR += patch
SUBDIR += pcc-libs
SUBDIR += pcg-cpp
SUBDIR += pcl
SUBDIR += pcre
SUBDIR += pcre++
......
# $FreeBSD$
PORTNAME= pcg-cpp
DISTVERSIONPREFIX= v
DISTVERSION= 0.98.1-59
DISTVERSIONSUFFIX= -g5b5cac8
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= PCG Random Number Generation, C++ Edition
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE.txt
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT.txt
USES= compiler:c++11-lang
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= imneme
NO_BUILD= yes
NO_ARCH= yes
PLIST_FILES= include/pcg_extras.hpp \
include/pcg_random.hpp \
include/pcg_uint128.hpp
do-test:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} CXXFLAGS=-I${WRKSRC}/include ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
TIMESTAMP = 1615225111
SHA256 (imneme-pcg-cpp-v0.98.1-59-g5b5cac8_GH0.tar.gz) = 35d2efafa991927098d94b8765e977da4b7cbe1573725feee640015ba711ac5b
SIZE (imneme-pcg-cpp-v0.98.1-59-g5b5cac8_GH0.tar.gz) = 77523
--- Makefile.orig 2021-03-08 17:39:48 UTC
+++ Makefile
@@ -25,7 +25,7 @@ all:
PREFIX = /usr/local
-install: all
+install:
install -d $(DESTDIR)$(PREFIX)/include
install -m 0644 include/*.hpp $(DESTDIR)$(PREFIX)/include
This code provides an implementation of the PCG family of random number
generators, which are fast, statistically excellent, and offer a number of
useful features.
There are two kinds of generator, normal generators and extended generators.
Extended generators provide k dimensional equidistribution and can perform party
tricks, but generally speaking most people only need the normal generators.
There are two ways to access the generators, using a convenience typedef or by
using the underlying templates directly (similar to C++11's std::mt19937 typedef
vs its std::mersenne_twister_engine template).
WWW: https://github.com/imneme/pcg-cpp
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment