746a645a9a
A list of features unique to mutt-ng: * Better view support for format=flowed attachments. * Message IDs are configurable. * User can set signoff_string just like in slrn. * User can call up the "last folder" when saving attachments. * IMAP reconnecting: when the connection to the IMAP server dies, mutt-ng attempts reconnecting. * User can set the umask with which all the files shall be created (was hard-coded before, and caused huge problems for shared mailboxes to some people). * Support for NNTP, i.e. mutt-ng can be used as a newsreader. * A sidebar similar to other (graphical) MUAs where you can directly jump to a certain mailbox. PR: ports/82235 Submitted by: Vsevolod Stakhov <vsevolod@highsecure.ru>
143 lines
4 KiB
Makefile
143 lines
4 KiB
Makefile
# New ports collection makefile for: mutt-ng
|
|
# Date created: 14 Jun 2005
|
|
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mutt-ng
|
|
PORTVERSION= 20050614
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://nion.modprobe.de/mutt-ng/snapshots/
|
|
DISTNAME= muttng-${PORTVERSION}
|
|
|
|
MAINTAINER= vsevolod@highsecure.ru
|
|
COMMENT= A fork of the mutt with the goal to incorporate all the patches
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_OPENSSL= yes
|
|
USE_REINPLACE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS= --disable-fcntl \
|
|
--with-ssl=${OPENSSLBASE} --sysconfdir=${PREFIX}/etc \
|
|
--with-sharedir=${PREFIX}/share/mutt \
|
|
--with-docdir=${DOCSDIR} --with-charmaps
|
|
MAKE_ENV= "EXAMPLESDIR=${EXAMPLESDIR}"
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
USE_ICONV= yes
|
|
PLIST_SUB+= NLS=""
|
|
.if defined(WITHOUT_MUTT_ICONV)
|
|
.error the WITHOUT_MUTT_ICONV knob of the mutt port only works if \
|
|
WITHOUT_NLS is also given
|
|
.endif
|
|
.elif !defined(WITHOUT_MUTT_ICONV)
|
|
USE_ICONV= yes
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.else
|
|
PLIST_SUB+= NLS="@comment "
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
CONFIGURE_ARGS+= --disable-iconv
|
|
.endif
|
|
|
|
OPTIONS= POP "Enable pop3 support" on \
|
|
IMAP "Enable imap support" on \
|
|
NNTP "Enable nntp support" off \
|
|
COMPRESSED "Enable compressed folder support" off \
|
|
FLOCK "Enable flock to lock files" off \
|
|
HCACHE "Enable headers caching" on \
|
|
ESMTP "Enable libesmtp support for sending mail" off \
|
|
SLANG "Compile with SLANG frontend" off \
|
|
NCURSES_PORT "Compile with ncurses frontend" off \
|
|
SASL2 "Compile with sasl2 support for authentication" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined (WITH_POP)
|
|
CONFIGURE_ARGS+= --enable-pop
|
|
.endif
|
|
|
|
.if defined (WITH_IMAP)
|
|
CONFIGURE_ARGS+= --enable-imap
|
|
.endif
|
|
|
|
.if defined (WITH_NNTP)
|
|
CONFIGURE_ARGS+= --enable-nntp
|
|
.endif
|
|
|
|
.if defined (WITH_COMPRESSED)
|
|
CONFIGURE_ARGS+= --enable-compressed
|
|
.endif
|
|
|
|
.if defined (WITH_HCACHE)
|
|
CONFIGURE_ARGS+= --enable-hcache --without-qdbm --without-gdbm --with-bdb=${PREFIX}
|
|
LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41
|
|
PLIST_SUB+= HCACHE=""
|
|
.else
|
|
PLIST_SUB+= HCACHE="@comment "
|
|
.endif
|
|
|
|
.if defined (WITH_FLOCK)
|
|
CONFIGURE_ARGS+= --enable-flock
|
|
CONFIGURE_ARGS+= --disbale-fcntl
|
|
.endif
|
|
|
|
.if defined(WITH_SLANG) && !defined(WITH_NCURSES_PORT)
|
|
LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
|
|
CONFIGURE_ARGS+= --with-slang=${LOCALBASE}
|
|
.elif defined(WITH_NCURSES_PORT) && !defined(WITH_SLANG)
|
|
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
|
|
CONFIGURE_ARGS+= --with-ncurses=${PREFIX}
|
|
.elif defined(WITH_SLANG) && defined(WITH_NCURSES_PORT)
|
|
BROKEN= "You may not specify both WITH_SLANG and WITH_NCURSES options"
|
|
.endif
|
|
|
|
.if defined(WITH_SASL2)
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
|
CONFIGURE_ARGS+= --with-sasl2=${PREFIX}
|
|
.endif
|
|
|
|
.if defined(WITH_ESMTP)
|
|
LIB_DEPENDS+= esmtp.6:${PORTSDIR}/mail/libesmtp
|
|
CONFIGURE_ARGS+= --with-libesmtp=${PREFIX}
|
|
.endif
|
|
|
|
.if !defined (NOPORTDOCS)
|
|
BUILD_DEPENDS+= sgmlfmt:${PORTSDIR}/textproc/sgmlformat
|
|
.else
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-doc
|
|
.endif
|
|
|
|
MAN1= muttng.1 muttngbug.1 muttng_dotlock.1 fleang.1 muttng-flea.1
|
|
MAN5= muttng-mbox.5 muttngrc.5
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-build:
|
|
@${TOUCH} ${WRKSRC}/doc/mutt.man ${WRKSRC}/doc/manual.sgml
|
|
@${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
|
|
PLIST:= ${WRKDIR}/PLIST
|
|
pre-install:
|
|
@${CAT} ${PKGDIR}/pkg-plist.htmlfiles > ${PLIST}
|
|
@${CAT} ${PKGDIR}/pkg-plist >> ${PLIST}
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/Muttngrc ${PREFIX}/etc/Muttngrc.dist
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO} "===> Installing Mutt documentation"
|
|
@${MKDIR} ${DOCSDIR} && ${CHMOD} a+rx ${DOCSDIR}
|
|
@cd ${WRKSRC}/doc ; ${INSTALL_MAN} manual.txt PGP-Notes.txt \
|
|
${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|