2004-02-11 14:27:41 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2004/02/11 19:27:41 sturm Exp $
|
2001-08-20 15:47:33 -04:00
|
|
|
|
|
|
|
COMMENT= "tty-based e-mail client"
|
|
|
|
|
2003-03-20 14:11:19 -05:00
|
|
|
VERSION= 1.4.1
|
2004-02-11 14:27:41 -05:00
|
|
|
DISTNAME= mutt-${VERSION}i
|
|
|
|
PKGNAME= ${DISTNAME}p0
|
2002-01-10 20:44:15 -05:00
|
|
|
CATEGORIES= mail
|
2002-12-24 08:09:34 -05:00
|
|
|
MASTER_SITES= ftp://ftp.mutt.org/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/ \
|
2002-12-24 08:09:34 -05:00
|
|
|
ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/
|
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>
|
|
|
|
|
2004-02-11 14:19:47 -05:00
|
|
|
# GPL
|
2001-08-20 15:47:33 -04:00
|
|
|
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
|
|
|
|
|
2004-01-16 09:26:27 -05:00
|
|
|
CONFIGURE_STYLE= autoconf old
|
2001-08-20 15:47:33 -04:00
|
|
|
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 \
|
2003-05-12 17:16:42 -04:00
|
|
|
--enable-imap --enable-pop --with-ssl \
|
2004-01-15 20:59:08 -05:00
|
|
|
--with-gss --sysconfdir=${CONFDIR}
|
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
|
2004-01-16 09:26:27 -05:00
|
|
|
CONFIGURE_STYLE+= automake
|
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$//}
|
2003-05-12 17:16:42 -04:00
|
|
|
CONFDIR= ${SYSCONFDIR}/mutt
|
|
|
|
SUBST_VARS= CONFDIR
|
2001-08-20 15:47:33 -04:00
|
|
|
|
|
|
|
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>
|