summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2006-11-06 17:44:20 +0000
committeroliver <oliver@FreeBSD.org>2006-11-06 17:44:20 +0000
commit5403a0845427c4f872d7b91d6274d84423ec2247 (patch)
treea052b8020faa01e6bbd7c48045b3d4a8a7cb985c /mail
parent5eddb04805d699df56fc2dfc998b4a5fc0522bb6 (diff)
downloadFreeBSD-ports-5403a0845427c4f872d7b91d6274d84423ec2247.zip
FreeBSD-ports-5403a0845427c4f872d7b91d6274d84423ec2247.tar.gz
- OPTIONify FAM support
- fix compilation with FAM support enabled Noted by: Jason Woofenden <jason@jasonwoof.com>
Diffstat (limited to 'mail')
-rw-r--r--mail/sqwebmail/Makefile14
1 files changed, 13 insertions, 1 deletions
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' \
OpenPOWER on IntegriCloud