diff options
author | ume <ume@FreeBSD.org> | 2003-01-02 03:34:41 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-01-02 03:34:41 +0800 |
commit | 477ce6dedb3aa1c252c07b37f55c3c690ccd6a67 (patch) | |
tree | 810ffa9d9ff7aec99d4b8785b95729651a67809b /mail/cyrus-imapd24/Makefile | |
parent | 4e365d363a952b3f1d9702e30fa0023cd4611c04 (diff) | |
download | freebsd-ports-gnome-477ce6dedb3aa1c252c07b37f55c3c690ccd6a67.tar.gz freebsd-ports-gnome-477ce6dedb3aa1c252c07b37f55c3c690ccd6a67.tar.zst freebsd-ports-gnome-477ce6dedb3aa1c252c07b37f55c3c690ccd6a67.zip |
- Use PERL_LEVEL to distinguish installed perl version.
- Add WITH_SKIPLIST_MBOX to enable skiplist mboxlist.
- Add WITH_MURDER to enable murder.
Diffstat (limited to 'mail/cyrus-imapd24/Makefile')
-rw-r--r-- | mail/cyrus-imapd24/Makefile | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile index 277f74b3f8d4..308f219c740e 100644 --- a/mail/cyrus-imapd24/Makefile +++ b/mail/cyrus-imapd24/Makefile @@ -21,7 +21,6 @@ LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 \ db3.3:${PORTSDIR}/databases/db3 BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend \ ${LOCALBASE}/sbin/saslauthd:${PORTSDIR}/security/cyrus-sasl2 -RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp USE_PERL5= yes GNU_CONFIGURE= YES @@ -32,6 +31,19 @@ CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \ --with-auth=unix \ --with-com_err +.if defined(WITH_SKIPLIST_MBOX) +CONFIGURE_ARGS+=--with-mboxlist-db=skiplist +.endif + +.if defined(WITH_MURDER) +CONFIGURE_ARGS+=--enable-murder +CFLAGS+= ${PTHREAD_CFLAGS} +MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS} +PLIST_SUB+= MURDER="" +.else +PLIST_SUB+= MURDER="@comment " +.endif + .if defined(WITH_SNMP) # It seems not compilable due to lack of auto_nlist_value() in libucdagent. LIB_DEPENDS+= netsnmp.5:${PORTSDIR}/net/net-snmp @@ -59,7 +71,10 @@ DOCS= altnamespace anoncvs bugs changes faq feedback index \ .include <bsd.port.pre.mk> -.if ${OSVERSION} < 500000 +.if ${PERL_LEVEL} < 500800 +RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp +.endif +.if ${PERL_LEVEL} < 500600 RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Pod/Parser.pm:${PORTSDIR}/textproc/p5-PodParser .endif @@ -68,7 +83,7 @@ post-patch: > ${WRKSRC}/tools/mkimap.new @${MV} ${WRKSRC}/tools/mkimap.new ${WRKSRC}/tools/mkimap @${CP} ${WRKSRC}/man/quota.8 ${WRKSRC}/man/cyrquota.8 -.if ${OSVERSION} < 500000 +.if ${PERL_LEVEL} < 500600 @${SED} -e "s|exec perl -x|exec perl -I${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} -x|" \ ${WRKSRC}/perl/sieve/scripts/sieveshell.pl \ > ${WRKSRC}/perl/sieve/scripts/sieveshell.pl.new |