blob: 34bbda54bddd2132f4c6768067e90631301b1a0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $NetBSD: Makefile,v 1.7 2001/04/14 21:43:55 jtb Exp $
DISTNAME= ScientificPython-2.2
PKGNAME= py-Scientific-2.2
CATEGORIES= math
MASTER_SITES= http://starship.python.net/crew/hinsen/ \
http://dirac.cnrs-orleans.fr/programs/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://starship.python.net/crew/hinsen/scientific.html
COMMENT= Python modules for scientific computing
DEPENDS+= python>=1.5:../../lang/python
DEPENDS+= netcdf>=3.0:../../devel/netcdf
DEPENDS+= mpich>=1.2.1:../../parallel/mpi-ch
DEPENDS+= py-Numeric-[0-9]*:../../math/py-Numeric
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
IGNORE="${PKGNAME} needs dynamic loading"
.endif
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
PYPREFIX_DEFAULT=${LOCALBASE}
NETCDFPREFIX_DEFAULT=${LOCALBASE}
MPICHPREFIX_DEFAULT=${LOCALBASE}
EVAL_PREFIX+= PYPREFIX=python NETCDFPREFIX=netcdf MPICHPREFIX=mpich
do-configure:
${SED} -e "s|@NETCDFPREFIX@|${NETCDFPREFIX}|g" \
-e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \
${WRKSRC}/setup.py > ${WRKSRC}/setup.py.tmp
${MV} -f ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
${SED} -e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \
${FILESDIR}/Setup.in > ${WRKSRC}/Src/MPI/Setup.in
do-build:
cd ${WRKSRC} && ${PYPREFIX}/bin/python setup.py build
cd ${WRKSRC}/Src/MPI && ${PYPREFIX}/bin/python compile.py
post-build:
(eval `${PYPREFIX}/bin/python ${FILESDIR}/printpypath.py` && \
${SED} "s|PYINC|$${PYINC}|g;s|PYSITELIB|$${PYSITELIB}|g" \
${PKGDIR}/PLIST > ${PLIST_SRC})
do-install:
cd ${WRKSRC} && ${PYPREFIX}/bin/python setup.py install
${INSTALL_PROGRAM} ${WRKSRC}/Src/MPI/mpipython ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/${PYINC}/Scientific
${INSTALL_DATA} ${WRKSRC}/Include/Scientific/* \
${PREFIX}/${PYINC}/Scientific/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-Scientific
for f in README COPYRIGHT Doc/PDF/manual.pdf; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/py-Scientific/; \
done
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/py-Scientific
${INSTALL_DATA} ${WRKSRC}/Doc/HTML/* \
${PREFIX}/share/doc/html/py-Scientific/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-Scientific
${INSTALL_DATA} ${WRKSRC}/Examples/* \
${PREFIX}/share/examples/py-Scientific/
.include "../../mk/bsd.pkg.mk"
|