View | Details | Raw Unified | Return to bug 188114
Collapse All | Expand All

(-)math/py-numpy/Makefile (-7 / +6 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	numpy
4
PORTNAME=	numpy
5
PORTVERSION=	1.8.1
5
PORTVERSION=	1.8.1
6
PORTREVISION=	3
6
PORTREVISION=	4
7
PORTEPOCH=	1
7
PORTEPOCH=	1
8
CATEGORIES=	math python
8
CATEGORIES=	math python
9
MASTER_SITES=	http://docs.scipy.org/doc/${PORTNAME}/:doc \
9
MASTER_SITES=	http://docs.scipy.org/doc/${PORTNAME}/:doc \
Lines 23-28 Link Here
23
23
24
USES=		fortran python
24
USES=		fortran python
25
USE_PYTHON=	concurrent distutils py3kplist
25
USE_PYTHON=	concurrent distutils py3kplist
26
LDFLAGS+=	-shared
26
27
27
OPTIONS_DEFINE=		ATLAS SUITESPARSE DOCS
28
OPTIONS_DEFINE=		ATLAS SUITESPARSE DOCS
28
OPTIONS_DEFAULT=	SUITESPARSE
29
OPTIONS_DEFAULT=	SUITESPARSE
Lines 48-61 Link Here
48
.endif
49
.endif
49
50
50
post-extract:
51
post-extract:
51
	@${CP} ${DISTDIR}/numpy-ref-${PORTVERSION}.pdf ${WRKDIR}
52
	${CP} ${DISTDIR}/numpy-ref-${PORTVERSION}.pdf ${WRKDIR}
52
	@${CP} ${DISTDIR}/numpy-user-${PORTVERSION}.pdf ${WRKDIR}
53
	${CP} ${DISTDIR}/numpy-user-${PORTVERSION}.pdf ${WRKDIR}
53
54
54
post-patch:
55
post-patch:
55
	@${REINPLACE_CMD} -e "s+%%FC%%+${FC}+" ${WRKSRC}/numpy/distutils/fcompiler/gnu.py
56
	${REINPLACE_CMD} -e "s+%%FC%%+${FC}+" ${WRKSRC}/numpy/distutils/fcompiler/gnu.py
56
	@${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg
57
	${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg
57
# ignore LDFLAGS from env, as it overrides internal flags (e.g. -shared) for some reason
58
	@${REINPLACE_CMD} -e "s|'LDFLAGS'|None|" ${WRKSRC}/numpy/distutils/fcompiler/__init__.py
59
58
60
GCCLIBDIR_CMDS=	${FC} -print-file-name=libgfortran.so|${SED} -e s/libgfortran.so//
59
GCCLIBDIR_CMDS=	${FC} -print-file-name=libgfortran.so|${SED} -e s/libgfortran.so//
61
60

Return to bug 188114