pkgsrc/mail/mutt/Makefile

112 lines
3.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.163 2011/04/22 13:44:04 obache Exp $
DISTNAME= mutt-1.4.2.3
PKGREVISION= 4
CATEGORIES= mail
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://gd.tuwien.ac.at/infosys/mail/mutt/ \
ftp://ftp.fu-berlin.de/unix/mail/mutt/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mutt.org/
COMMENT= Text-based MIME mail client with PGP support
2009-08-31 21:25:27 +02:00
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
.include "../../mk/bsd.prefs.mk"
WRKSRC= ${WRKDIR}/${DISTNAME:C/i$$//}
USE_PKGLOCALEDIR= yes
USE_TOOLS+= msgfmt
GNU_CONFIGURE= yes
2008-02-22 01:36:12 +01:00
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} \
--with-docdir=${PREFIX}/share/doc/mutt \
--without-included-gettext \
--enable-external-dotlock \
--enable-pop \
--enable-imap
MAKE_ENV+= CHGRP=${CHGRP:Q}
2000-05-20 20:39:45 +02:00
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD"
# Force sendmail to /usr/sbin to avoid postfix's
# ${LOCALBASE}/sbin/sendmail. Should be enabled on all platforms which
# support mailwrapper.
CONFIGURE_ENV+= SENDMAIL=/usr/sbin/sendmail
.endif
2004-12-18 17:24:37 +01:00
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --without-wc-funcs
.endif
.if !empty(MACHINE_PLATFORM:MIRIX-5.3-*)
CONFIGURE_ENV+= ac_cv_header_inttypes_h=no
.endif
SUBST_CLASSES+= gpg
SUBST_MESSAGE.gpg= Fixing path to GnuPG binary.
SUBST_STAGE.gpg= post-patch
SUBST_FILES.gpg= contrib/gpg.rc
SUBST_SED.gpg= -e "s,/usr/bin/gpg,gpg,g"
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing pathnames in manual page.
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= doc/mutt.man
SUBST_SED.paths= -e "s,/usr/local/doc/mutt/,${DOCDIR}/,g"
SUBST_SED.paths+= -e "s,/etc/,${PKG_SYSCONFDIR}/,g"
SUBST_SED.paths+= -e "s,/usr/local/,${PREFIX}/,g"
.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',"
CPPFLAGS+= -D__BROKEN_INTERIX_FORK
.endif
# There is a problem using /bin/sh on old NetBSD releases, so use /bin/ksh
# there.
#
.if !empty(MACHINE_PLATFORM:MNetBSD-1.[0-5]*-*)
CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh
.endif
.include "options.mk"
2002-10-28 22:09:18 +01:00
LDFLAGS+= ${_STRIPFLAG_CC}
DOCDIR= ${PREFIX}/share/doc/mutt
EGDIR= ${PREFIX}/share/examples/mutt
CONF_FILES= ${EGDIR}/Muttrc ${PKG_SYSCONFDIR}/Muttrc
CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types
FILES_SUBST+= DOCDIR=${DOCDIR:Q}
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
SPECIAL_PERMS+= bin/mutt_dotlock ${REAL_ROOT_USER} mail 2551
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
# Pre-create some directories and symlinks used during the installation
# process.
#
pre-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
${RM} -f ${DESTDIR}${DOCDIR}/samples
${LN} -sf ${DESTDIR}${EGDIR} ${DESTDIR}${DOCDIR}/samples
post-install:
.if (${PKG_INSTALLATION_TYPE} == "pkgviews")
${MV} ${PREFIX}/${PKGMANDIR}/man5/mutt-mbox.5 ${PREFIX}/${PKGMANDIR}/man5/mbox.5
.endif
2000-01-04 18:12:59 +01:00
.include "../../mk/bsd.pkg.mk"