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
|
2001-04-03 11:35:20 +00:00
|
|
|
PORTVERSION= 2.2
|
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-09-28 11:19:01 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2000-04-14 07:20:58 +00:00
|
|
|
DISTNAME= ScientificPython-${PORTVERSION}
|
1999-07-30 14:16:50 +00:00
|
|
|
|
2000-09-28 11:19:01 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1999-07-30 14:16:50 +00:00
|
|
|
|
2001-03-29 12:22:56 +00:00
|
|
|
BUILD_DEPENDS= ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
|
|
|
|
${PYDISTUTILS}
|
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
|
|
|
|
2000-09-28 11:19:01 +00:00
|
|
|
USE_PYTHON= yes
|
1999-07-30 14:16:50 +00:00
|
|
|
|
2000-09-28 11:19:01 +00:00
|
|
|
NUMPYDIR= ${PYTHON_SITELIBDIR}/Numeric
|
|
|
|
SCIENTIFICDIR= ${PYTHON_SITELIBDIR}/Scientific
|
1999-07-30 14:16:50 +00:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/py-scientific
|
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/py-scientific
|
|
|
|
|
2001-03-29 12:22:56 +00:00
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install)
|
1999-07-30 14:16:50 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCDIR}
|
2001-04-03 11:35:20 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCDIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
1999-07-30 14:16:50 +00:00
|
|
|
cd ${WRKDIR}/${DISTNAME}/Doc; tar cf - . | \
|
|
|
|
(cd ${DOCDIR}; tar xf -)
|
2001-04-03 11:35:20 +00:00
|
|
|
@${MKDIR} ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Examples/* ${EXAMPLEDIR}
|
1999-07-30 14:16:50 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|