aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt-devel
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-08-05 22:14:41 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-08-05 22:14:41 +0000
commit39cb9fd43df74ffe96b54cc83a20d9f9533ecc44 (patch)
treec2258c25e50843d8ff1a0061091d7fe50a58b0d0 /mail/mutt-devel
parent9c8a79bceb445574b50d082cc02bd85ef754e315 (diff)
downloadports-39cb9fd43df74ffe96b54cc83a20d9f9533ecc44.tar.gz
ports-39cb9fd43df74ffe96b54cc83a20d9f9533ecc44.zip
- Use ncurses as default for recent 6.x and 7.x OSVERSIONs to
have an UTF-8 enabled mutt out of the box. - Add WITH_MUTT_SMTP know. - Bump PORTREVISION PR: 115109 Submitted by: Udo Schweigert <udo.schweigert@siemens.com> (maintainer)
Notes
Notes: svn path=/head/; revision=197183
Diffstat (limited to 'mail/mutt-devel')
-rw-r--r--mail/mutt-devel/Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile
index 7df10dd92115..594133e419de 100644
--- a/mail/mutt-devel/Makefile
+++ b/mail/mutt-devel/Makefile
@@ -20,9 +20,9 @@
# The two most important knobs are:
#
# In general you can choose between using ncurses (WITH_MUTT_NCURSES)
-# and SLANG (WITH_MUTT_SLANG) which is the default. Note that you may
-# have to set the variables COLORTERM=yes and COLORFGBG="color1;color2" in your
-# environment to get slang function properly.
+# and SLANG (WITH_MUTT_SLANG). Note that you may have to set the variables
+# COLORTERM=yes and COLORFGBG="color1;color2" in your environment to get slang
+# function properly.
# The default version for slang is 1.x. Define WITH_MUTT_SLANG2 if you want
# to use the slang version 2.x
# The default version for ncurses is that which comes with the operating
@@ -104,10 +104,13 @@
# If you want to enable the `greeting' option define:
# WITH_MUTT_GREETING_PATCH
#
+# If you want to enable the internal SMTP relay support define:
+# WITH_MUTT_SMTP
+#
PORTNAME= mutt-devel
PORTVERSION= 1.5.16
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES+= mail ipv6
.if defined(WITH_MUTT_NNTP)
CATEGORIES+= news
@@ -203,6 +206,11 @@ WITH_MUTT_IMAP_HEADER_CACHE= yes
IGNORE= cannot install: the WITH_MUTT_SIDEBAR_PATCH and WITH_MUTT_NNTP are not compatible
.endif
.endif
+.if ${OSVERSION} >= 700033 || (${OSVERSION} < 700000 && ${OSVERSION} >= 602107)
+NCURSES_IS_DEFAULT= yes
+.else
+SLANG_IS_DEFAULT= yes
+.endif
.if defined (MUTT_LITE)
WITHOUT_MUTT_XML= yes
@@ -261,8 +269,12 @@ MUTT_USES_SLANG2= yes
MUTT_USES_NCURSES= yes
.endif
.if !defined(MUTT_USES_SLANG) && !defined(WITHOUT_MUTT_SLANG) && !defined(MUTT_USES_NCURSES)
+.if defined(SLANG_IS_DEFAULT)
MUTT_USES_SLANG= yes
MUTT_USES_SLANG1= yes
+.elif defined(NCURSES_IS_DEFAULT)
+MUTT_USES_NCURSES= yes
+.endif
.endif
.if defined(WITHOUT_MUTT_SGMLFORMAT)
XML_USED= no
@@ -382,6 +394,11 @@ CONFIGURE_ARGS+= --with-gss
USE_KRB5_SYS=YES
.endif
.endif
+.if defined(WITH_MUTT_SMTP)
+CONFIGURE_ARGS+= --enable-smtp
+.else
+CONFIGURE_ARGS+= --disable-smtp
+.endif
PATCH_DIST_STRIP= -p1