Changeset View
Changeset View
Standalone View
Standalone View
devel/gamin/Makefile
Show All 11 Lines | |||||
COMMENT?= File and directory monitoring system | COMMENT?= File and directory monitoring system | ||||
USES+= gettext gmake libtool pathfix pkgconfig | USES+= gettext gmake libtool pathfix pkgconfig | ||||
USE_GNOME?= glib20 | USE_GNOME?= glib20 | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \ | CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \ | ||||
--without-python | --without-python | ||||
CPPFLAGS+= -DHAVE_LINUX -I${LOCALBASE}/include | CPPFLAGS+= -DHAVE_LINUX | ||||
LIBS+= -L${LOCALBASE}/lib | |||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
CONFLICTS= fam-[0-9]* | CONFLICTS= fam-[0-9]* | ||||
.if !defined(GAMIN_SLAVE) | .if !defined(GAMIN_SLAVE) | ||||
OPTIONS_DEFINE= GAM_POLLER LIBINOTIFY RUN_AS_EUID | OPTIONS_DEFINE= GAM_POLLER LIBINOTIFY RUN_AS_EUID | ||||
OPTIONS_DEFAULT=RUN_AS_EUID | OPTIONS_DEFAULT=RUN_AS_EUID | ||||
GAM_POLLER_DESC=Use gamin's poller instead of kqueue's | GAM_POLLER_DESC=Use gamin's poller instead of kqueue's | ||||
LIBINOTIFY_DESC=Use libinotify as the FAM backend | LIBINOTIFY_DESC=Use libinotify as the FAM backend | ||||
RUN_AS_EUID_DESC=Drop privileges to effective user | RUN_AS_EUID_DESC=Drop privileges to effective user | ||||
.endif | .endif | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if !defined(GAMIN_SLAVE) | .if !defined(GAMIN_SLAVE) | ||||
.if ${PORT_OPTIONS:MGAM_POLLER} | .if ${PORT_OPTIONS:MGAM_POLLER} | ||||
CPPFLAGS+= -DUSE_GAMIN_POLLER=1 | CPPFLAGS+= -DUSE_GAMIN_POLLER=1 | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MLIBINOTIFY} | .if ${PORT_OPTIONS:MLIBINOTIFY} | ||||
CONFIGURE_ARGS+=--enable-inotify | CONFIGURE_ARGS+=--enable-inotify | ||||
LIBS+= -linotify | CPPFLAGS+= `pkg-config --cflags libinotify 2>/dev/null` | ||||
LIBS+= `pkg-config --libs libinotify 2>/dev/null` | |||||
LIB_DEPENDS+= libinotify.so:devel/libinotify | LIB_DEPENDS+= libinotify.so:devel/libinotify | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-inotify | CONFIGURE_ARGS+=--disable-inotify | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MRUN_AS_EUID} | .if ${PORT_OPTIONS:MRUN_AS_EUID} | ||||
CPPFLAGS+= -DRUN_AS_EUID=1 | CPPFLAGS+= -DRUN_AS_EUID=1 | ||||
Show All 13 Lines |