aboutsummaryrefslogtreecommitdiffstats
path: root/math/numpy/Makefile
blob: 3562c756f8c346c9a3da2c85cdad306c856283a7 (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
# New ports collection makefile for:    numpy
# Version required: 1.8
# Date created:     20 April 1997
# Whom:         Thomas Gellekum <tg@FreeBSD.ORG>
#
# $FreeBSD$
#

DISTNAME=   LLNLDistribution11
PKGNAME=    py-numeric-1.8
CATEGORIES= math python
MASTER_SITES=   ftp://ftp-icf.llnl.gov/pub/python/
EXTRACT_SUFX=   .tgz

MAINTAINER= tg@FreeBSD.ORG

BUILD_DEPENDS=  python:${PORTSDIR}/lang/python
RUN_DEPENDS=    python:${PORTSDIR}/lang/python

WRKSRC=     ${WRKDIR}/${DISTNAME}/Numerical
CONFIGURE_ENV=  PREFIX=${PREFIX}
ALL_TARGET= sharedmods
MAKE_FLAGS+=    'OPT=${CFLAGS}'

PYTHONSCRIPTDIR=    ${PREFIX}/lib/python1.5
NUMPYDIR=   ${PYTHONSCRIPTDIR}/site-packages/numerical
DOCDIR=     ${PREFIX}/share/doc/py-numerical
EXAMPLEDIR= ${PREFIX}/share/examples/py-numerical

do-configure:
    @(cd ${WRKSRC} && ${CONFIGURE_ENV} python makethis.py)

post-install:
    @${MKDIR} ${NUMPYDIR}
    ${INSTALL_DATA} ${WRKSRC}/Lib/* ${NUMPYDIR}
    @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${NUMPYDIR}
    @${ECHO} "numerical" > ${NUMPYDIR}/../numerical.pth
    @${MKDIR} ${PREFIX}/include/python1.5/numerical
    ${INSTALL_DATA} ${WRKSRC}/Include/*object.h ${PREFIX}/include/python1.5/numerical
    @${MKDIR} ${EXAMPLEDIR}
    ${INSTALL_DATA} ${WRKSRC}/Demo/* ${EXAMPLEDIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/Doc/*.html ${DOCDIR}
.endif

.include <bsd.port.mk>