1997-04-28 09:22:59 +00:00
|
|
|
# New ports collection makefile for: numpy
|
|
|
|
# Version required: 1.0b3
|
|
|
|
# Date created: 20 April 1997
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
|
|
|
|
#
|
1998-01-21 11:44:57 +00:00
|
|
|
# $Id: Makefile,v 1.3 1997/05/14 07:38:50 tg Exp $
|
1997-04-28 09:22:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= NumPy
|
|
|
|
PKGNAME= numpy-1.0b3
|
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= http://www.sls.lcs.mit.edu/~jjh/numpy/
|
|
|
|
DISTFILES= NumPy-1.0b3.tar.gz NumPyLib-1.0b2.tar.gz
|
|
|
|
|
|
|
|
MAINTAINER= tg@FreeBSD.ORG
|
|
|
|
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
1997-05-05 12:27:10 +00:00
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
1997-04-28 09:22:59 +00:00
|
|
|
LIB_DEPENDS= lapack\\.2\\.:${PORTSDIR}/math/lapack \
|
|
|
|
ranlib\\.1\\.:${PORTSDIR}/math/libranlib
|
|
|
|
|
1998-01-21 11:44:57 +00:00
|
|
|
BROKEN= python upgrade
|
|
|
|
|
1997-04-28 09:22:59 +00:00
|
|
|
ALL_TARGET= sharedmods
|
|
|
|
MAKE_FLAGS+= 'OPT=${CFLAGS}'
|
|
|
|
|
1997-05-14 07:38:56 +00:00
|
|
|
PYTHONSCRIPTDIR= ${PREFIX}/share/python1.4
|
|
|
|
PYTHONLIBDIR= ${PREFIX}/lib/python1.4/sharedmodules
|
|
|
|
NUMPYDIR= ${PYTHONSCRIPTDIR}/${DISTNAME}
|
1997-04-28 09:22:59 +00:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/${DISTNAME}
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in Makefile
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${NUMPYDIR}
|
1997-05-14 07:38:56 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.so ${PYTHONLIBDIR}
|
1997-04-28 09:22:59 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}/*.py ${NUMPYDIR}
|
1997-05-14 07:38:56 +00:00
|
|
|
@PYTHONPATH=${PYTHONSCRIPTDIR}:${NUMPYDIR} \
|
|
|
|
${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${NUMPYDIR}
|
1997-05-05 12:27:10 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1997-04-28 09:22:59 +00:00
|
|
|
@${MKDIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCDIR}
|
1997-05-05 12:27:10 +00:00
|
|
|
.endif
|
1997-04-28 09:22:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|