2006-01-01 14:28:02 +01:00
|
|
|
# $NetBSD: Makefile,v 1.133 2006/01/01 13:28:02 ben Exp $
|
2001-06-20 09:31:58 +02:00
|
|
|
|
2004-03-10 19:42:18 +01:00
|
|
|
DISTNAME= mutt-1.4.2.1i
|
2004-07-07 18:23:10 +02:00
|
|
|
PKGNAME= ${DISTNAME:C/i$//}
|
2005-12-26 17:45:27 +01:00
|
|
|
PKGREVISION= 5
|
2001-06-20 09:31:58 +02:00
|
|
|
CATEGORIES= mail
|
2003-03-20 05:38:22 +01:00
|
|
|
MASTER_SITES= ftp://ftp.mutt.org/mutt/ \
|
Update "mutt" package to version 1.4. Visible changes since version
1.2.5.1 include:
- Better mh support: Mutt now supports .mh_sequences files.
Currently, the "unseen", "flagged", and "replied" sequences are
used to store mutt flags (the names are configurable using the
$mh_seq_unseen, $mh_seq_flagged, and $mh_seq_replied configuration
variables). As a side effect, messages in MH folders are no longer
rewritten upon status changes.
- The "trashed" flag is supported for maildir folders. See
$maildir_trash.
- POP folder support. You can now access a POP mailbox just like an
IMAP folder (with obvious restrictions due to the protocol).
- URL syntax for remote folders. You can pass things like
pop://account@host and imap://account@host/folder as arguments for
the -f command line flag.
- STARTTLS support. If $ssl_starttls is set (the default), mutt
will attempt to use STARTTLS on servers advertising that
capability.
- $preconnect. If set, a shell command to be executed if mutt fails
to establish a connection to the server. This is useful for
setting up secure connections; see the muttrc(5) for details.
- $tunnel. Use a pipe to a command instead of a raw socket. See
muttrc(5) for details. (Basically, it's another way for setting
up secure connections.)
- More new IMAP/POP-related variables (see muttrc(5) for details):
$connect_timeout, $imap_authenticators, $imap_delim_chars,
$imap_peek, $pop_authenticators, $pop_auth_try_all,
$pop_checkinterval, $pop_delete, $pop_reconnect, $use_ipv6.
- The following IMAP/POP-related variables are gone:
$imap_checkinterval, $imap_cramkey, $pop_port.
- There's a new imap-fetch-mail function, which forces a check for
new messages on an IMAP server.
- The new-mailbox function was renamed to create-mailbox, and is
bound to C instead of n by default.
For a complete overview of all new features look in the "NEWS" file.
2002-05-29 14:13:52 +02:00
|
|
|
ftp://ftp.stealth.net/pub/mirrors/ftp.mutt.org/pub/mutt/ \
|
|
|
|
ftp://gd.tuwien.ac.at/infosys/mail/mutt/ \
|
2003-09-05 21:00:57 +02:00
|
|
|
ftp://ftp.fu-berlin.de/unix/mail/mutt/
|
2001-06-20 09:31:58 +02:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= tron@NetBSD.org
|
2001-06-20 09:31:58 +02:00
|
|
|
HOMEPAGE= http://www.mutt.org/
|
2003-07-21 18:56:41 +02:00
|
|
|
COMMENT= Text-based MIME mail client with PGP support
|
1998-02-02 11:48:30 +01:00
|
|
|
|
2004-07-17 02:33:15 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/i$$//}
|
2004-08-05 09:19:25 +02:00
|
|
|
BUILD_USES_MSGFMT= yes
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
1998-02-02 11:48:30 +01:00
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} \
|
2004-08-05 09:19:25 +02:00
|
|
|
--with-docdir=${PREFIX}/share/doc/mutt \
|
|
|
|
--without-included-gettext \
|
|
|
|
--enable-pop \
|
|
|
|
--enable-imap
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= CHGRP=${CHGRP:Q}
|
2000-05-20 20:39:45 +02:00
|
|
|
|
2004-12-18 17:24:37 +01:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2004-03-21 00:10:23 +01:00
|
|
|
CONFIGURE_ARGS+= --without-wc-funcs
|
|
|
|
.endif
|
|
|
|
|
2004-12-18 17:24:20 +01:00
|
|
|
.if ${LOWER_OPSYS} == "irix5.3"
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_inttypes_h=no
|
|
|
|
.endif
|
|
|
|
|
2006-01-01 14:28:02 +01:00
|
|
|
.if ${OPSYS} == "Interix"
|
|
|
|
SUBST_CLASSES+= mgroup
|
|
|
|
SUBST_MESSAGE.mgroup= "Configuring mail group."
|
|
|
|
SUBST_STAGE.mgroup= post-patch
|
|
|
|
SUBST_FILES.mgroup= configure
|
|
|
|
SUBST_SED.mgroup= -e "s,DOTLOCK_GROUP='mail',DOTLOCK_GROUP='+Administrators',"
|
|
|
|
.endif
|
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
# There is a problem using /bin/sh on old NetBSD releases, so use /bin/ksh
|
|
|
|
# there.
|
|
|
|
#
|
2004-03-01 13:13:44 +01:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-1.[0-5]*-*)
|
2001-06-20 09:09:49 +02:00
|
|
|
CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh
|
2000-11-02 04:15:14 +01:00
|
|
|
.endif
|
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
.include "options.mk"
|
2002-10-28 22:09:18 +01:00
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
LDFLAGS+= ${_STRIPFLAG_CC}
|
2001-06-20 09:09:49 +02:00
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
|
|
|
|
INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/mutt
|
2002-11-27 20:05:39 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/mutt
|
2002-01-31 00:05:45 +01:00
|
|
|
CONF_FILES= ${EGDIR}/Muttrc ${PKG_SYSCONFDIR}/Muttrc
|
2005-08-19 20:12:36 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= DOCDIR=${DOCDIR:Q}
|
2004-08-05 09:19:25 +02:00
|
|
|
|
|
|
|
.if exists(${WRKSRC}/mutt_dotlock)
|
|
|
|
PLIST_SUBST+= MUTT_DOTLOCK=
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= MUTT_DOTLOCK="@comment "
|
|
|
|
.endif
|
|
|
|
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
|
2001-06-20 09:09:49 +02:00
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2002-12-03 22:21:57 +01:00
|
|
|
|
2004-08-05 09:19:25 +02:00
|
|
|
# Fix some absolute paths in installed files.
|
|
|
|
post-build:
|
|
|
|
for file in ${WRKSRC}/contrib/gpg.rc; do \
|
|
|
|
${MV} -f $$file $$file.save; \
|
|
|
|
${SED} -e "s,/usr/bin/gpg,gpg,g" \
|
|
|
|
$$file.save > $$file; \
|
|
|
|
done
|
|
|
|
for file in ${WRKSRC}/doc/mutt.man; do \
|
|
|
|
${MV} -f $$file $$file.save; \
|
|
|
|
${SED} -e "s,/etc/,${PKG_SYSCONFDIR}/,g" \
|
|
|
|
-e "s,/usr/local/doc/mutt/,${DOCDIR}/,g" \
|
|
|
|
-e "s,/usr/local/,${PREFIX}/,g" \
|
|
|
|
$$file.save > $$file; \
|
|
|
|
done
|
|
|
|
|
|
|
|
# Pre-create some directories and symlinks used during the installation
|
|
|
|
# process.
|
|
|
|
#
|
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${RM} -f ${DOCDIR}/samples
|
|
|
|
${LN} -sf ${EGDIR} ${DOCDIR}/samples
|
2002-12-03 22:21:57 +01:00
|
|
|
|
2004-07-17 02:33:15 +02:00
|
|
|
.if (${PKG_INSTALLATION_TYPE} == "pkgviews")
|
2004-08-05 09:19:25 +02:00
|
|
|
post-install:
|
2004-07-17 02:33:15 +02:00
|
|
|
${MV} ${PREFIX}/man/man5/mutt-mbox.5 ${PREFIX}/man/man5/mbox.5
|
|
|
|
.endif
|
2000-01-04 18:12:59 +01:00
|
|
|
|
2000-07-28 12:33:56 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|