From 5403a0845427c4f872d7b91d6274d84423ec2247 Mon Sep 17 00:00:00 2001 From: oliver Date: Mon, 6 Nov 2006 17:44:20 +0000 Subject: - OPTIONify FAM support - fix compilation with FAM support enabled Noted by: Jason Woofenden --- mail/sqwebmail/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'mail/sqwebmail') diff --git a/mail/sqwebmail/Makefile b/mail/sqwebmail/Makefile index 675a997b1..c2ec249 100644 --- a/mail/sqwebmail/Makefile +++ b/mail/sqwebmail/Makefile @@ -22,6 +22,7 @@ RUN_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre OPTIONS= CACHEDIR "Cache logins" on \ + FAM "Build in fam support for IDLE command" on \ GDBM "Use gdbm db instead of system bdb" off \ GZIP "Compress messages with gzip" on \ HTTPS "Generate https:// URLs for all accesses" off \ @@ -106,6 +107,10 @@ INSTALL_TARGET= install-strip install-configure .include "${.CURDIR}/../../security/courier-authlib/Makefile.dep" .endif +.if defined(WITH_FAM) +USE_FAM= yes +.endif + .if defined(WITH_RCORDER) USE_RCORDER= sqwebmail-sqwebmaild .else @@ -198,13 +203,20 @@ CONFIGURE_ARGS+=--with-db=db .endif post-patch: +.if !defined(WITH_FAM) + @${REINPLACE_CMD} -e 's|$$LIBFAM||g; s|HAVE_FAM|DO_NOT_HAVE_FAM|g' \ + ${WRKSRC}/maildir/configure +.endif @${REINPLACE_CMD} -e 's|LIBPCRE=-lpcre|LIBPCRE="-L${LOCALBASE}/lib -lpcre"|g' \ ${WRKSRC}/maildir/configure + @${REINPLACE_CMD} -e 's|@echo|echo|g' ${WRKSRC}/maildir/configure + @${REINPLACE_CMD} -e 's|-lpcre|-L${LOCALBASE}/lib &|g' \ ${WRKSRC}/sqwebmail/Makefile.in - @${REINPLACE_CMD} -e 's|\$$(testmaildirfilter_LDADD)|& \$$(LIBPCRE)|g' \ + @${REINPLACE_CMD} -e 's|\$$(testmaildirfilter_LDADD)|& \$$(LIBPCRE)|g; \ + s|$$(LINK) $$(maildirkw_LDFLAGS)|$$(CXXLINK) $$(maildirkw_LDFLAGS)|' \ ${WRKSRC}/maildir/Makefile.in @${REINPLACE_CMD} -e 's|^case x$$lockmethod in|${TEST} \&\& &|g' \ -- cgit v1.1