Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= numpy |
8 |
PORTNAME= numpy |
9 |
PORTVERSION= 1.6.2 |
9 |
PORTVERSION= 1.6.2 |
|
|
10 |
PORTREVISION= 1 |
10 |
PORTEPOCH= 1 |
11 |
PORTEPOCH= 1 |
11 |
CATEGORIES= math python |
12 |
CATEGORIES= math python |
12 |
MASTER_SITES= http://docs.scipy.org/doc/${DISTNAME:C/\..$/.0/}/:doc \ |
13 |
MASTER_SITES= http://docs.scipy.org/doc/${DISTNAME:C/\..$/.0/}/:doc \ |
Lines 24-30
Link Here
|
24 |
|
25 |
|
25 |
RUN_DEPENDS= nosetests:${PORTSDIR}/devel/py-nose |
26 |
RUN_DEPENDS= nosetests:${PORTSDIR}/devel/py-nose |
26 |
|
27 |
|
27 |
OPTIONS= ATLAS "Use optimized blas library" Off |
28 |
OPTIONS_DEFINE= ATLAS SUITESPARSE |
|
|
29 |
OPTIONS_DEFAULT= SUITESPARSE |
30 |
ATLAS_DESC= Use optimized blas library |
31 |
SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse |
28 |
|
32 |
|
29 |
USE_FORTRAN= yes |
33 |
USE_FORTRAN= yes |
30 |
USE_PYTHON= yes |
34 |
USE_PYTHON= yes |
Lines 53-59
Link Here
|
53 |
DISTFILES+= ${FP_ARCH}/fenv.c?p=203441:fp ${FP_ARCH}/fenv.h?p=203441:fp |
57 |
DISTFILES+= ${FP_ARCH}/fenv.c?p=203441:fp ${FP_ARCH}/fenv.h?p=203441:fp |
54 |
.endif |
58 |
.endif |
55 |
|
59 |
|
56 |
.if defined(WITH_ATLAS) |
60 |
.if ${PORT_OPTIONS:MATLAS} |
57 |
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas |
61 |
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas |
58 |
.if !exists(${LOCALBASE}/lib/libalapack.a) |
62 |
.if !exists(${LOCALBASE}/lib/libalapack.a) |
59 |
IGNORE= atlas needs to be built with WITH_STATIC for numpy to function properly |
63 |
IGNORE= atlas needs to be built with WITH_STATIC for numpy to function properly |
Lines 63-69
Link Here
|
63 |
blas.2:${PORTSDIR}/math/blas |
67 |
blas.2:${PORTSDIR}/math/blas |
64 |
.endif |
68 |
.endif |
65 |
|
69 |
|
66 |
.if exists(${LOCALBASE}/lib/libumfpack.so.1) |
70 |
.if ${PORT_OPTIONS:MSUITESPARSE} |
67 |
LIB_DEPENDS+= umfpack.1:${PORTSDIR}/math/suitesparse |
71 |
LIB_DEPENDS+= umfpack.1:${PORTSDIR}/math/suitesparse |
68 |
.endif |
72 |
.endif |
69 |
|
73 |
|
Lines 90-106
Link Here
|
90 |
${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/fenv.patch; \ |
94 |
${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/fenv.patch; \ |
91 |
fi |
95 |
fi |
92 |
.endif |
96 |
.endif |
93 |
.ifdef WITH_ATLAS |
97 |
.if ${PORT_OPTIONS:MATLAS} |
94 |
@${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+$$(${GCCLIBDIR_CMDS})+" \ |
98 |
@${REINPLACE_CMD} -e "s+%%ATLASLIBS%%+alapack, f77blas, cblas, atlas+" ${WRKSRC}/site.cfg |
95 |
-e "s+%%LOCALBASE%%+${LOCALBASE}+g" \ |
|
|
96 |
-e "s+%%ATLASLIBS%%+alapack, f77blas, cblas, atlas+" \ |
97 |
${WRKSRC}/site.cfg |
98 |
.else |
99 |
.else |
|
|
100 |
@${REINPLACE_CMD} -e "s+%%ATLASLIBS%%+lapack, blas+" ${WRKSRC}/site.cfg |
101 |
.endif |
102 |
.if !${PORT_OPTIONS:MSUITESPARSE} |
103 |
@${REINPLACE_CMD} -e "s+:%%LOCALBASE%%/include/suitesparse++" ${WRKSRC}/site.cfg |
104 |
.endif |
99 |
@${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+$$(${GCCLIBDIR_CMDS})+" \ |
105 |
@${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+$$(${GCCLIBDIR_CMDS})+" \ |
100 |
-e "s+%%LOCALBASE%%+${LOCALBASE}+g" \ |
106 |
-e "s+%%LOCALBASE%%+${LOCALBASE}+g" \ |
101 |
-e "s+%%ATLASLIBS%%+lapack, blas+" \ |
107 |
${WRKSRC}/site.cfg |
102 |
${WRKSRC}/site.cfg |
|
|
103 |
.endif |
104 |
@${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+$$(${GCCLIBDIR_CMDS})+" ${WRKSRC}/numpy/distutils/system_info.py |
108 |
@${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+$$(${GCCLIBDIR_CMDS})+" ${WRKSRC}/numpy/distutils/system_info.py |
105 |
|
109 |
|
106 |
pre-install: |
110 |
pre-install: |