diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 1999-07-30 14:16:50 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 1999-07-30 14:16:50 +0000 |
commit | 8aa53ff31e8999718c2886dd93d3b6b66209c74f (patch) | |
tree | 04cba60be57626f7f4ad9aab0cb4484882d94791 /math/py-scientific/Makefile | |
parent | New port netcdf. The NetCDF (network Common Data Form) is a library (diff) |
New port py-scientific. This is Konrad Hinsen's collection of Python modules
that are useful for scientific computing.
Notes
Notes:
svn path=/head/; revision=20396
Diffstat (limited to 'math/py-scientific/Makefile')
-rw-r--r-- | math/py-scientific/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/math/py-scientific/Makefile b/math/py-scientific/Makefile new file mode 100644 index 000000000000..edd611382875 --- /dev/null +++ b/math/py-scientific/Makefile @@ -0,0 +1,51 @@ +# New ports collection makefile for: py-scientific +# Version required: 2.0b1 +# Date created: 29 July 1999 +# Whom: Thomas Gellekum <tg@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= ScientificPython-2.0b1 +PKGNAME= py-scientific-2.0b1 +CATEGORIES= math python +MASTER_SITES= http://starship.python.net/crew/hinsen/ \ + http://dirac.cnrs-orleans.fr/programs/ + +MAINTAINER= ports@FreeBSD.org + +BUILD_DEPENDS= python:${PORTSDIR}/lang/python \ + ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy +LIB_DEPENDS= netcdf.1:${PORTSDIR}/math/netcdf +RUN_DEPENDS= python:${PORTSDIR}/lang/python \ + ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy + +WRKSRC= ${WRKDIR}/${DISTNAME}/Src + +PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5 +NUMPYDIR= ${PYTHONSCRIPTDIR}/site-packages/numerical +SCIENTIFICDIR= ${PYTHONSCRIPTDIR}/site-packages/Scientific +DOCDIR= ${PREFIX}/share/doc/py-scientific +EXAMPLEDIR= ${PREFIX}/share/examples/py-scientific + +post-extract: + @${CP} ${FILESDIR}/Setup ${WRKSRC} + @${CP} ${PYTHONSCRIPTDIR}/config/Makefile.pre.in ${WRKSRC} + +do-configure: + @(cd ${WRKSRC} && ${CONFIGURE_ENV} ${MAKE} -f Makefile.pre.in boot) + +post-install: + cd ${WRKDIR}/${DISTNAME}; tar cf - Scientific | \ + (cd ${PYTHONSCRIPTDIR}/site-packages; tar xf -) + @${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${SCIENTIFICDIR} + @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${SCIENTIFICDIR} + @${MKDIR} ${EXAMPLEDIR} + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Examples/* ${EXAMPLEDIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCDIR} + cd ${WRKDIR}/${DISTNAME}/Doc; tar cf - . | \ + (cd ${DOCDIR}; tar xf -) +.endif + +.include <bsd.port.mk> |