2002-06-14 17:09:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2002/06/14 21:09:11 lebel Exp $
|
2001-08-20 15:47:33 -04:00
|
|
|
|
|
|
|
COMMENT= "tty-based e-mail client"
|
|
|
|
|
2002-06-14 13:43:51 -04:00
|
|
|
VERSION= 1.4
|
|
|
|
DISTNAME= mutt-${VERSION}i
|
2002-01-10 20:44:15 -05:00
|
|
|
CATEGORIES= mail
|
2002-01-02 17:05:42 -05:00
|
|
|
NEED_VERSION= 1.500
|
2001-08-20 15:47:33 -04:00
|
|
|
MASTER_SITES= ftp://ftp.mutt.org/pub/mutt/ \
|
2002-01-10 20:44:15 -05:00
|
|
|
ftp://ftp.gbnet.net/pub/mutt-international/ \
|
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \
|
|
|
|
ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/ \
|
2001-08-20 15:47:33 -04:00
|
|
|
ftp://ftp.iks-jena.de/pub/mitarb/lutz/crypt/software/pgp/mutt/
|
2002-01-10 20:44:15 -05:00
|
|
|
MASTER_SITES0= http://www.spinnaker.de/mutt/compressed/
|
2001-08-20 15:47:33 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.mutt.org/
|
|
|
|
|
2001-10-24 22:28:14 -04:00
|
|
|
MODULES= gettext
|
2001-08-20 15:47:33 -04:00
|
|
|
|
|
|
|
MAINTAINER= Federico Schwindt <fgsch@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-01-23 14:41:29 -05:00
|
|
|
FLAVORS= slang mixmaster compressed
|
2001-08-20 15:47:33 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2002-06-14 13:43:51 -04:00
|
|
|
# XXX workaround sparc64 gcc optimization bug
|
|
|
|
.if ${MACHINE_ARCH:Msparc64}
|
|
|
|
PATCH_LIST= gcc-* patch-*
|
|
|
|
.endif
|
|
|
|
|
2001-08-20 15:47:33 -04:00
|
|
|
SYSCONFDIR= /etc/mutt
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= --with-sharedir="${PREFIX}/share/mutt" \
|
|
|
|
--with-docdir="${PREFIX}/share/doc/mutt" \
|
|
|
|
--enable-flock --disable-fcntl \
|
2002-01-23 14:41:29 -05:00
|
|
|
--enable-external_dotlock \
|
|
|
|
--enable-imap --enable-pop --with-ssl
|
2001-08-20 15:47:33 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ISPELL="${LOCALBASE}/bin/ispell"
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mslang}
|
|
|
|
LIB_DEPENDS+= slang.14::devel/libslang
|
|
|
|
CONFIGURE_ARGS+= --with-slang="${PREFIX}"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-curses
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# compressed folder support provided by
|
2002-01-08 00:25:12 -05:00
|
|
|
# http://www.spinnaker.de/mutt/compressed/
|
2001-08-20 15:47:33 -04:00
|
|
|
.if ${FLAVOR:L:Mcompressed}
|
2002-01-08 00:25:12 -05:00
|
|
|
PATCHFILES+= patch-${VERSION}.rr.compressed.1.gz:0
|
2001-08-20 15:47:33 -04:00
|
|
|
PATCH_DIST_STRIP=-p1
|
|
|
|
CONFIGURE_ARGS+= --enable-compressed
|
2002-06-14 17:09:11 -04:00
|
|
|
.else
|
2002-01-10 20:44:15 -05:00
|
|
|
SUPDISTFILES+= patch-${VERSION}.rr.compressed.1.gz:0
|
2001-08-20 15:47:33 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmixmaster}
|
2001-10-24 22:28:14 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mixmaster="${LOCALBASE}/sbin/mixmaster"
|
|
|
|
RUN_DEPENDS+= ::mail/mixmaster
|
2001-08-20 15:47:33 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(HOMESPOOL)
|
|
|
|
CONFIGURE_ARGS+= --with-homespool="${HOMESPOOL}"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(DOMAIN)
|
|
|
|
CONFIGURE_ARGS+= --with-domain="${DOMAIN}"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/i$//}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@strip ${PREFIX}/bin/mutt
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mutt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Muttrc \
|
2002-01-08 00:25:12 -05:00
|
|
|
${PREFIX}/share/examples/mutt/Muttrc.sample
|
2001-08-20 15:47:33 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/mime.types \
|
2002-01-08 00:25:12 -05:00
|
|
|
${PREFIX}/share/examples/mutt/mime.types.sample
|
2002-06-14 13:43:51 -04:00
|
|
|
mv ${PREFIX}/share/doc/mutt/samples/* ${PREFIX}/share/examples/mutt
|
2001-08-20 15:47:33 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|