2006-03-22 07:43:09 -05:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.21 2006/03/22 12:43:09 bernd Exp $
|
2004-02-19 15:42:05 -05:00
|
|
|
|
|
|
|
CATEGORIES= mail
|
2005-02-07 12:16:15 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.mutt.org/
|
|
|
|
|
2004-02-19 15:42:05 -05:00
|
|
|
MASTER_SITES_MUTT= ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \
|
|
|
|
ftp://ftp.mutt.org/mutt/ \
|
|
|
|
ftp://ftp.gbnet.net/pub/mutt-international/ \
|
|
|
|
ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/
|
2005-02-07 12:16:15 -05:00
|
|
|
|
2004-02-19 15:42:05 -05:00
|
|
|
MASTER_SITES0= http://www.spinnaker.de/mutt/compressed/
|
2005-11-11 21:29:47 -05:00
|
|
|
MASTER_SITES1= http://mirrors.protection.cx/~jolan/
|
2004-02-19 15:42:05 -05:00
|
|
|
|
2004-08-10 05:14:47 -04:00
|
|
|
MODULES= devel/gettext
|
2004-02-19 15:42:05 -05:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-02-07 12:16:15 -05:00
|
|
|
|
2005-05-03 11:37:16 -04:00
|
|
|
WANTLIB= c crypto des ssl
|
2004-02-19 15:42:05 -05:00
|
|
|
|
2004-06-28 10:17:21 -04:00
|
|
|
FLAVORS+= slang mixmaster compressed
|
2004-02-19 15:42:05 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= autoconf old
|
|
|
|
CONFIGURE_ARGS= --with-sharedir="${PREFIX}/share/mutt" \
|
|
|
|
--with-docdir="${PREFIX}/share/doc/mutt" \
|
2005-02-07 12:16:15 -05:00
|
|
|
--enable-flock \
|
|
|
|
--disable-fcntl \
|
2004-02-19 15:42:05 -05:00
|
|
|
--enable-external_dotlock \
|
2005-02-07 12:16:15 -05:00
|
|
|
--enable-imap \
|
|
|
|
--enable-pop \
|
|
|
|
--with-ssl \
|
|
|
|
--sysconfdir=${CONFDIR}
|
|
|
|
|
2005-05-03 11:37:16 -04:00
|
|
|
.if ${KERBEROS5} == "yes"
|
|
|
|
CONFIGURE_ARGS+=--with-gss
|
|
|
|
WANTLIB+= gssapi krb5
|
|
|
|
.endif
|
|
|
|
|
2004-02-19 15:42:05 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ISPELL="${LOCALBASE}/bin/ispell"
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mslang}
|
2004-06-28 10:17:21 -04:00
|
|
|
LIB_DEPENDS+= slang.14::devel/libslang
|
|
|
|
CONFIGURE_ARGS+= --with-slang="${PREFIX}"
|
2005-01-02 07:56:04 -05:00
|
|
|
WANTLIB+= m termlib
|
2004-02-19 15:42:05 -05:00
|
|
|
.else
|
2004-06-28 10:17:21 -04:00
|
|
|
CONFIGURE_ARGS+= --with-curses
|
2005-01-02 07:56:04 -05:00
|
|
|
WANTLIB+= ncurses
|
2004-02-19 15:42:05 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# compressed folder support provided by
|
|
|
|
# http://www.spinnaker.de/mutt/compressed/
|
|
|
|
.if ${FLAVOR:L:Mcompressed}
|
2004-06-28 10:17:21 -04:00
|
|
|
PATCHFILES+= patch-${VERSION}.rr.compressed.1.gz:0
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
CONFIGURE_ARGS+= --enable-compressed
|
2004-02-19 15:42:05 -05:00
|
|
|
.else
|
2004-06-28 10:17:21 -04:00
|
|
|
SUPDISTFILES+= patch-${VERSION}.rr.compressed.1.gz:0
|
2004-02-19 15:42:05 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmixmaster}
|
2004-06-28 10:17:21 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mixmaster="${LOCALBASE}/sbin/mixmaster"
|
|
|
|
RUN_DEPENDS+= ::mail/mixmaster
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mhcache}
|
|
|
|
CONFIGURE_ARGS+= --enable-hcache
|
2004-09-22 17:26:40 -04:00
|
|
|
LIB_DEPENDS+= gdbm.2::databases/gdbm
|
2004-06-28 10:17:21 -04:00
|
|
|
.else
|
2005-02-07 12:16:15 -05:00
|
|
|
CONFIGURE_ARGS+= --without-gdbm
|
2004-02-19 15:42:05 -05:00
|
|
|
.endif
|
|
|
|
|
2005-10-05 05:48:10 -04:00
|
|
|
.if ${FLAVOR:L:Midn}
|
|
|
|
CONFIGURE_ARGS+= --with-idn
|
|
|
|
LIB_DEPENDS+= idn.16::devel/libidn
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-idn
|
|
|
|
.endif
|
|
|
|
|
2005-11-09 16:19:03 -05:00
|
|
|
.if ${FLAVOR:L:Msidebar}
|
2005-11-11 21:29:47 -05:00
|
|
|
PATCHFILES+= patch-1.5.10i.sidebar.20050816.txt-fixed:1
|
2005-11-09 16:19:03 -05:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
.else
|
2005-11-11 21:29:47 -05:00
|
|
|
SUPDISTFILES+= patch-1.5.10i.sidebar.20050816.txt-fixed:1
|
2005-11-09 16:19:03 -05:00
|
|
|
.endif
|
|
|
|
|
2004-02-19 15:42:05 -05:00
|
|
|
.if defined(HOMESPOOL)
|
2005-02-07 12:16:15 -05:00
|
|
|
CONFIGURE_ARGS+= --with-homespool="${HOMESPOOL}"
|
2004-02-19 15:42:05 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(DOMAIN)
|
2004-06-28 10:17:21 -04:00
|
|
|
CONFIGURE_ARGS+= --with-domain="${DOMAIN}"
|
2004-02-19 15:42:05 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/i$//}
|
|
|
|
CONFDIR= ${SYSCONFDIR}/mutt
|
|
|
|
SUBST_VARS= CONFDIR
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@strip ${PREFIX}/bin/mutt
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mutt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Muttrc \
|
|
|
|
${PREFIX}/share/examples/mutt/Muttrc.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mime.types \
|
|
|
|
${PREFIX}/share/examples/mutt/mime.types.sample
|
|
|
|
@mv -f ${PREFIX}/share/doc/mutt/samples/* ${PREFIX}/share/examples/mutt
|
2004-04-06 08:43:46 -04:00
|
|
|
@perl -pi -e "s,/etc/Muttrc,${CONFDIR}/Muttrc," ${PREFIX}/man/man1/mutt.1
|
|
|
|
@perl -pi -e "s,/etc/mime.types,${CONFDIR}/mime.types," ${PREFIX}/man/man1/mutt.1
|
2006-03-22 07:43:09 -05:00
|
|
|
@perl -pi -e "s,/usr/bin/gpg,${LOCALBASE}/bin/gpg," \
|
|
|
|
${PREFIX}/share/examples/mutt/gpg.rc
|