freebsd-ports/mail/mailutils/Makefile
Alexey Dokuchaev 273ea71300 - Update to version 3.10
- Remove dead NNTP support
- Bump Python requirement to 3.0+

Reported by:	maintainer
2020-08-17 08:12:34 +00:00

115 lines
3 KiB
Makefile

# Created by: Attila Nagy <bra@fsn.hu>
# $FreeBSD$
PORTNAME= mailutils
PORTVERSION= 3.10
CATEGORIES= mail
MASTER_SITES= GNU GNU_ALPHA
MAINTAINER= zeus@gnu.org.ua
COMMENT= Utilities, daemons, and filters for processing e-mail
LICENSE= GPLv3+
LIB_DEPENDS= libgc-threaded.so:devel/boehm-gc-threaded \
libltdl.so:devel/libltdl \
libunistring.so:devel/libunistring
TEST_DEPENDS= automake:devel/automake
USES= gmake iconv libtool localbase readline tar:xz
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_RC_SUBR= comsatd imap4d pop3d
INSTALL_TARGET= install-strip
TEST_TARGET= check
PLIST_SUB+= LIBVERSION=7.0.0 LIBSUFX=7 VERSION=${PORTVERSION}
INFO= ${PORTNAME}
PORTDOCS= AUTHORS ChangeLog NEWS README* THANKS TODO
OPTIONS_DEFINE= DOCS FRIBIDI GNUTLS GSSAPI GUILE MH NLS PAM PYTHON
OPTIONS_DEFAULT= GDBM GNUTLS PAM
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= BDB GDBM KYOTOCABINET LDAP MYSQL PGSQL TOKYOCABINET
OPTIONS_SUB= yes
DB_DESC= Database configuration
KYOTOCABINET_DESC= Kyoto Cabinet database support
MH_DESC= MH (Message Handling) system support
TOKYOCABINET_DESC= Tokyo Cabinet database support
FRIBIDI_LIB_DEPENDS= libfribidi.so:converters/fribidi
FRIBIDI_CONFIGURE_WITH= fribidi
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_WITH= gnutls
GSSAPI_RUN_DEPENDS= cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi
GSSAPI_USES= ssl
GSSAPI_CONFIGURE_WITH= gssapi
GUILE_LIB_DEPENDS= libguile-2.2.so:lang/guile2 libgmp.so:math/gmp
GUILE_USES= makeinfo pkgconfig
GUILE_CONFIGURE_WITH= guile
MH_CONFIGURE_ENV= ac_cv_prog_EMACS=no
MH_CONFIGURE_ENABLE= mh
MH_USES= emacs:noflavors
MH_VARS= EMACS_NO_DEPENDS=yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
PAM_CONFIGURE_ENABLE= pam
PYTHON_BINARY_ALIAS= python-config=python${PYTHON_VER}-config
PYTHON_USES= python:3.0+
PYTHON_CONFIGURE_ENABLE=python
BDB_USES= bdb
BDB_CONFIGURE_WITH= berkeley-db
BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR}
BDB_LDFLAGS= -L${BDB_LIB_DIR}
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
GDBM_CONFIGURE_WITH= gdbm
KYOTOCABINET_LIB_DEPENDS= libkyotocabinet.so:databases/kyotocabinet
KYOTOCABINET_CONFIGURE_WITH= kyotocabinet
LDAP_USE= OPENLDAP=yes
LDAP_CONFIGURE_WITH= ldap
MYSQL_USES= mysql
MYSQL_CONFIGURE_WITH= mysql
PGSQL_USES= pgsql
PGSQL_CONFIGURE_WITH= postgres
TOKYOCABINET_LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet
TOKYOCABINET_CONFIGURE_WITH= tokyocabinet
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
post-patch:
@${REINPLACE_CMD} -e '/MU_AUTHLIBS=/s,-lldap,-llber &,' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e '/need_charset_alias=/s|true|false|' \
${WRKSRC}/lib/gnu/Makefile.in
@${REINPLACE_CMD} -e '/chown/,+1s|ch|#&|' \
${WRKSRC}/dotlock/Makefile.in ${WRKSRC}/mda/mda/Makefile.in
@${REINPLACE_CMD} -e 's,-E,& -P,' ${WRKSRC}/libmu_scm/Makefile.in
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install-MH-on:
@${MKDIR} ${STAGEDIR}${EMACS_SITE_LISPDIR}
${RLN} ${STAGEDIR}${DATADIR}/mh/mailutils-mh.el \
${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}
.include <bsd.port.mk>