git: b9a0ff1ff036 - main - benchmarks/stress-ng: Update to 0.15.00
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Nov 2022 22:07:30 UTC
The branch main has been updated by pizzamig: URL: https://cgit.FreeBSD.org/ports/commit/?id=b9a0ff1ff0369d5ddbab929c2852f267da43373b commit b9a0ff1ff0369d5ddbab929c2852f267da43373b Author: Luca Pizzamiglio <pizzamig@FreeBSD.org> AuthorDate: 2022-11-20 22:06:09 +0000 Commit: Luca Pizzamiglio <pizzamig@FreeBSD.org> CommitDate: 2022-11-20 22:06:09 +0000 benchmarks/stress-ng: Update to 0.15.00 Add more dependencies jpeg and hashxx Fix opt-out Remove of obsolete patch --- benchmarks/stress-ng/Makefile | 39 ++++++++++++++++++++++++------- benchmarks/stress-ng/distinfo | 6 ++--- benchmarks/stress-ng/files/patch-Makefile | 11 --------- 3 files changed, 34 insertions(+), 22 deletions(-) diff --git a/benchmarks/stress-ng/Makefile b/benchmarks/stress-ng/Makefile index b9a6e72a2168..f12f9d149ce2 100644 --- a/benchmarks/stress-ng/Makefile +++ b/benchmarks/stress-ng/Makefile @@ -1,7 +1,6 @@ PORTNAME= stress-ng DISTVERSIONPREFIX= V -DISTVERSION= 0.14.06 -PORTREVISION= 0 +DISTVERSION= 0.15.00 CATEGORIES= benchmarks MAINTAINER= pizzamig@FreeBSD.org @@ -11,7 +10,7 @@ WWW= http://kernel.ubuntu.com/~cking/stress-ng/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= compiler:c11 gmake localbase:ldflags +USES= compiler:c11 gmake jpeg localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= ColinIanKing @@ -19,27 +18,51 @@ ALL_TARGET= # empty PLIST_FILES= bin/stress-ng man/man1/stress-ng.1.gz -OPTIONS_DEFINE= JUDY LIBINOTIFY +OPTIONS_DEFINE= JUDY LIBINOTIFY XXHASH OPTIONS_DEFINE_amd64= INTELIPSEC -OPTIONS_DEFAULT= JUDY LIBINOTIFY +OPTIONS_DEFAULT= JUDY LIBINOTIFY XXHASH OPTIONS_DEFAULT_amd64= INTELIPSEC INTELIPSEC_DESC= Enable support for Intel's IPsec library JUDY_DESC= Enable support for (lib)Judy LIBINOTIFY_DESC= Enable support for libinotify +XXHASH_DESC= Enable support for libxxhash INTELIPSEC_LIB_DEPENDS= libIPSec_MB.so:security/intel-ipsec-mb -INTELIPSEC_MAKE_ARGS_OFF= HAVE_LIB_IPSEC_MB=0 JUDY_LIB_DEPENDS= libJudy.so:devel/judy -JUDY_MAKE_ARGS_OFF= HAVE_LIB_JUDY=0 LIBINOTIFY_LIB_DEPENDS= libinotify.so:devel/libinotify LIBINOTIFY_LDFLAGS= -linotify -LIBINOTIFY_MAKE_ARGS_OFF= HAVE_SYS_INOTIFY_H=0 + +XXHASH_LIB_DEPENDS= libxxhash.so:devel/xxhash +XXHASH_LDFLAGS= -lxxhash MAKE_ARGS= VERBOSE=1 +pre-patch: + ${MKDIR} ${WRKSRC}/configs + +#to dsiable Intel IPSEC detection +post-patch-INTELIPSEC-off: + ${TOUCH} ${WRKSRC}/configs/HAVE_LIB_IPSEC_MB + ${TOUCH} ${WRKSRC}/configs/HAVE_INTEL_IPSEC_MB_H + +#to dsiable judy detection +post-patch-JUDY-off: + ${TOUCH} ${WRKSRC}/configs/HAVE_JUDY_H + ${TOUCH} ${WRKSRC}/configs/HAVE_LIB_JUDY + +#to dsiable libinotify detection +post-patch-LIBINOTIFY-off: + ${TOUCH} ${WRKSRC}/configs/HAVE_INOTIFY + ${TOUCH} ${WRKSRC}/configs/HAVE_SYS_INOTIFY + +# To disable libxxhash +post-patch-XXHASH-off: + ${TOUCH} ${WRKSRC}/configs/HAVE_LIB_XXHASH + ${TOUCH} ${WRKSRC}/configs/HAVE_XXHASH_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 3edf39b43bd1..2c4619009556 100644 --- a/benchmarks/stress-ng/distinfo +++ b/benchmarks/stress-ng/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1664374944 -SHA256 (ColinIanKing-stress-ng-V0.14.06_GH0.tar.gz) = 54f6c3f84b20efedafd3394ec168e53632a685cfdd76f24270653e898d9ede08 -SIZE (ColinIanKing-stress-ng-V0.14.06_GH0.tar.gz) = 3705069 +TIMESTAMP = 1668965663 +SHA256 (ColinIanKing-stress-ng-V0.15.00_GH0.tar.gz) = cdb18c7dfcdeb0ff2d716c141341d1b2ca6051e4338cee3a555a65f26958c256 +SIZE (ColinIanKing-stress-ng-V0.15.00_GH0.tar.gz) = 3743762 diff --git a/benchmarks/stress-ng/files/patch-Makefile b/benchmarks/stress-ng/files/patch-Makefile deleted file mode 100644 index 3f95f0332201..000000000000 --- a/benchmarks/stress-ng/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.orig 2022-09-13 21:31:56 UTC -+++ Makefile -@@ -21,7 +21,7 @@ VERSION=0.14.04 - # - # Codename "annus horribilis" - # --CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu99 -+CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu11 -pipe - - # - # Pedantic flags