Ports using USE_PYTHON=distutils are now flavored. They will automatically get flavors (py27, py34, py35, py36) depending on what versions they support. There is also a USE_PYTHON=flavors for ports that do not use distutils but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if using distutils but flavors are not wanted. A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been added to cope with Python ports that did not have the Python PKGNAMEPREFIX but are flavored. USES=python now also exports a PY_FLAVOR variable that contains the current python flavor. It can be used in dependency lines when the port itself is not python flavored. For example, deskutils/calibre. By default, all the flavors are generated. To only generate flavors for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf. In all the ports with Python dependencies, the *_DEPENDS entries MUST end with the flavor so that the framework knows which to build/use. This is done by appending '@${PY_FLAVOR}' after the origin (or @${FLAVOR} if in a Python module with Python flavors, as the content will be the same). For example: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} PR: 223071 Reviewed by: portmgr, python Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12464
110 lines
2.7 KiB
Makefile
110 lines
2.7 KiB
Makefile
# Created by: Attila Nagy <bra@fsn.hu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mailutils
|
|
PORTVERSION= 3.4
|
|
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= libltdl.so:devel/libltdl
|
|
|
|
USES= gmake libtool localbase readline tar:xz
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
USE_RC_SUBR= comsatd imap4d pop3d
|
|
INSTALL_TARGET= install-strip
|
|
|
|
PLIST_SUB+= LIBVERSION=5.0.5 VERSION=${PORTVERSION}
|
|
|
|
INFO= ${PORTNAME}
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README* THANKS TODO
|
|
|
|
OPTIONS_DEFINE= DEBUG DOCS EMACS GNUTLS GSSAPI GUILE MH NNTP NLS \
|
|
PAM PYTHON
|
|
OPTIONS_DEFAULT= GDBM GNUTLS PAM
|
|
OPTIONS_MULTI= DB
|
|
OPTIONS_MULTI_DB= BDB GDBM KYOTOCABINET LDAP MYSQL PGSQL TOKYOCABINET
|
|
OPTIONS_SUB= yes
|
|
|
|
BDB_DESC= Berkeley DB v4.8 support (last working one)
|
|
DB_DESC= Database configuration
|
|
EMACS_DESC= Emacs interface to MH (implies MH)
|
|
KYOTOCABINET_DESC= Kyoto Cabinet database support
|
|
MH_DESC= MH (Message Handling) system support
|
|
TOKYOCABINET_DESC= Tokyo Cabinet database support
|
|
|
|
DEBUG_CONFIGURE_ON= --enable-debug
|
|
|
|
EMACS_USE= EMACS=yes
|
|
EMACS_IMPLIES= MH
|
|
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
|
GNUTLS_CONFIGURE_WITH= gnutls
|
|
|
|
GSSAPI_RUN_DEPENDS= cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi
|
|
GSSAPI_CONFIGURE_WITH= gssapi
|
|
|
|
GUILE_LIB_DEPENDS= libguile.so:lang/guile libgmp.so:math/gmp
|
|
GUILE_CONFIGURE_WITH= guile
|
|
|
|
MH_CONFIGURE_ENABLE= mh
|
|
|
|
NNTP_CONFIGURE_ENABLE= nntp
|
|
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
PAM_CONFIGURE_ENABLE= pam
|
|
|
|
PYTHON_BUILD_DEPENDS= python-config:lang/python
|
|
PYTHON_USES= python:2.7
|
|
PYTHON_CONFIGURE_ENABLE=python
|
|
|
|
BDB_USES= bdb:48
|
|
BDB_CONFIGURE_WITH= berkeley-db
|
|
BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR}
|
|
BDB_LDFLAGS= -L${BDB_LIB_DIR}
|
|
INVALID_BDB_VER= 5+
|
|
|
|
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
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMH} && exists(${LOCALBASE}/bin/emacs)
|
|
USE_EMACS= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
@${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}/maidag/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}
|
|
|
|
.include <bsd.port.mk>
|