jca b59233c341 Remove gnupg-1.4 and replace it with gnupg-2
gnupg-1.4 is not developed actively anymore, and new software expects
a modern "gpg" executable, which leads to pointless patches in the ports
tree.  Move the various users of security/gnupg2 to security/gnupg and
zap patches that forced the use of "gpg2".

Crusade started by edd@ (security/gnupg maintainer), gnupg->gnupg2 test
reports from semarie@, giovanni@ and solene@, input and bulk build by
sthen@.  ok sthen@ edd@ (maintainer)
2020-10-05 19:46:17 +00:00

103 lines
2.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.141 2020/10/05 19:46:17 jca Exp $
COMMENT= tty-based e-mail client
DISTNAME= mutt-1.14.7
EPOCH= 3
REVISION= 0
CATEGORIES= mail
HOMEPAGE= http://www.mutt.org/
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
# GPLv2+
PERMIT_PACKAGE= Yes
# uses pledge()
WANTLIB+= c crypto curses iconv idn2 intl qdbm ssl unistring z
MASTER_SITES= http://ftp.mutt.org/pub/mutt/ \
https://ftp.osuosl.org/pub/mutt/ \
https://bitbucket.org/mutt/mutt/downloads/ \
ftp://ftp.mutt.org/pub/mutt/
LIB_DEPENDS= databases/qdbm \
devel/gettext,-runtime \
devel/libidn2
BUILD_DEPENDS+= textproc/docbook-xsl \
www/lynx
DEBUG_PACKAGES= ${BUILD_PACKAGES}
FLAVORS= debug gpgme sasl slang
FLAVOR?=
CONFIGURE_STYLE= gnu
FLAVOR_COMMA= ${FLAVOR_EXT:S/-/,/g}
SUBST_VARS= FLAVOR_COMMA
MODULES= lang/python
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
MODPY_RUNDEP= No
MODPY_BUILDDEP= No
MODPY_ADJ_FILES= contrib/markdown2html
CONFIGURE_ARGS+= --enable-compressed \
--enable-external_dotlock \
--disable-fcntl \
--enable-flock \
--enable-hcache \
--with-idn2 \
--enable-imap \
--enable-pop \
--enable-sidebar \
--enable-smtp \
--mandir=${PREFIX}/man \
--without-gdbm \
--without-tokyocabinet \
--with-qdbm \
--with-docdir="${PREFIX}/share/doc/mutt" \
--with-ssl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ISPELL="${LOCALBASE}/bin/ispell"
SYSCONFDIR= ${BASESYSCONFDIR}/mutt
FAKE_FLAGS= sysconfdir="${PREFIX}/share/examples/mutt"
## standard flavours:
.if ${FLAVOR:Mdebug}
CONFIGURE_ARGS+= --enable-debug
.endif
.if ${FLAVOR:Mgpgme}
CONFIGURE_ARGS+= --enable-autocrypt \
--enable-gpgme \
--with-sqlite3
LIB_DEPENDS+= databases/sqlite3 \
security/gpgme
WANTLIB+= assuan gpg-error gpgme sqlite3
.endif
.if ${FLAVOR:Msasl}
CONFIGURE_ARGS+= --with-sasl=${LOCALBASE}
LIB_DEPENDS+= security/cyrus-sasl2
WANTLIB+= sasl2
.endif
.if ${FLAVOR:Mslang}
CONFIGURE_ARGS+= --with-slang="${PREFIX}"
LIB_DEPENDS+= devel/libslang
WANTLIB+= m slang>=14
.else
CONFIGURE_ARGS+= --with-curses
.endif
post-install:
mv -f ${PREFIX}/share/doc/mutt/samples/* ${PREFIX}/share/examples/mutt
cd ${PREFIX}/share/examples/mutt; \
chmod +x *.sh *.pl mutt_xtitle markdown2html
.include <bsd.port.mk>