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:
parent
d9a8836733
commit
79bed2eee8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291058
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user