e366d0c694
Should anybody feel like they could be the maintainer for any of thewe packages, please adjust.
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2003/06/02 01:18:24 jschauma Exp $
|
|
|
|
DISTNAME= ScientificPython-2.2
|
|
PKGNAME= ${PYPKGPREFIX}-Scientific-2.2
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://starship.python.net/crew/hinsen/ \
|
|
http://dirac.cnrs-orleans.fr/programs/
|
|
|
|
MAINTAINER= tech-pkg@netbsd.org
|
|
HOMEPAGE= http://starship.python.net/crew/hinsen/scientific.html
|
|
COMMENT= Python modules for scientific computing
|
|
|
|
CONFLICTS+= py-Scientific-*
|
|
|
|
DEPENDS+= mpich>=1.2.1:../../parallel/mpi-ch
|
|
BUILDLINK_DEPENDS.python20= python20>=2.0.1nb1
|
|
BUILDLINK_DEPENDS.python21= python21>=2.1.1nb1
|
|
PYTHON_VERSIONS_ACCEPTED= 20 21 # doesn't compile for 22
|
|
|
|
USE_BUILDLINK2= yes
|
|
PYDISTUTILSPKG= yes
|
|
PYBINMODULE= yes
|
|
|
|
NETCDFPREFIX_DEFAULT=${LOCALBASE}
|
|
MPICHPREFIX_DEFAULT=${LOCALBASE}
|
|
EVAL_PREFIX+= NETCDFPREFIX=netcdf MPICHPREFIX=mpich
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
|
|
do-configure:
|
|
${SED} -e "s|@NETCDFPREFIX@|${NETCDFPREFIX}|g" \
|
|
-e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \
|
|
${WRKSRC}/setup.py > ${WRKSRC}/setup.py.tmp
|
|
${MV} -f ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
|
|
${SED} -e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \
|
|
${FILESDIR}/Setup.in > ${WRKSRC}/Src/MPI/Setup.in
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/Src/MPI && ${PYTHONBIN} compile.py
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Src/MPI/mpipython \
|
|
${PREFIX}/bin/mpipython${PYVERSSUFFIX}
|
|
|
|
.include "../../devel/netcdf/buildlink2.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../math/py-Numeric/buildlink2.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|