Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2021 21:18:17 +0000 (UTC)
From:      Luca Pizzamiglio <pizzamig@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561869 - head/benchmarks/stress-ng
Message-ID:  <202101172118.10HLIHvF026693@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pizzamig
Date: Sun Jan 17 21:18:16 2021
New Revision: 561869
URL: https://svnweb.freebsd.org/changeset/ports/561869

Log:
  benchmarks/stress-ng: add option to disable inotify support
  
  The option LIBINOTIFY, on by default, can be used to not build inotify
  stressor and install its dependency.
  
  No portrevision bump needed, inotify support was already enable.

Modified:
  head/benchmarks/stress-ng/Makefile

Modified: head/benchmarks/stress-ng/Makefile
==============================================================================
--- head/benchmarks/stress-ng/Makefile	Sun Jan 17 20:36:29 2021	(r561868)
+++ head/benchmarks/stress-ng/Makefile	Sun Jan 17 21:18:16 2021	(r561869)
@@ -14,16 +14,19 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 BROKEN_aarch64=	Fails to link: missing sbrk
 
-LIB_DEPENDS=	libinotify.so:devel/libinotify
-
 USES=		compiler:c11 gmake tar:xz
 
 ALL_TARGET=	# empty
 
 PLIST_FILES=	bin/stress-ng man/man1/stress-ng.1.gz
 
-CFLAGS	+=	-I${LOCALBASE}/include
-LDFLAGS	+=	-L${LOCALBASE}/lib -linotify
+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
 
 post-patch:
 	${REINPLACE_CMD} -e \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101172118.10HLIHvF026693>