1997-04-28 09:22:59 +00:00
|
|
|
# New ports collection makefile for: numpy
|
1998-12-29 14:32:07 +00:00
|
|
|
# Version required: 1.8
|
1997-04-28 09:22:59 +00:00
|
|
|
# Date created: 20 April 1997
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1997-04-28 09:22:59 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1997-04-28 09:22:59 +00:00
|
|
|
#
|
|
|
|
|
1999-05-05 09:45:20 +00:00
|
|
|
DISTNAME= LLNLDistribution11
|
1998-12-29 14:32:07 +00:00
|
|
|
PKGNAME= py-numeric-1.8
|
1998-06-25 06:43:28 +00:00
|
|
|
CATEGORIES= math python
|
1998-04-08 11:13:46 +00:00
|
|
|
MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/python/
|
|
|
|
EXTRACT_SUFX= .tgz
|
1997-04-28 09:22:59 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1997-04-28 09:22:59 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
1998-11-02 08:42:37 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/Numerical
|
1998-01-21 13:07:45 +00:00
|
|
|
CONFIGURE_ENV= PREFIX=${PREFIX}
|
1997-04-28 09:22:59 +00:00
|
|
|
ALL_TARGET= sharedmods
|
|
|
|
MAKE_FLAGS+= 'OPT=${CFLAGS}'
|
|
|
|
|
1998-01-21 13:07:45 +00:00
|
|
|
PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
|
1999-05-05 09:45:20 +00:00
|
|
|
NUMPYDIR= ${PYTHONSCRIPTDIR}/site-packages/numerical
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/py-numerical
|
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/py-numerical
|
1997-04-28 09:22:59 +00:00
|
|
|
|
|
|
|
do-configure:
|
1998-04-08 11:13:46 +00:00
|
|
|
@(cd ${WRKSRC} && ${CONFIGURE_ENV} python makethis.py)
|
1997-04-28 09:22:59 +00:00
|
|
|
|
1998-04-08 11:13:46 +00:00
|
|
|
post-install:
|
1998-11-16 08:54:42 +00:00
|
|
|
@${MKDIR} ${NUMPYDIR}
|
1998-04-08 11:13:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Lib/* ${NUMPYDIR}
|
1998-01-21 13:07:45 +00:00
|
|
|
@${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${NUMPYDIR}
|
1999-05-05 09:45:20 +00:00
|
|
|
@${ECHO} "numerical" > ${NUMPYDIR}/../numerical.pth
|
|
|
|
@${MKDIR} ${PREFIX}/include/python1.5/numerical
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Include/*object.h ${PREFIX}/include/python1.5/numerical
|
1998-06-24 06:09:19 +00:00
|
|
|
@${MKDIR} ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Demo/* ${EXAMPLEDIR}
|
1997-05-05 12:27:10 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1997-04-28 09:22:59 +00:00
|
|
|
@${MKDIR} ${DOCDIR}
|
1998-04-08 11:13:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Doc/*.html ${DOCDIR}
|
1997-05-05 12:27:10 +00:00
|
|
|
.endif
|
1997-04-28 09:22:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|