aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-numeric17/Makefile
blob: 6189849f483601f4423e35f21f8029ad9729cb7b (plain) (blame)
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
# New ports collection makefile for:    numpy
# Version required: 1.0b3
# Date created:     20 April 1997
# Whom:         Thomas Gellekum <tg@FreeBSD.ORG>
#
# $Id: Makefile,v 1.1.1.1 1997/04/28 09:22:59 tg Exp $
#

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
RUN_DEPENDS=    python:${PORTSDIR}/lang/python
LIB_DEPENDS=    lapack\\.2\\.:${PORTSDIR}/math/lapack \
        ranlib\\.1\\.:${PORTSDIR}/math/libranlib

ALL_TARGET= sharedmods
MAKE_FLAGS+=    'OPT=${CFLAGS}'

PYTHONDIR=  ${PREFIX}/share/python1.4
NUMPYDIR=   ${PYTHONDIR}/${DISTNAME}
DOCDIR=     ${PREFIX}/share/doc/${DISTNAME}

do-configure:
    @cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in Makefile

do-install:
    @${MKDIR} ${NUMPYDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/*.so ${NUMPYDIR}
    ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}/*.py ${NUMPYDIR}
    @PYTHONPATH=${PYTHONDIR}:${NUMPYDIR} \
        ${PREFIX}/bin/python ${PYTHONDIR}/compileall.py ${NUMPYDIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCDIR}
.endif

.include <bsd.port.mk>