View | Details | Raw Unified | Return to bug 165859
Collapse All | Expand All

(-)Makefile (-8 / +4 lines)
Lines 13-18 Link Here
13
13
14
MAINTAINER=	cy@FreeBSD.org
14
MAINTAINER=	cy@FreeBSD.org
15
COMMENT=	A systems administration tool for networks
15
COMMENT=	A systems administration tool for networks
16
16
LATEST_LINK=	cfengine3
17
LATEST_LINK=	cfengine3
17
FETCH_BEFORE_ARGS=   -o ${DISTDIR}/${DISTFILES}
18
FETCH_BEFORE_ARGS=   -o ${DISTDIR}/${DISTFILES}
18
19
Lines 26-49 Link Here
26
DOCSDIR=	${PREFIX}/share/doc/cfengine3
27
DOCSDIR=	${PREFIX}/share/doc/cfengine3
27
CONFIGURE_ARGS=	--docdir=${DOCSDIR} \
28
CONFIGURE_ARGS=	--docdir=${DOCSDIR} \
28
		--htmldir=${DOCSDIR}/html \
29
		--htmldir=${DOCSDIR}/html \
29
		--with-berkeleydb=${LOCALBASE}
30
		--with-berkeleydb=${LOCALBASE} \
31
		--with-pcre=${LOCALBASE}
32
LIB_DEPENDS+=   pcre.1:${PORTSDIR}/devel/pcre
30
33
31
CONFIGURE_ENV+=	BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \
34
CONFIGURE_ENV+=	BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \
32
		BERKELEY_DB_LDFLAGS=-L${BDB_LIB_DIR} \
35
		BERKELEY_DB_LDFLAGS=-L${BDB_LIB_DIR} \
33
		BERKELEY_DB_LIB=-l${BDB_LIB_NAME}
36
		BERKELEY_DB_LIB=-l${BDB_LIB_NAME}
34
37
35
OPTIONS=	PCRE	"Enable Perl-compatible regular expressions"		on
36
.include <bsd.port.pre.mk>
38
.include <bsd.port.pre.mk>
37
39
38
.if defined(WITH_PCRE)
39
LIB_DEPENDS+=   pcre.1:${PORTSDIR}/devel/pcre
40
CONFIGURE_ARGS+=	--with-pcre=${LOCALBASE}
41
.endif
42
43
MAN8=	cf-agent.8	cf-key.8	cf-monitord.8	\
40
MAN8=	cf-agent.8	cf-key.8	cf-monitord.8	\
44
	cf-report.8	cf-serverd.8	cf-execd.8	\
41
	cf-report.8	cf-serverd.8	cf-execd.8	\
45
	cf-know.8	cf-promises.8	cf-runagent.8
42
	cf-know.8	cf-promises.8	cf-runagent.8
46
	
47
43
48
post-patch:
44
post-patch:
49
		@${REINPLACE_CMD} -e '/^htmldir/s!=.*!= @htmldir@!'\
45
		@${REINPLACE_CMD} -e '/^htmldir/s!=.*!= @htmldir@!'\

Return to bug 165859