Lines 1-64
Link Here
|
1 |
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org> |
1 |
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
# $MCom: ports/trunk/devel/gamin/Makefile 18634 2013-07-26 10:42:35Z kwm $ |
3 |
# $MCom: ports/trunk/devel/gamin/Makefile 18634 2013-07-26 10:42:35Z kwm $ |
4 |
|
4 |
|
5 |
PORTNAME= gamin |
5 |
PORTNAME= gamin |
6 |
PORTVERSION= 0.1.10 |
6 |
PORTVERSION= 0.1.10 |
7 |
PORTREVISION?= 10 |
7 |
PORTREVISION?= 10 |
8 |
CATEGORIES?= devel |
8 |
CATEGORIES?= devel |
9 |
MASTER_SITES= http://people.gnome.org/~veillard/gamin/sources/ |
9 |
MASTER_SITES= http://people.gnome.org/~veillard/gamin/sources/ |
10 |
|
10 |
|
11 |
MAINTAINER?= ports@FreeBSD.org |
11 |
MAINTAINER?= ports@FreeBSD.org |
12 |
COMMENT?= File and directory monitoring system |
12 |
COMMENT?= File and directory monitoring system |
13 |
|
13 |
|
14 |
USES+= gettext gmake gnome libtool pathfix pkgconfig |
14 |
USES+= gettext gnome libtool pathfix pkgconfig |
15 |
USE_GNOME?= glib20 |
15 |
USE_GNOME?= glib20 |
16 |
USE_LDCONFIG= yes |
16 |
USE_LDCONFIG= yes |
17 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
18 |
CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \ |
18 |
CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \ |
19 |
--without-python |
19 |
--without-python |
20 |
CPPFLAGS+= -DHAVE_LINUX -I${LOCALBASE}/include |
20 |
CPPFLAGS+= -DHAVE_LINUX -I${LOCALBASE}/include |
21 |
LIBS+= -L${LOCALBASE}/lib |
21 |
LIBS+= -L${LOCALBASE}/lib |
22 |
INSTALL_TARGET= install-strip |
22 |
INSTALL_TARGET= install-strip |
23 |
|
23 |
|
24 |
CONFLICTS= fam-[0-9]* |
24 |
CONFLICTS= fam-[0-9]* |
25 |
|
25 |
|
26 |
.if !defined(GAMIN_SLAVE) |
26 |
.if !defined(GAMIN_SLAVE) |
27 |
OPTIONS_DEFINE= GAM_POLLER LIBINOTIFY RUN_AS_EUID |
27 |
OPTIONS_DEFINE= GAM_POLLER LIBINOTIFY RUN_AS_EUID |
28 |
OPTIONS_DEFAULT=RUN_AS_EUID |
28 |
OPTIONS_DEFAULT=RUN_AS_EUID |
29 |
GAM_POLLER_DESC=Use gamin's poller instead of kqueue's |
29 |
GAM_POLLER_DESC=Use gamin's poller instead of kqueue's |
30 |
LIBINOTIFY_DESC=Use libinotify as the FAM backend |
30 |
LIBINOTIFY_DESC=Use libinotify as the FAM backend |
31 |
RUN_AS_EUID_DESC=Drop privileges to effective user |
31 |
RUN_AS_EUID_DESC=Drop privileges to effective user |
32 |
.endif |
32 |
.endif |
33 |
|
33 |
|
34 |
.include <bsd.port.options.mk> |
34 |
.include <bsd.port.options.mk> |
35 |
|
35 |
|
36 |
.if !defined(GAMIN_SLAVE) |
36 |
.if !defined(GAMIN_SLAVE) |
37 |
.if ${PORT_OPTIONS:MGAM_POLLER} |
37 |
.if ${PORT_OPTIONS:MGAM_POLLER} |
38 |
CPPFLAGS+= -DUSE_GAMIN_POLLER=1 |
38 |
CPPFLAGS+= -DUSE_GAMIN_POLLER=1 |
39 |
.endif |
39 |
.endif |
40 |
|
40 |
|
41 |
.if ${PORT_OPTIONS:MLIBINOTIFY} |
41 |
.if ${PORT_OPTIONS:MLIBINOTIFY} |
42 |
CONFIGURE_ARGS+=--enable-inotify |
42 |
CONFIGURE_ARGS+=--enable-inotify |
43 |
LIBS+= -linotify |
43 |
LIBS+= -linotify |
44 |
LIB_DEPENDS+= libinotify.so:devel/libinotify |
44 |
LIB_DEPENDS+= libinotify.so:devel/libinotify |
45 |
.else |
45 |
.else |
46 |
CONFIGURE_ARGS+=--disable-inotify |
46 |
CONFIGURE_ARGS+=--disable-inotify |
47 |
.endif |
47 |
.endif |
48 |
.endif |
48 |
.endif |
49 |
|
49 |
|
50 |
.if ${PORT_OPTIONS:MRUN_AS_EUID} |
50 |
.if ${PORT_OPTIONS:MRUN_AS_EUID} |
51 |
CPPFLAGS+= -DRUN_AS_EUID=1 |
51 |
CPPFLAGS+= -DRUN_AS_EUID=1 |
52 |
.endif |
52 |
.endif |
53 |
|
53 |
|
54 |
post-patch: |
54 |
post-patch: |
55 |
@${REINPLACE_CMD} "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/server/gam_conf.c |
55 |
@${REINPLACE_CMD} "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/server/gam_conf.c |
56 |
|
56 |
|
57 |
.if !defined(GAMIN_SLAVE) |
57 |
.if !defined(GAMIN_SLAVE) |
58 |
regression-test: build |
58 |
regression-test: build |
59 |
@${ECHO_MSG} "===> Running gamin regression tests" |
59 |
@${ECHO_MSG} "===> Running gamin regression tests" |
60 |
@(cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
60 |
@(cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
61 |
Makefile ${MAKE_ARGS} tests) |
61 |
Makefile ${MAKE_ARGS} tests) |
62 |
.endif |
62 |
.endif |
63 |
|
63 |
|
64 |
.include <bsd.port.mk> |
64 |
.include <bsd.port.mk> |