1999-07-30 14:16:50 +00:00
|
|
|
# New ports collection makefile for: py-scientific
|
|
|
|
# Date created: 29 July 1999
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1999-07-30 14:16:50 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= scientific
|
|
|
|
PORTVERSION= 2.0b1
|
1999-07-30 14:16:50 +00:00
|
|
|
CATEGORIES= math python
|
|
|
|
MASTER_SITES= http://starship.python.net/crew/hinsen/ \
|
|
|
|
http://dirac.cnrs-orleans.fr/programs/
|
2000-04-14 07:20:58 +00:00
|
|
|
PKGNAMEPREFIX= py-
|
|
|
|
DISTNAME= ScientificPython-${PORTVERSION}
|
1999-07-30 14:16:50 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
|
2000-04-17 07:48:14 +00:00
|
|
|
BUILD_DEPENDS= ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy
|
1999-07-30 14:16:50 +00:00
|
|
|
LIB_DEPENDS= netcdf.1:${PORTSDIR}/math/netcdf
|
2000-04-17 07:48:14 +00:00
|
|
|
RUN_DEPENDS= ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy
|
1999-07-30 14:16:50 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/Src
|
|
|
|
|
|
|
|
PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
|
2000-04-17 07:48:14 +00:00
|
|
|
NUMPYDIR= ${PYTHONSCRIPTDIR}/site-packages/Numeric
|
1999-07-30 14:16:50 +00:00
|
|
|
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>
|