aboutsummaryrefslogtreecommitdiffstats
path: root/math/numpy/Makefile
blob: 142d5fe10eb6256a1e6a4d0f3e74e89d2a601e1f (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
44
45
46
47
48
49
# New ports collection makefile for:    numpy
# Date created:     20 April 1997
# Whom:         Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   numeric
PORTVERSION=    16.0
CATEGORIES= math python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= numpy
PKGNAMEPREFIX=  py-
DISTNAME=   Numeric-${PORTVERSION}

MAINTAINER= tg@FreeBSD.org

BUILD_DEPENDS=  python:${PORTSDIR}/lang/python \
        ${PYDISTUTILS}
LIB_DEPENDS=    lapack.3:${PORTSDIR}/math/lapack \
        blas.2:${PORTSDIR}/math/lapack
RUN_DEPENDS=    python:${PORTSDIR}/lang/python

MAKE_ENV=   BLASLIBDIR=${LOCALBASE}/lib LAPACKLIBDIR=${LOCALBASE}/lib
PLIST_SUB=  PYVERSION="python${PYVERSION}"

DOCDIR=     ${PREFIX}/share/doc/py-numeric
EXAMPLEDIR= ${PREFIX}/share/examples/py-numeric
PYVERSION!= python -c 'import string, sys; \
               print string.split(sys.version)[0][:3]' \
            || echo "1.5"

.if ${PYVERSION} == "2.0"
PYDISTUTILS=    ${LOCALBASE}/lib/python${PYVERSION}/distutils/core.py:${PORTSDIR}/lang/python
.else
PYDISTUTILS=    ${LOCALBASE}/lib/python${PYVERSION}/site-packages/distutils/core.py:${PORTSDIR}/misc/py-distutils
.endif

post-install:
    @${MKDIR} ${EXAMPLEDIR}
    ${INSTALL_DATA} ${WRKSRC}/Demo/*.py ${EXAMPLEDIR}
    @${MKDIR} ${EXAMPLEDIR}/NumTut
    ${INSTALL_DATA} ${WRKSRC}/Demo/NumTut/* ${EXAMPLEDIR}/NumTut
.if !defined(NOPORTDOCS)
#   @${MKDIR} ${DOCDIR}
#   ${INSTALL_DATA} ${WRKSRC}/Doc/numpy.pdf ${DOCDIR}
.endif

.include <bsd.port.mk>