diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-05-16 15:51:16 +0000 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-05-16 15:51:16 +0000 |
commit | f8d26c6a83da2b53108a6ad19d831497f67295f4 (patch) | |
tree | caca2b93f6619e484e43fc1c8cfd87f6b128e8df /mail/mutt-devel/Makefile | |
parent | 074f0d0fada94d47eded565b6dd0786c59790a80 (diff) | |
download | FreeBSD-ports-f8d26c6a83da2b53108a6ad19d831497f67295f4.zip FreeBSD-ports-f8d26c6a83da2b53108a6ad19d831497f67295f4.tar.gz |
Improve maildir support
PR: 38147
Submitted by: maintainer, lioux
Diffstat (limited to 'mail/mutt-devel/Makefile')
-rw-r--r-- | mail/mutt-devel/Makefile | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile index 8ed6236..1b55873 100644 --- a/mail/mutt-devel/Makefile +++ b/mail/mutt-devel/Makefile @@ -49,10 +49,13 @@ # # If you want to enable the pgp_outlook_compat function for use with pgp define: # WITH_MUTT_PGP_OUTLOOK_PATCH +# +# If you want to enable some functions whoch improve maildir handling define: +# WITH_MUTT_MAILDIR_PATCH PORTNAME= mutt-devel PORTVERSION= 1.3.99 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES+= mail .if defined(WITH_MUTT_NNTP) CATEGORIES+= news @@ -98,6 +101,18 @@ pre-build: s/^(AUTOMAKE = ).+/\1${AUTOMAKE}/; s/^(AUTOHEADER = ).+/\1${AUTOHEADER}/" \ ${BUILD_WRKSRC}/Makefile +.if defined(WITH_MUTT_MAILDIR_PATCH) +.for file in Makefile.am globals.h init.h mh.c mutt.h +EXTRA_PATCHES+= ${WRKSRC}/patch-${file} +pre-patch:: + ${CP} ${PATCHDIR}/extra-maildir-patch-${file} ${WRKSRC}/patch-${file} +.endfor +.for file in maildir_clean_dir.h maildir_clean_dir.c +pre-patch:: + ${CP} ${PATCHDIR}/${file} ${WRKSRC}/${file} +.endfor +.endif + .if !defined(PATCH_VERSION) PATCH_VERSION= ${PORTVERSION} .endif @@ -294,7 +309,7 @@ PLIST_SUB+= SUB_ADD_D="@comment " PLIST_SUB+= SUB_ADD_E="@comment " PLIST_SUB+= SUB_ADD_F="@comment " PLIST_SUB+= SUB_ADD_G="@comment " -PLIST_SUB+= SUB_PGP_A="@comment " +PLIST_SUB+= SUB_PGP_A="" .else # patches PLIST_SUB+= SUB_ADD_A="@comment " PLIST_SUB+= SUB_ADD_B="@comment " @@ -330,11 +345,21 @@ PLIST_SUB+= SUB_PGP_A="@comment " post-patch:: ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-nodoc-contrib .endif -.if defined(WITH_MUTT_PGP_OUTLOOK_PATCH) +.if defined(WITH_MUTT_PGP_OUTLOOK_PATCH) && !defined(WITH_MUTT_MAILDIR_PATCH) PLIST_SUB+= SUB_PGP="" .else PLIST_SUB+= SUB_PGP="@comment " .endif +.if defined(WITH_MUTT_MAILDIR_PATCH) && !defined(WITH_MUTT_PGP_OUTLOOK_PATCH) +PLIST_SUB+= SUB_MAILDIR="" +.else +PLIST_SUB+= SUB_MAILDIR="@comment " +.endif +.if defined(WITH_MUTT_PGP_OUTLOOK_PATCH) && defined(WITH_MUTT_MAILDIR_PATCH) +PLIST_SUB+= SUB_MAILDIRPGP="" +.else +PLIST_SUB+= SUB_MAILDIRPGP="@comment " +.endif .if ${SGML_USED} == yes BUILD_DEPENDS+= sgmlfmt:${PORTSDIR}/textproc/sgmlformat post-patch:: |