git: 7ea6fd56f213 - main - benchmarks/stress-ng: Update to 0.15.06

From: Luca Pizzamiglio <pizzamig_at_FreeBSD.org>
Date: Sun, 26 Mar 2023 10:46:53 UTC
The branch main has been updated by pizzamig:

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

commit 7ea6fd56f21324b895bf41a814ade638992b55fc
Author:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
AuthorDate: 2023-03-26 10:45:49 +0000
Commit:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
CommitDate: 2023-03-26 10:45:49 +0000

    benchmarks/stress-ng: Update to 0.15.06
    
    While here, fix stress-gpu by adding GL support
---
 benchmarks/stress-ng/Makefile | 22 ++++++++++++++++++++--
 benchmarks/stress-ng/distinfo |  6 +++---
 2 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/benchmarks/stress-ng/Makefile b/benchmarks/stress-ng/Makefile
index 7e0b01885323..1222fe922829 100644
--- a/benchmarks/stress-ng/Makefile
+++ b/benchmarks/stress-ng/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	stress-ng
 DISTVERSIONPREFIX=	V
-DISTVERSION=	0.15.04
+DISTVERSION=	0.15.06
 CATEGORIES=	benchmarks
 
 MAINTAINER=	pizzamig@FreeBSD.org
@@ -18,11 +18,12 @@ ALL_TARGET=	# empty
 
 PLIST_FILES=	bin/stress-ng man/man1/stress-ng.1.gz
 
-OPTIONS_DEFINE=		JUDY LIBINOTIFY XXHASH
+OPTIONS_DEFINE=		GPU JUDY LIBINOTIFY XXHASH
 OPTIONS_DEFINE_amd64=	INTELIPSEC
 OPTIONS_DEFAULT=	JUDY LIBINOTIFY XXHASH
 OPTIONS_DEFAULT_amd64=	INTELIPSEC
 
+GPU_DESC=	Enable support for GPU stressor (add GL)
 INTELIPSEC_DESC=	Enable support for Intel's IPsec library
 JUDY_DESC=		Enable support for (lib)Judy
 LIBINOTIFY_DESC=	Enable support for libinotify
@@ -38,8 +39,16 @@ LIBINOTIFY_LDFLAGS=		-linotify
 XXHASH_LIB_DEPENDS=	libxxhash.so:devel/xxhash
 XXHASH_LDFLAGS=	-lxxhash
 
+GPU_USES=	gl
+
 MAKE_ARGS=	VERBOSE=1
 
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGPU}
+USE_GL=	egl glesv2 gbm
+.endif
+
 pre-patch:
 	${MKDIR} ${WRKSRC}/configs
 
@@ -63,6 +72,15 @@ post-patch-XXHASH-off:
 	${TOUCH} ${WRKSRC}/configs/HAVE_LIB_XXHASH
 	${TOUCH} ${WRKSRC}/configs/HAVE_XXHASH_H
 
+post-patch-GPU-off:
+	${TOUCH} ${WRKSRC}/configs/HAVE_LIB_EGL
+	${TOUCH} ${WRKSRC}/configs/HAVE_EGL_H
+	${TOUCH} ${WRKSRC}/configs/HAVE_EGL_EXT_H
+	${TOUCH} ${WRKSRC}/configs/HAVE_LIB_GLES2
+	${TOUCH} ${WRKSRC}/configs/HAVE_GLES2_H
+	${TOUCH} ${WRKSRC}/configs/HAVE_LIB_GBM
+	${TOUCH} ${WRKSRC}/configs/HAVE_GBM_H
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/stress-ng ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/stress-ng.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
diff --git a/benchmarks/stress-ng/distinfo b/benchmarks/stress-ng/distinfo
index c01518a6a009..a8e4df79cfa2 100644
--- a/benchmarks/stress-ng/distinfo
+++ b/benchmarks/stress-ng/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1676557059
-SHA256 (ColinIanKing-stress-ng-V0.15.04_GH0.tar.gz) = 92922b979b5ca6ee05b03fd792c32a0b25a01fea6161b418b5e672c64ffb549f
-SIZE (ColinIanKing-stress-ng-V0.15.04_GH0.tar.gz) = 3797315
+TIMESTAMP = 1679824033
+SHA256 (ColinIanKing-stress-ng-V0.15.06_GH0.tar.gz) = c38cefcf0a83f6c65aed7c36e57a9a1ee8373418ef71cf089a75b0661dcd4623
+SIZE (ColinIanKing-stress-ng-V0.15.06_GH0.tar.gz) = 3813785