mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
- Update USE_PYTHON=cython{,_run,_test} - Convert all cython3 occurrence to USE_PYTHON=cython3* - While I'm here, fix incorrect usage of combining cython3 in BUILD_DEPENDS and USE_PYTHON=cython It is added to simplify the future transition from Cython 0.29 to 3. The minimal version is set to 3.0.12 because it is required by devel/py-propcache. The upper bound of version is set to 3.1 because it is limited by multiple ports.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
PORTNAME= mpi4py
|
|
DISTVERSION= 4.0.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= net parallel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= laurent.chardon@gmail.com
|
|
COMMENT?= Python bindings for MPI (OpenMPI)
|
|
WWW= https://github.com/mpi4py/mpi4py
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
|
|
|
|
USES= pkgconfig python
|
|
USE_PYTHON= autoplist concurrent cython3 distutils
|
|
|
|
MP?= OPENMPI
|
|
.if ${MP} == "OPENMPI"
|
|
USES+= mpi:openmpi
|
|
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}mpi4py-mpich-4*
|
|
.elif ${MP} == "MPICH"
|
|
USES+= fortran mpi:mpich
|
|
LDFLAGS+= ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so
|
|
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}mpi4py-4*
|
|
.else
|
|
BROKEN= invalid parameter MP
|
|
.endif
|
|
|
|
LDFLAGS+= ${MPI_LIBS}
|
|
|
|
#SLAVEDIRS= net/py-mpi4py-mpich
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTDOCS= *
|
|
|
|
pre-configure:
|
|
${CP} ${FILESDIR}/mpi.cfg ${WRKSRC}/
|
|
${REINPLACE_CMD} -e 's|%%LOCALBASE%%/mpi/openmpi|${MPI_HOME}|' \
|
|
${WRKSRC}/mpi.cfg
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
post-install:
|
|
(cd ${STAGEDIR}${PYTHON_SITELIBDIR}/mpi4py && ${STRIP_CMD} *.so)
|
|
|
|
do-test:
|
|
(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)
|
|
|
|
.include <bsd.port.mk>
|