freebsd-ports/mail/neomutt/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

104 lines
3 KiB
Makefile

PORTNAME= neomutt
PORTVERSION= 20220429
CATEGORIES= mail
MAINTAINER= bapt@FreeBSD.org
COMMENT= Bringing together all the Mutt Code
WWW= https://neomutt.org
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.md
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:misc/mime-support \
urlview:textproc/urlview
LIB_DEPENDS= libpcre2-posix.so:devel/pcre2
USES= cpe iconv:translit localbase ncurses perl5 shebangfix ssl
USE_GITHUB= yes
USE_PERL5= build
MAKE_JOBS_UNSAFE= yes
HAS_CONFIGURE= yes
OPTIONS_SUB= yes
SHEBANG_FILES= contrib/smime_keys
OPTIONS_DEFINE= NLS DOCS SASL IDN FLOCK GPGME NOTMUCH
OPTIONS_DEFAULT=SASL TOKYOCABINET NOTMUCH GPGME LMDB NCURSES GSSAPI_BASE
OPTIONS_MULTI= HCACHE
OPTIONS_MULTI_HCACHE= BDB GDBM KYOTOCABINET LMDB QDBM TOKYOCABINET
OPTIONS_SINGLE= GSSAPI
OPTIONS_SINGLE_GSSAPI= GSSAPI_NONE GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
FLOCK_DESC= Use flock() to lock files
GPGME_DESC= Use gpgme to handle pgp
NOTMUCH_DESC= Use notmuch for tagging and searching
HCACHE_DESC= Header-cache backend
KYOTOCABINET_DESC= Kyoto Cabinet support
LMDB_DESC= Lightning Memory-Mapped Database support
QDBM_DESC= Quick DataBase Manager support
TOKYOCABINET_DESC= Tokyo Cabinet support
SCREEN_DESC= Screen options
CONFIGURE_ARGS= --with-ssl="${OPENSSLBASE}" \
--locales-fix \
--fmemopen \
--pcre2 \
--mandir=${PREFIX}/man \
${ICONV_CONFIGURE_ARGS}
CONFIGURE_ENV= CC_FOR_BUILD="${CC}"
# Header cache
BDB_CONFIGURE_ON= --bdb
BDB_USES= bdb
GDBM_CONFIGURE_ON= --gdbm
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
KYOTOCABINET_CONFIGURE_ON= --kyotocabinet
KYOTOCABINET_LIB_DEPENDS= libkyotocabinet.so:databases/kyotocabinet
LMDB_CONFIGURE_ON= --lmdb
LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb
QDBM_CONFIGURE_ON= --qdbm
QDBM_LIB_DEPENDS= libqdbm.so:databases/qdbm
TOKYOCABINET_CONFIGURE_ON= --tokyocabinet
TOKYOCABINET_LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
IDN_LIB_DEPENDS= libidn.so:dns/libidn
IDN_CONFIGURE_ENABLE= idn
FLOCK_CONFIGURE_ON= --with-lock=flock
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_CONFIGURE_ON= --sasl
GPGME_LIB_DEPENDS= libgpgme.so:security/gpgme \
libassuan.so:security/libassuan \
libgpg-error.so:security/libgpg-error
GPGME_CONFIGURE_ENABLE= gpgme
NOTMUCH_LIB_DEPENDS= libnotmuch.so:mail/notmuch
NOTMUCH_CONFIGURE_ENABLE= notmuch
# GSSAPI
GSSAPI_BASE_USES= gssapi
GSSAPI_BASE_CONFIGURE_ON= --gss
GSSAPI_HEIMDAL_USES= gssapi:heimdal
GSSAPI_HEIMDAL_CONFIGURE_ON= --with-gss=${LOCALBASE}
GSSAPI_MIT_USES= gssapi:mit
GSSAPI_MIT_CONFIGURE_ON= --with-gss=${LOCALBASE}
DOCS_CONFIGURE_OFF= --disable-doc
DOCS_BUILD_DEPENDS= xsltproc:textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:textproc/docbook-xsl \
lynx:www/lynx
post-install:
${RM} ${STAGEDIR}${PREFIX}/etc/mime*
${MV} ${STAGEDIR}${PREFIX}/etc/neomuttrc ${STAGEDIR}${PREFIX}/etc/neomuttrc.dist
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/neomutt \
${STAGEDIR}${PREFIX}/libexec/neomutt/pgpewrap
.include <bsd.port.mk>