2015-09-25 17:14:18 +02:00
|
|
|
PORTNAME= stress-ng
|
2021-10-17 14:23:20 +02:00
|
|
|
DISTVERSIONPREFIX= V
|
2021-12-28 11:12:39 +01:00
|
|
|
DISTVERSION= 0.13.09
|
2021-11-01 11:43:10 +01:00
|
|
|
PORTREVISION= 0
|
2015-09-25 17:14:18 +02:00
|
|
|
CATEGORIES= benchmarks
|
|
|
|
|
2017-08-29 15:05:21 +02:00
|
|
|
MAINTAINER= pizzamig@FreeBSD.org
|
2015-09-25 17:14:18 +02:00
|
|
|
COMMENT= Stress test benchmarks
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2015-09-25 17:14:18 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-11-10 02:21:43 +01:00
|
|
|
BROKEN_aarch64= Fails to link: missing sbrk
|
|
|
|
|
2017-12-28 11:51:49 +01:00
|
|
|
USES= compiler:c11 gmake tar:xz
|
2021-10-17 14:23:20 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ColinIanKing
|
2018-10-08 15:11:14 +02:00
|
|
|
|
2015-09-25 17:14:18 +02:00
|
|
|
ALL_TARGET= # empty
|
|
|
|
|
|
|
|
PLIST_FILES= bin/stress-ng man/man1/stress-ng.1.gz
|
|
|
|
|
2021-01-17 22:18:16 +01:00
|
|
|
OPTIONS_DEFINE= LIBINOTIFY
|
|
|
|
OPTIONS_DEFAULT= LIBINOTIFY
|
|
|
|
LIBINOTIFY_DESC= Install the kevent based libinotify to enable its stress
|
|
|
|
|
|
|
|
LIBINOTIFY_CFLAGS += -I${LOCALBASE}/include
|
|
|
|
LIBINOTIFY_LDFLAGS += -L${LOCALBASE}/lib -linotify
|
|
|
|
LIBINOTIFY_LIB_DEPENDS= libinotify.so:devel/libinotify
|
2021-01-16 00:37:53 +01:00
|
|
|
|
2018-07-23 17:52:54 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's/int main(void)/int main(void) __attributes__((noinline))/' \
|
|
|
|
${WRKSRC}/stress-atomic.c
|
2018-01-27 13:44:00 +01:00
|
|
|
|
2015-09-25 17:14:18 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/stress-ng ${STAGEDIR}${PREFIX}/bin
|
2016-03-24 12:18:15 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/stress-ng.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
2015-09-25 17:14:18 +02:00
|
|
|
|
2018-07-23 17:52:54 +02:00
|
|
|
.include <bsd.port.mk>
|