# $NetBSD: Makefile,v 1.84 2002/09/04 12:48:36 tron Exp $ DISTNAME= mutt-1.4i PKGNAME= ${DISTNAME:C/i$//} CATEGORIES= mail MASTER_SITES= ftp://ftp.mutt.org/pub/mutt/ \ ftp://ftp.stealth.net/pub/mirrors/ftp.mutt.org/pub/mutt/ \ ftp://gd.tuwien.ac.at/infosys/mail/mutt/ \ ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ MAINTAINER= tron@netbsd.org HOMEPAGE= http://www.mutt.org/ COMMENT= text-based MIME mail client with PGP support USE_BUILDLINK2= YES BUILD_USES_MSGFMT= YES USE_GMAKE= YES GNU_CONFIGURE= YES CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} \ --with-docdir=${PREFIX}/share/doc/mutt \ --without-included-gettext \ --enable-pop --enable-imap LDFLAGS+= ${_STRIPFLAG_CC} WRKSRC= ${WRKDIR}/${DISTNAME:C/i$$//} .include "../../mk/bsd.prefs.mk" .if ${MUTT_USE_SLANG} == YES . include "../../devel/libslang/buildlink2.mk" CONFIGURE_ARGS+= --with-slang=${BUILDLINK_PREFIX.libslang} .else . if ${MUTT_USE_NCURSES} == YES USE_NCURSES= YES . endif . include "../../devel/ncurses/buildlink2.mk" CONFIGURE_ARGS+= --with-curses=${BUILDLINK_PREFIX.ncurses} .endif # There seems to be a problem using NetBSD's /bin/sh, so use /bin/ksh instead. .if ${OPSYS} == "NetBSD" CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh .endif .if ${MUTT_USE_SSL} == YES .include "../../security/openssl/buildlink2.mk" CONFIGURE_ARGS+= --with-ssl=${SSLBASE} .else CONFIGURE_ARGS+= --without-ssl .endif BUILD_DEFS+= MUTT_USE_NCURSES MUTT_USE_SLANG MUTT_USE_SSL MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}" EGDIR= ${PREFIX}/share/doc/mutt/samples CONF_FILES= ${EGDIR}/Muttrc ${PKG_SYSCONFDIR}/Muttrc SUPPORT_FILES= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types post-install: ${INSTALL_DATA} ${WRKSRC}/Muttrc ${PREFIX}/share/doc/mutt/samples ${INSTALL_DATA} ${WRKSRC}/mime.types ${PREFIX}/share/doc/mutt/samples .include "../../converters/libiconv/buildlink2.mk" .include "../../devel/gettext-lib/buildlink2.mk" .include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk"