aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-numpy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-numpy/Makefile')
-rw-r--r--math/py-numpy/Makefile28
1 files changed, 23 insertions, 5 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index ef6c8cb0292d..56b3c038a052 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -6,27 +6,39 @@
#
PORTNAME= numpy
-PORTVERSION= 1.0b3
+PORTVERSION= 1.0r1
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 \
+DISTFILES= numpy-${PORTVERSION:S/r/rc/}${EXTRACT_SUFX}:source \
numpy.pdf:doc
-EXTRACT_ONLY= numpy-${PORTVERSION}${EXTRACT_SUFX}
+EXTRACT_ONLY= numpy-${PORTVERSION:S/r/rc/}${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
+CONFLICTS= f2py-*
+
+OPTIONS= ATLAS "Use optimized blas library" Off
USE_PYTHON= yes
USE_PYDISTUTILS=yes
+MAN1= f2py.1
+
+LATEST_LINK= py-${PORTNAME}
+WRKSRC= ${WRKDIR}/${DISTNAME:S/r/rc/}
.include <bsd.port.pre.mk>
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
+.else
+LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack \
+ blas.1:${PORTSDIR}/math/blas
+.endif
+
.if ${OSVERSION} < 500000
BROKEN= does not compile
.endif
@@ -41,7 +53,13 @@ pre-fetch:
post-extract:
@${CP} ${DISTDIR}/numpy.pdf ${WRKDIR}
+post-patch:
+.if defined(WITH_ATLAS)
+ @${CP} ${FILESDIR}/site.cfg ${WRKSRC}
+.endif
+
post-install:
+ ${INSTALL_MAN} ${WRKSRC}/numpy/f2py/f2py.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/numpy.pdf ${DOCSDIR}