2018-09-21 03:11:11 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= PyFR
|
2018-10-17 03:27:27 -04:00
|
|
|
DISTVERSION= 1.8.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-11 20:35:33 -05:00
|
|
|
PORTREVISION= 2
|
2018-09-21 03:11:11 -04:00
|
|
|
CATEGORIES= science python
|
|
|
|
MASTER_SITES= http://www.pyfr.org/download/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Framework for solving advection-diffusion type problems
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
2018-09-21 16:33:16 -04:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2018-09-21 03:11:11 -04:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.0:devel/py-appdirs@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}gimmik>=2.0:math/py-gimmik@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}h5py>=2.6:science/py-h5py@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}mako>=1.0.0:textproc/py-mako@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}mpi4py>=2.0:net/py-mpi4py@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pytools>=2016.2.1:devel/py-pytools@${PY_FLAVOR} \
|
|
|
|
${NUMPY}
|
|
|
|
|
|
|
|
USES= python:3.3+ shebangfix zip
|
|
|
|
SHEBANG_FILES= setup.py pyfr/__main__.py
|
|
|
|
USE_PYTHON= distutils concurrent autoplist
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
2018-09-21 16:33:16 -04:00
|
|
|
OPTIONS_MULTI= PARALLEL
|
|
|
|
OPTIONS_MULTI_PARALLEL= OPENCL OPENMP # CUDA isn't supported on FreeBSD
|
|
|
|
OPTIONS_DEFAULT= ${OPTIONS_MULTI_PARALLEL}
|
2018-09-22 02:25:19 -04:00
|
|
|
PARALLEL_DESC= Parallelization backends to install
|
2018-09-21 03:11:11 -04:00
|
|
|
|
2018-09-22 02:25:19 -04:00
|
|
|
OPENCL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyopencl>0:devel/py-pyopencl@${PY_FLAVOR} \
|
|
|
|
clblas>0:math/clblas
|
|
|
|
OPENMP_RUN_DEPENDS= openmp>0:devel/openmp \
|
|
|
|
libxsmm>0:math/libxsmm
|
2018-09-21 03:11:11 -04:00
|
|
|
|
2018-09-21 16:33:16 -04:00
|
|
|
pre-build: # patch in pre-build to make the patch less error-prone (it has %%LOCALBASE%%)
|
|
|
|
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/pyfr/backends/openmp/compiler.py
|
|
|
|
|
2018-09-21 03:11:11 -04:00
|
|
|
post-install: # workaround: https://groups.google.com/forum/#!topic/pyfrmailinglist/RNi_LcizGBo
|
|
|
|
@${RM} ${STAGEDIR}${PREFIX}/__main__.py
|
|
|
|
@${REINPLACE_CMD} 's|^${PREFIX}/__main__\.py||' ${_PYTHONPKGLIST}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|