git: 7d21fb860bc1 - main - benchmarks/linux-unigine-{sanctuary,tropics}: new ports had been added

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Mon, 15 Nov 2021 17:54:34 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7d21fb860bc17b51e8c7a4f01fd4136848b7a27d

commit 7d21fb860bc17b51e8c7a4f01fd4136848b7a27d
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-11-15 17:52:42 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-11-15 17:52:42 +0000

    benchmarks/linux-unigine-{sanctuary,tropics}: new ports had been added
    
    Unigine benchmarks are extreme performance and stability test for your
    hardware: video card, power supply, cooling system.  Check your rig in
    stock and overclocked modes with real-life load!
    
    These two benchmarks depict a Gothic chapel and a tropical paradise.
    
    WWW: https://benchmark.unigine.com/
---
 benchmarks/Makefile                          |  2 ++
 benchmarks/linux-unigine-sanctuary/Makefile  | 40 ++++++++++++++++++++++++++++
 benchmarks/linux-unigine-sanctuary/distinfo  |  3 +++
 benchmarks/linux-unigine-sanctuary/pkg-descr | 26 ++++++++++++++++++
 benchmarks/linux-unigine-sanctuary/pkg-plist |  7 +++++
 benchmarks/linux-unigine-tropics/Makefile    | 40 ++++++++++++++++++++++++++++
 benchmarks/linux-unigine-tropics/distinfo    |  3 +++
 benchmarks/linux-unigine-tropics/pkg-descr   | 30 +++++++++++++++++++++
 benchmarks/linux-unigine-tropics/pkg-plist   |  8 ++++++
 9 files changed, 159 insertions(+)

diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index a95460fa0e53..8663de39dd89 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -40,6 +40,8 @@
     SUBDIR += libcelero
     SUBDIR += libmicro
     SUBDIR += linux-gputest
+    SUBDIR += linux-unigine-sanctuary
+    SUBDIR += linux-unigine-tropics
     SUBDIR += linux-vdbench
     SUBDIR += lmbench
     SUBDIR += lzbench
diff --git a/benchmarks/linux-unigine-sanctuary/Makefile b/benchmarks/linux-unigine-sanctuary/Makefile
new file mode 100644
index 000000000000..02465d791de9
--- /dev/null
+++ b/benchmarks/linux-unigine-sanctuary/Makefile
@@ -0,0 +1,40 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+
+PORTNAME=	unigine-sanctuary
+PORTVERSION=	2.3
+CATEGORIES=	benchmarks linux
+MASTER_SITES=	https://assets.unigine.com/d/
+PKGNAMEPREFIX=	linux-
+DISTNAME=	Unigine_Sanctuary-${PORTVERSION}
+EXTRACT_SUFX=	.run
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Unigine GPU benchmark depicting a Gothic chapel
+
+ONLY_FOR_ARCHS=	amd64 i386
+ONLY_FOR_ARCHS_REASON=	precompiled, binary-only software for GNU/Linux
+
+USES=		linux
+USE_LINUX=	dri openal-soft xorglibs
+NO_BUILD=	yes
+
+do-extract:
+	@${MKDIR} ${WRKSRC}
+	@${TAIL} -n 107856 ${DISTDIR}/${DISTFILES} | ${TAR} xzf - -C ${WRKSRC}
+
+post-patch:
+# Avoid clash with other Unigine benchmarks
+.for script in 1024x768_windowed 1920x1080_fullscreen
+	@${SED} -e 's,\./bin,${DATADIR}/bin,' ${WRKSRC}/${script}.sh \
+		> ${WRKSRC}/${PORTNAME}_${script}.sh
+.endfor
+
+do-install:
+	cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/Sanctuary ${STAGEDIR}${DATADIR}/bin
+	${INSTALL_LIB} ${WRKSRC}/bin/libUnigine_x86.so \
+		${STAGEDIR}${DATADIR}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}*sh ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/benchmarks/linux-unigine-sanctuary/distinfo b/benchmarks/linux-unigine-sanctuary/distinfo
new file mode 100644
index 000000000000..7920a21166fb
--- /dev/null
+++ b/benchmarks/linux-unigine-sanctuary/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500874082
+SHA256 (Unigine_Sanctuary-2.3.run) = 28a8bbd1cb64126fadc7492304c59528c2c3ac9d53b0f1fe08a2c331703a39d5
+SIZE (Unigine_Sanctuary-2.3.run) = 29468416
diff --git a/benchmarks/linux-unigine-sanctuary/pkg-descr b/benchmarks/linux-unigine-sanctuary/pkg-descr
new file mode 100644
index 000000000000..8d02d3eb9e81
--- /dev/null
+++ b/benchmarks/linux-unigine-sanctuary/pkg-descr
@@ -0,0 +1,26 @@
+Extreme performance and stability test for PC hardware: video card,
+power supply, cooling system.  Check your rig in stock and overclocked
+modes with real-life load!  Also includes interactive experience.
+
+The benchmark depicts a Gothic chapel with sorrowful statues stand in
+solemn stillness lit by the trembling light of torches.  Only few rays
+of sun coming through the stained glass windows slide over the biblical
+fresco and ominous creatures carved in cold stone.
+
+The very first GPU benchmark from UNIGINE, the original version was
+released in 2007, the 2.3 update was out in 2010.
+
+Key features:
+
+  - Visuals powered by UNIGINE 1 Engine
+  - Support of DirectX 9, DirectX 10, and OpenGL
+  - Five dynamic lights, HDR rendering
+  - Parallax and ambient occlusion mapping
+  - Volumetric light and fog, particle system
+  - Interactive experience with fly-through mode
+
+The program requires linprocfs(5) and linsysfs(5) to be mounted under
+/compat/linux/{proc,sys} to operate and writable /compat/linux/dev/shm
+directory, which is typically backed by tmpfs(5).
+
+WWW: https://benchmark.unigine.com/sanctuary
diff --git a/benchmarks/linux-unigine-sanctuary/pkg-plist b/benchmarks/linux-unigine-sanctuary/pkg-plist
new file mode 100644
index 000000000000..f3c4185cfaad
--- /dev/null
+++ b/benchmarks/linux-unigine-sanctuary/pkg-plist
@@ -0,0 +1,7 @@
+bin/unigine-sanctuary_1024x768_windowed.sh
+bin/unigine-sanctuary_1920x1080_fullscreen.sh
+%%DATADIR%%/bin/Sanctuary
+%%DATADIR%%/bin/libUnigine_x86.so
+%%DATADIR%%/data/core.ung
+%%DATADIR%%/data/demos/sanctuary.zip
+%%DATADIR%%/data/unigine.cfg
diff --git a/benchmarks/linux-unigine-tropics/Makefile b/benchmarks/linux-unigine-tropics/Makefile
new file mode 100644
index 000000000000..8bd944fd0831
--- /dev/null
+++ b/benchmarks/linux-unigine-tropics/Makefile
@@ -0,0 +1,40 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+
+PORTNAME=	unigine-tropics
+PORTVERSION=	1.3
+CATEGORIES=	benchmarks linux
+MASTER_SITES=	https://assets.unigine.com/d/
+PKGNAMEPREFIX=	linux-
+DISTNAME=	Unigine_Tropics-${PORTVERSION}
+EXTRACT_SUFX=	.run
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Unigine GPU benchmark depicting tropical paradise
+
+ONLY_FOR_ARCHS=	amd64 i386
+ONLY_FOR_ARCHS_REASON=	precompiled, binary-only software for GNU/Linux
+
+USES=		linux
+USE_LINUX=	dri openal-soft xorglibs
+NO_BUILD=	yes
+
+do-extract:
+	@${MKDIR} ${WRKSRC}
+	@${TAIL} -n 211448 ${DISTDIR}/${DISTFILES} | ${TAR} xzf - -C ${WRKSRC}
+
+post-patch:
+# Avoid clash with other Unigine benchmarks
+.for script in 1024x768_windowed 1920x1080_fullscreen
+	@${SED} -e 's,\./bin,${DATADIR}/bin,' ${WRKSRC}/${script}.sh \
+		> ${WRKSRC}/${PORTNAME}_${script}.sh
+.endfor
+
+do-install:
+	cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/Tropics ${STAGEDIR}${DATADIR}/bin
+	${INSTALL_LIB} ${WRKSRC}/bin/libUnigine_x86.so \
+		${STAGEDIR}${DATADIR}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}*sh ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/benchmarks/linux-unigine-tropics/distinfo b/benchmarks/linux-unigine-tropics/distinfo
new file mode 100644
index 000000000000..b6daf8e63ec7
--- /dev/null
+++ b/benchmarks/linux-unigine-tropics/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500873356
+SHA256 (Unigine_Tropics-1.3.run) = fde0358b8dbf3cc72805b5092064baea3ed0a59d77a0f90e8b563a436ed38a45
+SIZE (Unigine_Tropics-1.3.run) = 58426452
diff --git a/benchmarks/linux-unigine-tropics/pkg-descr b/benchmarks/linux-unigine-tropics/pkg-descr
new file mode 100644
index 000000000000..ec3f4538c310
--- /dev/null
+++ b/benchmarks/linux-unigine-tropics/pkg-descr
@@ -0,0 +1,30 @@
+Extreme performance and stability test for PC hardware: video card,
+power supply, cooling system.  Check your rig in stock and overclocked
+modes with real-life load!  Also includes interactive experience in a
+beautiful, detailed environment.
+
+The benchmark depicts tropical paradise: waves of the infinite ocean
+leisurely rolls over the sun-splashed shores of lagoon islands.  The
+sunset paints straw huts with warm colors while the mild breeze gently
+stirs the coconut palm leaves.  Hovering high in the tranquil sky the
+gulls are watching crabs crawling on the velvety sand among the
+abandoned boats.
+
+Original version was released in 2008, the 1.3 update was out in 2010.
+
+Key features:
+
+  - Visuals powered by UNIGINE 1 Engine
+  - Support of DirectX 9, DirectX 10, DirectX 11, and OpenGL
+  - Dynamic sky with light scattering
+  - Dynamic water with a surf zone and caustics
+  - HDR rendering, real-time ambient occlusion
+  - Up to 2M polygons per frame
+  - Interactive experience with fly-through mode
+  - Stereo 3D modes: Anaglyph, Separate images, 3D Vision, iZ3D
+
+The program requires linprocfs(5) and linsysfs(5) to be mounted under
+/compat/linux/{proc,sys} to operate and writable /compat/linux/dev/shm
+directory, which is typically backed by tmpfs(5).
+
+WWW: https://benchmark.unigine.com/tropics
diff --git a/benchmarks/linux-unigine-tropics/pkg-plist b/benchmarks/linux-unigine-tropics/pkg-plist
new file mode 100644
index 000000000000..351ad75c4176
--- /dev/null
+++ b/benchmarks/linux-unigine-tropics/pkg-plist
@@ -0,0 +1,8 @@
+bin/unigine-tropics_1024x768_windowed.sh
+bin/unigine-tropics_1920x1080_fullscreen.sh
+%%DATADIR%%/bin/Tropics
+%%DATADIR%%/bin/libUnigine_x86.so
+%%DATADIR%%/data/core.ung
+%%DATADIR%%/data/demos/tropics.zip
+%%DATADIR%%/data/scripts.ung
+%%DATADIR%%/data/unigine.cfg