diff options
Diffstat (limited to 'math/py-numpy/Makefile')
-rw-r--r-- | math/py-numpy/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile new file mode 100644 index 000000000000..c3e960e03ff2 --- /dev/null +++ b/math/py-numpy/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: numpy +# Date created: 24 July 2006 +# Whom: Tony Maher +# +# $FreeBSD$ +# + +PORTNAME= numpy +PORTVERSION= 1.0b3 +CATEGORIES= math python +MASTER_SITES= http://numpy.scipy.org/:doc \ + ${MASTER_SITE_SOURCEFORGE:S/$/:source/} +MASTER_SITE_SUBDIR= numpy/:source +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= numpy-${PORTVERSION}${EXTRACT_SUFX}:source \ + numpy.pdf:doc +EXTRACT_ONLY= numpy-${PORTVERSION}${EXTRACT_SUFX} + +MAINTAINER= tonymaher@optusnet.com.au +COMMENT= The New Numeric Extension to Python + +LIB_DEPENDS= lapack.3:${PORTSDIR}/math/lapack \ + blas.1:${PORTSDIR}/math/blas + +USE_PYTHON= yes +USE_PYDISTUTILS=yes + +.include <bsd.port.pre.mk> + +pre-fetch: +.if ${PYTHON_REL} < 200 + @${ECHO} "Py-numpy doesn't work with Python versions < 2.0." + @${ECHO} "Please use the py-numeric17 port for these." + @${FALSE} +.endif + +post-extract: + @${CP} ${DISTDIR}/numpy.pdf ${WRKDIR} + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/numpy.pdf ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> |