diff --git a/math/Makefile b/math/Makefile index 84ae0deff604..559908acb832 100644 --- a/math/Makefile +++ b/math/Makefile @@ -833,6 +833,7 @@ SUBDIR += pear-Math_BigInteger SUBDIR += pear-Math_Combinatorics SUBDIR += pecl-bitset + SUBDIR += perlinnoise SUBDIR += permlib SUBDIR += petanque SUBDIR += petiga diff --git a/math/perlinnoise/Makefile b/math/perlinnoise/Makefile new file mode 100644 index 000000000000..170b795aaf5c --- /dev/null +++ b/math/perlinnoise/Makefile @@ -0,0 +1,25 @@ +PORTNAME= perlinnoise +DISTVERSIONPREFIX= v +DISTVERSION= 3.0.0 +CATEGORIES= math devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Header-only Perlin noise library for modern C++ +WWW= https://github.com/Reputeless/PerlinNoise + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= Reputeless +GH_PROJECT= PerlinNoise + +NO_BUILD= yes +NO_ARCH= yes + +PLIST_FILES= include/PerlinNoise.hpp + +do-install: + ${INSTALL_DATA} ${WRKSRC}/PerlinNoise.hpp ${STAGEDIR}${PREFIX}/include + +.include diff --git a/math/perlinnoise/distinfo b/math/perlinnoise/distinfo new file mode 100644 index 000000000000..2620e712fd2d --- /dev/null +++ b/math/perlinnoise/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688082287 +SHA256 (Reputeless-PerlinNoise-v3.0.0_GH0.tar.gz) = 1fea1e7ebeb3c66b79d60c2c398aa83ccfadcef343bd396c0f0a684380e827fc +SIZE (Reputeless-PerlinNoise-v3.0.0_GH0.tar.gz) = 331762 diff --git a/math/perlinnoise/pkg-descr b/math/perlinnoise/pkg-descr new file mode 100644 index 000000000000..e715af25398d --- /dev/null +++ b/math/perlinnoise/pkg-descr @@ -0,0 +1,3 @@ +siv::PerlinNoise is a header-only Perlin noise library for modern C++ +(C++17/20). +The implementation is based on Ken Perlin's Improved Noise Java class.