Index: head/mail/mutt/Makefile =================================================================== --- head/mail/mutt/Makefile (revision 405888) +++ head/mail/mutt/Makefile (revision 405889) @@ -1,454 +1,338 @@ # Created by: Udo Schweigert # $FreeBSD$ PORTNAME= mutt PORTVERSION= 1.5.24 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES+= mail ipv6 MASTER_SITES= ftp://ftp.mutt.org/mutt/ \ ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \ https://bitbucket.org/mutt/mutt/downloads/ \ ftp://ftp.demon.co.uk/pub/mirrors/mutt/ \ http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ - http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ - http://www3.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ - ftp://ftp.mutt.org.ua/pub/mutt/mutt-${VVV_PATCH_VERSION}/:vvv \ - ftp://ftp3.mutt.org.ua/pub/mutt/mutt-${VVV_PATCH_VERSION}/:vvv \ - http://www.spinnaker.de/mutt/compressed/:rr \ - http://lunar-linux.org/~tchan/mutt/:tchan + http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv DISTFILES= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} PATCH_SITES+= http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ - http://www3.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ - ftp://ftp.mutt.org.ua/pub/mutt/mutt-${VVV_PATCH_VERSION}/:vvv \ - ftp://ftp3.mutt.org.ua/pub/mutt/mutt-${VVV_PATCH_VERSION}/:vvv \ - http://home.woolridge.ca/mutt/patches/:dw \ - http://www.spinnaker.de/mutt/compressed/:rr \ - http://www.emaillab.org/mutt/${AC_PATCH_VERSION}/:jp + http://home.woolridge.ca/mutt/patches/:dw MAINTAINER?= udo.schweigert@siemens.com COMMENT?= The Mongrel of Mail User Agents (development version) CONFLICTS?= ja-mutt-[0-9]* ja-mutt-devel-[0-9]* mutt-1.4* mutt-devel-lite-[0-9]* mutt-lite-[0-9]* zh-mutt-devel-[0-9]* DIST_SUBDIR= mutt DOCSDIR?= ${PREFIX}/share/doc/mutt EXAMPLESDIR?= ${PREFIX}/share/examples/mutt DATADIR?= ${PREFIX}/share/mutt CONFIGURE_ENV= CC="${CC} -I${LOCALBASE}/include" CONFIGURE_ARGS= --disable-fcntl --with-ssl=${OPENSSLBASE} \ --with-docdir=${DOCSDIR} --sysconfdir=${PREFIX}/etc \ --enable-external-dotlock --enable-pop --enable-imap \ --disable-warnings USES+= cpe shebangfix SHEBANG_FILES= doc/gen-map-doc smime_keys.pl contrib/smime_keys_test.pl .if defined(MUTT_CONFIGURE_ARGS) CONFIGURE_ARGS+= ${MUTT_CONFIGURE_ARGS} .endif USE_AUTOTOOLS= automake autoconf AUTOMAKE_ARGS= --add-missing --foreign USE_OPENSSL= yes +OPTIONS_SUB= yes + .if defined (MUTT_LITE) -LITE= YES +LITE= yes .endif + .if defined (LITE) OPTIONS_UNSET= NLS DOCS EXAMPLES .else OPTIONS_DEFINE= COMPRESSED_FOLDERS SASL DEBUG DOCS EXAMPLES FLOCK \ GPGME GREETING_PATCH GSSAPI HTML ICONV IDN IFDEF_PATCH \ IMAP_HEADER_CACHE LOCALES_FIX MAILBOX_MANPAGES \ MAILDIR_HEADER_CACHE MAILDIR_MTIME_PATCH \ MIXMASTER NLS NNTP PARENT_CHILD_MATCH_PATCH \ QUOTE_PATCH REVERSE_REPLY_PATCH SIDEBAR_PATCH \ SIGNATURE_MENU SMART_DATE SMIME_OUTLOOK_COMPAT SMTP \ - TOKYOCABINET TRASH_PATCH XML + TOKYOCABINET TRASH_PATCH URLVIEW XML OPTIONS_SINGLE= SCREEN OPTIONS_RADIO= SPELL OPTIONS_RADIO_SPELL= ASPELL ISPELL OPTIONS_SINGLE_SCREEN= NCURSES SLANG COMPRESSED_FOLDERS_DESC= Compressed folders SASL_DESC= SASL authentication DEBUG_DESC= Debugging capabilities FLOCK_DESC= flock() usage GPGME_DESC= Gpgme interface GREETING_PATCH_DESC= Greeting support GSSAPI_DESC= Use the gss API HTML_DESC= HTML documentation IFDEF_PATCH_DESC= ifdef feature IMAP_HEADER_CACHE_DESC= IMAP header cache LOCALES_FIX_DESC= Locales fix MAILBOX_MANPAGES_DESC= Install mbox.5/mmdf.5 manpages MAILDIR_HEADER_CACHE_DESC= Maildir header cache MAILDIR_MTIME_PATCH_DESC= Maildir mtime patch MBOX_HOOK_PATCH_DESC= Enhanced mbox-hook MIXMASTER_DESC= Mixmaster support NCURSES_DESC= Ncurses support NLS_DESC= Native language support PARENT_CHILD_MATCH_PATCH_DESC= Parent/child match QUOTE_PATCH_DESC= Extended quoting REVERSE_REPLY_PATCH_DESC= Reverse_reply SIDEBAR_PATCH_DESC= Sidebar support SIGNATURE_MENU_DESC= Signature menu SLANG_DESC= SLANG support SMART_DATE_DESC= Dynamic date formatting with "%@" SMIME_OUTLOOK_COMPAT_DESC= SMIME outlook compatibility SMTP_DESC= SMTP relay support TOKYOCABINET_DESC= Use tokyocabinet instead of Berkley DB TRASH_PATCH_DESC= Trash folder support +URLVIEW_DESC= Use urlview for the URL selector menu XML_DESC= Use XML tools for rebuilding documentation OPTIONS_DEFAULT= COMPRESSED_FOLDERS HTML ICONV IDN IFDEF_PATCH \ IMAP_HEADER_CACHE LOCALES_FIX MAILBOX_MANPAGES \ MAILDIR_HEADER_CACHE MAILDIR_MTIME_PATCH NLS \ NCURSES PARENT_CHILD_MATCH_PATCH QUOTE_PATCH \ REVERSE_REPLY_PATCH SMART_DATE SMIME_OUTLOOK_COMPAT \ - SASL SMTP TRASH_PATCH XML + SASL SMTP TRASH_PATCH URLVIEW XML .endif -.include +RUN_DEPENDS+= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support -DW_PATCH_VERSION= 1.5.6 -AC_PATCH_VERSION= 1.5.9 -DW_MBOX_PATCH_VERSION= 1.5.18 -.if !defined(VVV_PATCH_VERSION) -VVV_PATCH_VERSION= ${PORTVERSION} +.if !defined (LITE) +ASPELL_BUILD_DEPENDS= aspell:${PORTSDIR}/textproc/aspell +ASPELL_RUN_DEPENDS= aspell:${PORTSDIR}/textproc/aspell +ISPELL_BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/aspell-ispell +ISPELL_RUN_DEPENDS= ispell:${PORTSDIR}/textproc/aspell-ispell +URLVIEW_RUN_DEPENDS= urlview:${PORTSDIR}/textproc/urlview .endif -.if !defined(RR_PATCH_VERSION) -RR_PATCH_VERSION= ${PORTVERSION} -.endif -.if !defined(DW_PATCH_VERSION) -DW_PATCH_VERSION= ${PORTVERSION} -.endif -.if !defined(DW_MBOX_PATCH_VERSION) -DW_MBOX_PATCH_VERSION= ${DW_PATCH_VERSION} -.endif -.if !defined(AC_PATCH_VERSION) -AC_PATCH_VERSION= ${PORTVERSION} -.endif .if defined (LITE) PKGNAMESUFFIX= -lite -PLIST_SUB+= MBOXMAN="" +PLIST_SUB+= MAILBOX_MANPAGES="" .endif -# XXX -# this should be done automagically by aclocal but .... -# for now, this will have to do -pre-build:: - @${REINPLACE_CMD} -E -e "s|^(ACLOCAL = ).+|\1${ACLOCAL}|" \ - -e "s|^(AUTOCONF = ).+|\1${AUTOCONF}|" \ - -e "s|^(AUTOMAKE = ).+|\1${AUTOMAKE}|" \ - -e "s|^(AUTOHEADER = ).+|\1${AUTOHEADER}|" \ - ${BUILD_WRKSRC}/Makefile +DEBUG_CONFIGURE_ON= --enable-debug -RUN_DEPENDS+= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support +# Handle ncurses/ncurses-port/slang +SLANG_CONFIGURE_ON= --with-slang=${LOCALBASE} +SLANG_LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 +SLANG_VARS= PKGMESSAGE=${FILESDIR}/pkg-message.slang -.if !defined (LITE) -.if ${PORT_OPTIONS:MASPELL} -BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell -RUN_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell -.elif ${PORT_OPTIONS:MISPELL} -BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/aspell-ispell -RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/aspell-ispell -.endif -.if defined(PACKAGE_BUILDING) -RUN_DEPENDS+= urlview:${PORTSDIR}/textproc/urlview -.endif -.endif +NCURSES_USES= ncurses -# Handle ncurses/ncurses-port/slang -.if ${PORT_OPTIONS:MSLANG} -CONFIGURE_ARGS+= --with-slang=${LOCALBASE} -LIB_DEPENDS+= libslang.so:${PORTSDIR}/devel/libslang2 -.endif +NLS_USES= gettext +NLS_CONFIGURE_OFF= --disable-nls -.if ${PORT_OPTIONS:MNCURSES} -USES+= ncurses -.endif +ICONV_USES= iconv:translit +ICONV_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG} +ICONV_CONFIGURE_OFF= --disable-iconv -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.endif +ASPELL_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-aspell +##PARENT_CHILD_MATCH_PATCH_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-parent-child-match +REVERSE_REPLY_PATCH_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-reverse_reply -.if ${PORT_OPTIONS:MSASL} -LIB_DEPENDS+= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 -CONFIGURE_ARGS+= --with-sasl=${LOCALBASE} -.endif +SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 +SASL_CONFIGURE_ON= --with-sasl=${LOCALBASE} -.if ${PORT_OPTIONS:MMIXMASTER} -# BUILD_DEPENDS+= mixmaster:${PORTSDIR}/mail/mixmaster -RUN_DEPENDS+= mixmaster:${PORTSDIR}/mail/mixmaster -CONFIGURE_ARGS+= --with-mixmaster=${LOCALBASE} -.endif +#MIXMASTER_BUILD_DEPENDS= mixmaster:${PORTSDIR}/mail/mixmaster +MIXMASTER_RUN_DEPENDS= mixmaster:${PORTSDIR}/mail/mixmaster +MIXMASTER_CONFIGURE_ON= --with-mixmaster=${LOCALBASE} -.if ${PORT_OPTIONS:MSMIME_OUTLOOK_COMPAT} -post-patch:: - @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-smime-outlook -.endif +SMIME_OUTLOOK_COMPAT_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-smime-outlook +SMART_DATE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-smartdate -.if ${PORT_OPTIONS:MSMART_DATE} -post-patch:: - @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-smartdate -.endif +FLOCK_CONFIGURE_ON= --enable-flock +FLOCK_CONFIGURE_OFF= --disable-flock -.if ${PORT_OPTIONS:MSIGNATURE_MENU} -IGNORE= the WITH_SIGNATURE_MENU does not work at the moment -XML_NEEDED= yes -post-patch:: - @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-signature-menu -.endif +LOCALES_FIX_CONFIGURE_ON= --enable-locales-fix -.if ${PORT_OPTIONS:MMAILDIR_MTIME_PATCH} -post-patch:: -.if ${PORT_OPTIONS:MNNTP} - @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-maildir-mtime-nntp -.else - @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-maildir-mtime -.endif -.endif +IDN_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn +IDN_CONFIGURE_ON= --with-idn +IDN_CONFIGURE_OFF= --without-idn -.if ${PORT_OPTIONS:MASPELL} -post-patch:: - @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-aspell -.endif +GPGME_LIB_DEPENDS= libgpgme.so:${PORTSDIR}/security/gpgme +GPGME_CONFIGURE_ON= --enable-gpgme +GPGME_CONFIGURE_OFF= --disable-gpgme -.if ${PORT_OPTIONS:MREVERSE_REPLY_PATCH} -post-patch:: - @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-reverse_reply -.endif +SMTP_CONFIGURE_ON= --enable-smtp +SMTP_CONFIGURE_OFF= --disable-smtp -.if ${PORT_OPTIONS:MPARENT_CHILD_MATCH_PATCH} -post-patch:: - @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-parent-child-match -.endif +MAILDIR_HEADER_CACHE_CONFIGURE_OFF= --without-qdbm -.if ${PORT_OPTIONS:MFLOCK} -CONFIGURE_ARGS+= --enable-flock -.else -CONFIGURE_ARGS+= --disable-flock -.endif +COMPRESSED_FOLDERS_DISTFILES= patch-${RR_PATCH_VERSION}.rr.compressed.gz:vvv +COMPRESSED_FOLDERS_CONFIGURE_ON= --enable-compressed +COMPRESSED_FOLDERS_VARS= XML_NEEDED=yes -.if ${PORT_OPTIONS:MLOCALES_FIX} -CONFIGURE_ARGS+= --enable-locales-fix -.endif +QUOTE_PATCH_PATCHFILES= patch-${VVV_PATCH_VERSION}.vvv.initials.gz:vvv \ + patch-${VVV_PATCH_VERSION}.vvv.quote.gz:vvv +QUOTE_PATCH_VARS= XML_NEEDED=yes -.if ${PORT_OPTIONS:MICONV} -USES+= iconv:translit -CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG} -.else -CONFIGURE_ARGS+= --disable-iconv -.endif +NNTP_DISTFILES= patch-${VVV_PATCH_VERSION}.vvv.nntp.gz:vvv \ + patch-${VVV_PATCH_VERSION}.vvv.nntp_ru.gz:vvv +NNTP_CONFIGURE_ON= --enable-nntp +NNTP_VARS= XML_NEEDED=yes +NNTP_CATEGORIES= news -.if ${PORT_OPTIONS:MIDN} -LIB_DEPENDS+= libidn.so:${PORTSDIR}/dns/libidn -CONFIGURE_ARGS+= --with-idn -.else -CONFIGURE_ARGS+= --without-idn -.endif +SIDEBAR_PATCH_VARS= XML_NEEDED=yes -.if ${PORT_OPTIONS:MGPGME} -LIB_DEPENDS+= libgpgme.so:${PORTSDIR}/security/gpgme -CONFIGURE_ARGS+= --enable-gpgme -.else -CONFIGURE_ARGS+= --disable-gpgme +DOCS_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-doc-ref + +SIGNATURE_MENU_IGNORE= SIGNATURE_MENU does not work at the moment +SIGNATURE_MENU_VARS= XML_NEEDED=yes +SIGNATURE_MENU_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-signature-menu + +MBOX_HOOK_PATCH_IGNORE= MBOX_HOOK_PATCH does not work at the moment +MBOX_HOOK_PATCH_PATCHFILES= p0-patch-${DW_MBOX_PATCH_VERSION}.dw.mbox-hook.1:dw + +.include + +DW_PATCH_VERSION= 1.5.6 +DW_MBOX_PATCH_VERSION= 1.5.18 +.if !defined(VVV_PATCH_VERSION) +VVV_PATCH_VERSION= ${PORTVERSION} .endif -LDFLAGS= +.if !defined(RR_PATCH_VERSION) +RR_PATCH_VERSION= ${PORTVERSION} +.endif +.if !defined(DW_PATCH_VERSION) +DW_PATCH_VERSION= ${PORTVERSION} +.endif +.if !defined(DW_MBOX_PATCH_VERSION) +DW_MBOX_PATCH_VERSION= ${DW_PATCH_VERSION} +.endif +# XXX +# this should be done automagically by aclocal but .... +# for now, this will have to do +pre-build:: + @${REINPLACE_CMD} -E -e "s|^(ACLOCAL = ).+|\1${ACLOCAL}|" \ + -e "s|^(AUTOCONF = ).+|\1${AUTOCONF}|" \ + -e "s|^(AUTOMAKE = ).+|\1${AUTOMAKE}|" \ + -e "s|^(AUTOHEADER = ).+|\1${AUTOHEADER}|" \ + ${BUILD_WRKSRC}/Makefile + .if ${PORT_OPTIONS:MGSSAPI} .if exists(${LOCALBASE}/bin/krb5-config) LIB_DEPENDS+= libgssapi_krb5.so:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-gss=${LOCALBASE} .elif exists(${KRB5_HOME}/bin/krb5-config) LIB_DEPENDS+= libgssapi_krb5.so:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-gss=${KRB5_HOME} LDFLAGS+= -L${KRB5_HOME}/lib -Wl,-rpath=${KRB5_HOME}/lib -ltinfow .elif exists(${HEIMDAL_HOME}/bin/krb5-config) LIB_DEPENDS+= libgssapi_krb5.so:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-gss=${HEIMDAL_HOME} LDFLAGS+= -L${HEIMDAL_HOME}/lib -Wl,-rpath=${HEIMDAL_HOME}/lib -ltinfow .elif (defined(MAKE_KERBEROS5)) || exists(/usr/lib/libkrb5.a) CONFIGURE_ARGS+= --with-gss -WITH_KRB5_SYS=YES +WITH_KRB5_SYS=yes .endif .endif LDFLAGS+= -L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib:/usr/lib -ltinfow CFLAGS+= ${CFLAGS_ADD} LDFLAGS+= ${LDFLAGS_ADD} -.if ${PORT_OPTIONS:MSMTP} -CONFIGURE_ARGS+= --enable-smtp -.else -CONFIGURE_ARGS+= --disable-smtp -.endif - -.if ${PORT_OPTIONS:MDEBUG} -CONFIGURE_ARGS+= --enable-debug -.endif - PATCH_DIST_STRIP= -p1 -.if ${PORT_OPTIONS:MCOMPRESSED_FOLDERS} -DISTFILES+= patch-${RR_PATCH_VERSION}.rr.compressed.gz:vvv -CONFIGURE_ARGS+= --enable-compressed -XML_NEEDED= yes -pre-patch:: +pre-patch-PARENT_CHILD_MATCH_PATCH-on: + @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-parent-child-match + +pre-patch-COMPRESSED_FOLDERS-on: @${GUNZIP_CMD} -c ${DISTDIR}/${DIST_SUBDIR}/patch-${RR_PATCH_VERSION}.rr.compressed.gz > ${WRKDIR}/patch-compressed @${REINPLACE_CMD} -E '/^diff.*\/doc\/manual.txt$$/,/^diff/d' \ ${WRKDIR}/patch-compressed @${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/patch-compressed -.endif -.if ${PORT_OPTIONS:MNNTP} -DISTFILES+= patch-${VVV_PATCH_VERSION}.vvv.nntp.gz:vvv -DISTFILES+= patch-${VVV_PATCH_VERSION}.vvv.nntp_ru.gz:vvv -CONFIGURE_ARGS+= --enable-nntp -XML_NEEDED= yes -CATEGORIES+= news -PLIST_SUB+= NNTP="" -pre-patch:: +pre-patch-NNTP-on: @${GUNZIP_CMD} -c ${DISTDIR}/${DIST_SUBDIR}/patch-${VVV_PATCH_VERSION}.vvv.nntp.gz > ${WRKDIR}/patch-nntp @${REINPLACE_CMD} -E '/^diff.*\/doc\/manual.txt$$/,/^diff/d' \ ${WRKDIR}/patch-nntp @${PATCH} ${PATCH_ARGS} -p1 < ${WRKDIR}/patch-nntp -post-install: - ${INSTALL_MAN} ${WRKSRC}/ChangeLog.nntp ${STAGEDIR}${DOCSDIR} -.else -PLIST_SUB+= NNTP="@comment " -.endif -.if ${PORT_OPTIONS:MQUOTE_PATCH} -PATCHFILES+= patch-${VVV_PATCH_VERSION}.vvv.initials.gz:vvv \ - patch-${VVV_PATCH_VERSION}.vvv.quote.gz:vvv -XML_NEEDED= yes +post-patch-NNTP-on: +.if ${PORT_OPTIONS:MSIDEBAR_PATCH} + @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-sidebar-nntp + @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-sidebar-refresh .endif - -.if ${PORT_OPTIONS:MIFDEF_PATCH} -post-patch:: - @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-ifdef +.if ${PORT_OPTIONS:MMAILDIR_MTIME_PATCH} + @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-maildir-mtime-nntp .endif -.if ${PORT_OPTIONS:MMBOX_HOOK_PATCH} -IGNORE= the MBOX_HOOK_PATCH does not work at the moment -#PATCHFILES+= p0-patch-${DW_MBOX_PATCH_VERSION}.dw.mbox-hook.1:dw -.endif - +post-patch-NNTP-off: .if ${PORT_OPTIONS:MSIDEBAR_PATCH} -XML_NEEDED= yes -.if ${PORT_OPTIONS:MNNTP} -post-patch:: - @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-sidebar-nntp - @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-sidebar-refresh -.else -post-patch:: @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-sidebar @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-sidebar-refresh .endif +.if ${PORT_OPTIONS:MMAILDIR_MTIME_PATCH} + @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-maildir-mtime .endif -.if ${PORT_OPTIONS:MGREETING_PATCH} -post-patch:: +post-install-NNTP-on: + ${INSTALL_DATA} ${WRKSRC}/ChangeLog.nntp ${STAGEDIR}${DOCSDIR} + +post-patch-GREETING_PATCH-on: @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-greeting -.endif -.if ${PORT_OPTIONS:MTRASH_PATCH} -post-patch:: + +post-patch-IFDEF_PATCH-on: + @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-ifdef + +post-patch-TRASH_PATCH-on: @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-trash-purge -.endif WRKSRC= ${WRKDIR}/${DISTNAME:S/i$//} post-patch:: @${REINPLACE_CMD} -e 's,/usr/bin/gpg,${LOCALBASE}/bin/gpg,g' \ ${WRKSRC}/contrib/gpg.rc @${REINPLACE_CMD} -e 's,pgp6,pgp,g' \ ${WRKSRC}/contrib/pgp6.rc @${REINPLACE_CMD} -E -e 's|@samplesdir@|${EXAMPLESDIR}|g' \ ${WRKSRC}/contrib/Makefile.am pre-configure:: @(cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I m4) @${RM} -f ${WRKSRC}/missing .if defined(WITH_KRB5_SYS) @${ECHO_CMD} "#define HAVE_HEIMDAL" >> ${WRKSRC}/config.h.in @${REINPLACE_CMD} -e 's|||' \ ${WRKSRC}/imap/auth_gss.c .endif -.if ${PORT_OPTIONS:MCOMPRESSED_FOLDERS} -PLIST_SUB+= COMPRESS="" -.else -PLIST_SUB+= COMPRESS="@comment " -.endif - .if ${PORT_OPTIONS:MIMAP_HEADER_CACHE} || ${PORT_OPTIONS:MMAILDIR_HEADER_CACHE} .if ${PORT_OPTIONS:MTOKYOCABINET} CONFIGURE_ARGS+= --enable-hcache --without-gdbm --without-bdb --with-tokyocabinet LIB_DEPENDS+= libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet .else USE_BDB= 42+ CONFIGURE_ARGS+= --enable-hcache --without-gdbm --with-bdb CONFIGURE_SED= -e 's/BDB_VERSIONS="/&${BDB_LIB_NAME} db${BDB_VER} /' pre-configure:: @${REINPLACE_CMD} -E ${CONFIGURE_SED} ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}.ac .endif .else CONFIGURE_ARGS+= --disable-hcache .endif -.if ${PORT_OPTIONS:MMAILDIR_HEADER_CACHE} -CONFIGURE_ARGS+= --without-qdbm -.endif - -.if ${PORT_OPTIONS:MMAILBOX_MANPAGES} -PLIST_SUB+= MBOXMAN="" -.else -PLIST_SUB+= MBOXMAN="@comment " -.endif - -.if ${PORT_OPTIONS:MHTML} -PLIST_SUB+= HTML="" -.else -PLIST_SUB+= HTML="@comment " -.endif -.if ${PORT_OPTIONS:MDOCS} -post-build: - @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-doc-ref - @${REINPLACE_CMD} -E -e 's|\$$\{PREFIX\}|${PREFIX}|g' \ - -e 's|\$$\{DOCSDIR\}|${DOCSDIR}|g' \ - -e 's|\$$\{EXAMPLESDIR\}|${EXAMPLESDIR}|g' \ - ${WRKSRC}/doc/mutt.man - @${REINPLACE_CMD} -E -e 's|\$$\{PREFIX\}|${PREFIX}|g' \ - -e 's|\$$\{DOCSDIR\}|${DOCSDIR}|g' \ - -e 's|\$$\{EXAMPLESDIR\}|${EXAMPLESDIR}|g' \ - ${WRKSRC}/doc/muttrc.man -.endif - .if defined (XML_NEEDED) && ${PORT_OPTIONS:MXML} -PLIST_SUB+= XML="" BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \ lynx:${PORTSDIR}/www/lynx .else -PLIST_SUB+= XML="@comment " pre-build:: @${REINPLACE_CMD} -E -e 's|-xsltproc|@-true xsltproc|g' \ ${WRKSRC}/doc/Makefile -.endif - -.if ${PORT_OPTIONS:MSLANG} -PKGMESSAGE= ${FILESDIR}/pkg-message.slang .endif .include Index: head/mail/mutt/files/extra-patch-doc-ref =================================================================== --- head/mail/mutt/files/extra-patch-doc-ref (revision 405888) +++ head/mail/mutt/files/extra-patch-doc-ref (revision 405889) @@ -1,12 +1,12 @@ --- doc/mutt.man.orig 2009-02-06 13:52:38.000000000 +0100 +++ doc/mutt.man 2009-02-06 13:55:05.000000000 +0100 @@ -69,7 +69,8 @@ .PP Mutt is a small but very powerful text based program for reading and sending electronic mail under unix operating systems, including support for color terminals, MIME, -OpenPGP, and a threaded sorting mode. +OpenPGP, and a threaded sorting mode. Details of how to use all of this is -+available in \fI${DOCSDIR}\fP. ++available in @docdir@. .PP .I Note: .IR Index: head/mail/mutt/files/patch-browser.c =================================================================== --- head/mail/mutt/files/patch-browser.c (nonexistent) +++ head/mail/mutt/files/patch-browser.c (revision 405889) @@ -0,0 +1,40 @@ +Index: browser.c +@@ -80,6 +80,12 @@ + struct folder_file *pa = (struct folder_file *) a; + struct folder_file *pb = (struct folder_file *) b; + ++ /* Always keep '..' in first menu position */ ++ if (!strncmp(pa->name, "..", 2)) ++ return(-1); ++ if (!strncmp(pb->name, "..", 2)) ++ return(1); ++ + int r = mutt_strcoll (pa->name, pb->name); + + return ((BrowserSort & SORT_REVERSE) ? -r : r); +@@ -90,6 +96,12 @@ + struct folder_file *pa = (struct folder_file *) a; + struct folder_file *pb = (struct folder_file *) b; + ++ /* Always keep '..' in first menu position */ ++ if (!strncmp(pa->name, "..", 2)) ++ return(-1); ++ if (!strncmp(pb->name, "..", 2)) ++ return(1); ++ + int r = pa->mtime - pb->mtime; + + return ((BrowserSort & SORT_REVERSE) ? -r : r); +@@ -100,6 +112,12 @@ + struct folder_file *pa = (struct folder_file *) a; + struct folder_file *pb = (struct folder_file *) b; + ++ /* Always keep '..' in first menu position */ ++ if (!strncmp(pa->name, "..", 2)) ++ return(-1); ++ if (!strncmp(pb->name, "..", 2)) ++ return(1); ++ + int r = pa->size - pb->size; + + return ((BrowserSort & SORT_REVERSE) ? -r : r); Property changes on: head/mail/mutt/files/patch-browser.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/mutt/pkg-plist =================================================================== --- head/mail/mutt/pkg-plist (revision 405888) +++ head/mail/mutt/pkg-plist (revision 405889) @@ -1,113 +1,109 @@ bin/flea bin/mutt bin/muttbug -@group mail -@mode 2755 -bin/mutt_dotlock -@group wheel -@mode +@(,mail,2755) bin/mutt_dotlock bin/pgpewrap bin/pgpring bin/smime_keys @sample etc/Muttrc.sample man/man1/flea.1.gz man/man1/mutt.1.gz man/man1/mutt_dotlock.1.gz man/man1/muttbug.1.gz man/man1/pgpewrap.1.gz man/man1/pgpring.1.gz man/man1/smime_keys.1.gz -%%MBOXMAN%%man/man5/mbox.5.gz -%%MBOXMAN%%man/man5/mmdf.5.gz +%%MAILBOX_MANPAGES%%man/man5/mbox.5.gz +%%MAILBOX_MANPAGES%%man/man5/mmdf.5.gz man/man5/muttrc.5.gz %%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/GPL %%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTDOCS%%%%DOCSDIR%%/NEWS %%PORTDOCS%%%%DOCSDIR%%/PGP-Notes.txt %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/README.SECURITY %%PORTDOCS%%%%DOCSDIR%%/README.SSL %%PORTDOCS%%%%DOCSDIR%%/TODO %%PORTDOCS%%%%DOCSDIR%%/applying-patches.txt %%PORTDOCS%%%%DOCSDIR%%/devel-notes.txt %%PORTDOCS%%%%DOCSDIR%%/manual.txt %%PORTDOCS%%%%DOCSDIR%%/patch-notes.txt %%PORTDOCS%%%%DOCSDIR%%/smime-notes.txt %%NNTP%%%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.nntp %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/advancedusage.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/configuration.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/gettingstarted.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/index.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/intro.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/manual.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/mimesupport.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/miscellany.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/optionalfeatures.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/reference.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/security.html %%HTML%%%%PORTDOCS%%%%DOCSDIR%%/tuning.html -%%XML%%%%HTML%%%%COMPRESS%%%%PORTDOCS%%%%DOCSDIR%%/compressed-folders.html +%%XML%%%%HTML%%%%COMPRESSED_FOLDERS%%%%PORTDOCS%%%%DOCSDIR%%/compressed-folders.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Mush.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Pine.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Tin.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/ca-bundle.crt %%PORTEXAMPLES%%%%EXAMPLESDIR%%/colors.default %%PORTEXAMPLES%%%%EXAMPLESDIR%%/colors.linux %%PORTEXAMPLES%%%%EXAMPLESDIR%%/gpg.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.aix-3.2.5.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.aix-4.1.5.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.aix-4.2.0.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.aix-4.3.2.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.freebsd-3.3.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.glibc-2.1.3.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.glibc-2.1.90.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.hpux-10.01.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.hpux-10.20.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.hpux-11.00.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.irix-6.5.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.osf1-4.0a.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.osf1-4.0d.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.solaris-2.4.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.solaris-2.5.1.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.solaris-2.6-cjk.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.solaris-2.6.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/iconv/iconv.solaris-2.7.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/mutt_xtitle %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgp2.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgp6.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.mailcap %%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.muttrc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.muttrc-tlr %%PORTEXAMPLES%%%%EXAMPLESDIR%%/smime.rc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/smime_keys_test.pl %%NLS%%share/locale/bg/LC_MESSAGES/mutt.mo %%NLS%%share/locale/ca/LC_MESSAGES/mutt.mo %%NLS%%share/locale/cs/LC_MESSAGES/mutt.mo %%NLS%%share/locale/da/LC_MESSAGES/mutt.mo %%NLS%%share/locale/de/LC_MESSAGES/mutt.mo %%NLS%%share/locale/el/LC_MESSAGES/mutt.mo %%NLS%%share/locale/eo/LC_MESSAGES/mutt.mo %%NLS%%share/locale/es/LC_MESSAGES/mutt.mo %%NLS%%share/locale/et/LC_MESSAGES/mutt.mo %%NLS%%share/locale/eu/LC_MESSAGES/mutt.mo %%NLS%%share/locale/fr/LC_MESSAGES/mutt.mo %%NLS%%share/locale/ga/LC_MESSAGES/mutt.mo %%NLS%%share/locale/gl/LC_MESSAGES/mutt.mo %%NLS%%share/locale/hu/LC_MESSAGES/mutt.mo %%NLS%%share/locale/id/LC_MESSAGES/mutt.mo %%NLS%%share/locale/it/LC_MESSAGES/mutt.mo %%NLS%%share/locale/ja/LC_MESSAGES/mutt.mo %%NLS%%share/locale/ko/LC_MESSAGES/mutt.mo %%NLS%%share/locale/lt/LC_MESSAGES/mutt.mo %%NLS%%share/locale/nl/LC_MESSAGES/mutt.mo %%NLS%%share/locale/pl/LC_MESSAGES/mutt.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/mutt.mo %%NLS%%share/locale/ru/LC_MESSAGES/mutt.mo %%NLS%%share/locale/sk/LC_MESSAGES/mutt.mo %%NLS%%share/locale/sv/LC_MESSAGES/mutt.mo %%NLS%%share/locale/tr/LC_MESSAGES/mutt.mo %%NLS%%share/locale/uk/LC_MESSAGES/mutt.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/mutt.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/mutt.mo