freebsd-ports/math/py-scientific/Makefile

39 lines
1.1 KiB
Makefile

# New ports collection makefile for: py-scientific
# Date created: 29 July 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= scientific
PORTVERSION= 2.2
CATEGORIES= math python
MASTER_SITES= http://starship.python.net/crew/hinsen/ \
http://dirac.cnrs-orleans.fr/programs/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ScientificPython-${PORTVERSION}
MAINTAINER= tg@FreeBSD.org
BUILD_DEPENDS= ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/py-numeric
LIB_DEPENDS= netcdf.1:${PORTSDIR}/math/netcdf
RUN_DEPENDS= ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/py-numeric
USE_PYTHON= yes
USE_PYDISTUTILS=yes
NUMPYDIR= ${PYTHON_SITELIBDIR}/Numeric
DOCDIR= ${PREFIX}/share/doc/py-scientific
EXAMPLEDIR= ${PREFIX}/share/examples/py-scientific
post-install:
@${MKDIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCDIR}
.if !defined(NOPORTDOCS)
cd ${WRKDIR}/${DISTNAME}/Doc; tar -c --exclude='*~' -f - . | \
(cd ${DOCDIR}; tar -xf -)
@${MKDIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Examples/* ${EXAMPLEDIR}
.endif
.include <bsd.port.mk>