1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

Add optional libinotify support (default disabled) and fix the build

if devel/libinotify is installed.

PR:		164756
Submitted by:	sunpoet
This commit is contained in:
Joe Marcus Clarke 2012-02-12 17:03:59 +00:00
parent d9a8836733
commit 79bed2eee8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291058

View File

@ -30,7 +30,8 @@ CONFLICTS= fam-[0-9]*
GNU_CONFIGURE= yes
.if !defined(GAMIN_SLAVE)
OPTIONS= GAM_POLLER "Use gamin's poller instead of kqueue's" off
OPTIONS= GAM_POLLER "Use gamin's poller instead of kqueue's" off \
LIBINOTIFY "Use libinotify as the FAM backend" off
.endif
.include <bsd.port.pre.mk>
@ -39,6 +40,14 @@ OPTIONS= GAM_POLLER "Use gamin's poller instead of kqueue's" off
.if defined(WITH_GAM_POLLER)
CPPFLAGS+= -DUSE_GAMIN_POLLER=1
.endif
.if defined(WITH_LIBINOTIFY)
CONFIGURE_ARGS+=--enable-inotify
LDFLAGS+= -L${LOCALBASE}/lib -linotify
LIB_DEPENDS+= inotify.0:${PORTSDIR}/devel/libinotify
.else
CONFIGURE_ARGS+=--disable-inotify
.endif
.endif
post-patch: