summaryrefslogtreecommitdiff
path: root/math/py-Scientific/Makefile
diff options
context:
space:
mode:
authorjtb <jtb>2001-01-30 02:01:43 +0000
committerjtb <jtb>2001-01-30 02:01:43 +0000
commit2bab1bb6d5dc62d1f49deed89f2aecaf8921f719 (patch)
treeadb080779b0c8cb0fc07017ee54e005846874d2c /math/py-Scientific/Makefile
parent9fa730ccd25e46e462290ba24e95e3c6f3ca65fe (diff)
downloadpkgsrc-2bab1bb6d5dc62d1f49deed89f2aecaf8921f719.tar.gz
Initial import of new py-Scientific package:
Python modules for scientific computing
Diffstat (limited to 'math/py-Scientific/Makefile')
-rw-r--r--math/py-Scientific/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/math/py-Scientific/Makefile b/math/py-Scientific/Makefile
new file mode 100644
index 00000000000..22a54a97cd9
--- /dev/null
+++ b/math/py-Scientific/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/01/30 02:01:43 jtb Exp $
+
+DISTNAME= ScientificPython-2.0.1
+PKGNAME= py-Scientific-2.0.1
+CATEGORIES= math
+MASTER_SITES= http://starship.python.net/crew/hinsen/ \
+ http://dirac.cnrs-orleans.fr/programs/
+
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= http://starship.python.net/crew/hinsen/scientific.html
+
+DEPENDS+= python>=1.5:../../lang/python
+DEPENDS+= netcdf>=3.0:../../devel/netcdf
+DEPENDS+= mpich-[0-9]*:../../parallel/mpi-ch
+DEPENDS+= py-Numeric-[0-9]*:../../math/py-Numeric
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
+IGNORE="${PKGNAME} needs dynamic loading"
+.endif
+
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+EVAL_PREFIX+= PYPREFIX=python NETCDFPREFIX=netcdf MPICHPREFIX=mpich
+
+do-configure:
+ ${SED} -e "s|@NETCDFPREFIX@|${NETCDFPREFIX}|g" \
+ -e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \
+ < ${FILESDIR}/Setup.in > ${WRKSRC}/Src/Setup.in
+
+do-build:
+ (cd ${WRKSRC}/Src && ${PYPREFIX}/bin/python compile.py)
+
+post-build:
+ (eval `${PYPREFIX}/bin/python ${FILESDIR}/printpypath.py` && \
+ ${SED} "s|PYINC|$${PYINC}|g;s|PYSITELIB|$${PYSITELIB}|g" \
+ < ${PKGDIR}/PLIST > ${PLIST_SRC})
+
+do-install:
+ (cd ${WRKSRC} && ${PYPREFIX}/bin/python install.py)
+ ${INSTALL_DATA_DIR} ${PREFIX}/include/python2.0/Scientific
+ @for f in ${WRKSRC}/Scientific/Include/Scientific/*; do \
+ i="${INSTALL_DATA} $$f ${PREFIX}/include/python2.0/Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-Scientific
+ @for f in README COPYRIGHT Doc/PDF/manual.pdf; do \
+ i="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/py-Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/py-Scientific
+ @for f in ${WRKSRC}/Doc/HTML/*; do \
+ i="${INSTALL_DATA} $$f ${PREFIX}/share/doc/html/py-Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-Scientific
+ @for f in ${WRKSRC}/Examples/*; do \
+ i="${INSTALL_DATA} $$f ${PREFIX}/share/examples/py-Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+
+.include "../../mk/bsd.pkg.mk"