pkgsrc/math/py-Scientific/Makefile
bacon 87edcb24b1 math/blas, math/lapack: Install interchangeable BLAS system
Install the new interchangeable BLAS system created by Thomas Orgis,
currently supporting Netlib BLAS/LAPACK, OpenBLAS, cblas, lapacke, and
Apple's Accelerate.framework.  This system allows the user to select any
BLAS implementation without modifying packages or using package options, by
setting PKGSRC_BLAS_TYPES in mk.conf. See mk/blas.buildlink3.mk for details.

This commit should not alter behavior of existing packages as the system
defaults to Netlib BLAS/LAPACK, which until now has been the only supported
implementation.

Details:

Add new mk/blas.buildlink3.mk for inclusion in dependent packages
Install compatible Netlib math/blas and math/lapack packages
Update math/blas and math/lapack MAINTAINER approved by adam@
OpenBLAS, cblas, and lapacke will follow in separate commits
Update direct dependents to use mk/blas.buildlink3.mk
Perform recursive revbump
2020-10-12 21:51:57 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.68 2020/10/12 21:52:02 bacon Exp $
DISTNAME= ScientificPython-2.8.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Python//}
PKGREVISION= 18
CATEGORIES= math python
MASTER_SITES= http://sourcesup.cru.fr/frs/download.php/4411/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://dirac.cnrs-orleans.fr/ScientificPython/
COMMENT= Python modules for scientific computing
LICENSE= cecill-2.1
CONFLICTS+= py-Scientific-[0-9]*
MAKE_ENV+= NETCDF_PREFIX=${BUILDLINK_PREFIX.netcdf}
PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 2.8.1
.include "../../lang/python/pyversion.mk"
PYPLAT_CMD= ${PYTHONBIN} -c "import sys; print sys.platform"
PLIST_SUBST+= PYPLAT=${PYPLAT_CMD:sh}
INSTALLATION_DIRS= bin
post-build:
${RUN} cd ${WRKSRC}/Src/MPI && ${SETENV} CFLAGS=${CFLAGS:Q} \
LDFLAGS="${LDFLAGS} ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" ${PYTHONBIN} compile.py
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/Src/MPI/mpipython \
${DESTDIR}${PREFIX}/bin/mpipython${PYVERSSUFFIX}
.include "../../devel/netcdf/buildlink3.mk"
.include "../../lang/python/distutils.mk"
.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/mpi.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"