View | Details | Raw Unified | Return to bug 257400 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-2 / +17 lines)
Lines 20-27 Link Here
20
BUILD_DEPENDS=	${PYNUMPY} \
20
BUILD_DEPENDS=	${PYNUMPY} \
21
		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
22
		${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
23
LIB_DEPENDS=	libblas.so:math/blas \
24
		libopenblas.so:math/openblas
25
RUN_DEPENDS=	${PYNUMPY}
23
RUN_DEPENDS=	${PYNUMPY}
26
24
27
USES=		compiler:c++14-lang fortran python:3.7+ shebangfix
25
USES=		compiler:c++14-lang fortran python:3.7+ shebangfix
Lines 35-52 Link Here
35
PORTDOCS=	scipy-ref-${PORTVERSION}.pdf
33
PORTDOCS=	scipy-ref-${PORTVERSION}.pdf
36
34
37
SHEBANG_FILES=	scipy/sparse/linalg/isolve/tests/test_gcrotmk.py
35
SHEBANG_FILES=	scipy/sparse/linalg/isolve/tests/test_gcrotmk.py
36
GCCLIBDIR_CMDS=	${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.so//
38
37
39
OPTIONS_DEFINE=	DOCS
38
OPTIONS_DEFINE=	DOCS
39
OPTIONS_DEFAULT= OPENBLAS
40
OPTIONS_SINGLE=		BLASLIB
41
OPTIONS_SINGLE_BLASLIB=	ATLAS OPENBLAS
42
ATLAS_USES=		blaslapack:atlas
43
ATLAS_VARS=		BLASLIBS="ptf77blas, ptcblas" BLASNAME=atlas LAPACKLIBS=alapack LIBRARIES=atlas_libs
44
OPENBLAS_USES=		blaslapack:openblas
45
OPENBLAS_VARS=		BLASLIBS="openblas, gfortran" BLASNAME=openblas LAPACKLIBS="openblas, gfortran" LIBRARIES=libraries
40
46
41
post-patch:
47
post-patch:
42
# This line help fix the plist error because autoplist list it as a file but it is a directory
48
# This line help fix the plist error because autoplist list it as a file but it is a directory
43
	@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp
49
	@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp
50
	@${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg
44
51
52
pre-configure:
53
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
54
		-e 's|%%BLASLIBS%%|${BLASLIBS}|; s|%%BLASNAME%%|${BLASNAME}|' \
55
		-e 's|%%LAPACKLIBS%%|${LAPACKLIBS}|; s|%%LIBRARIES%%|${LIBRARIES}|' \
56
			${WRKSRC}/site.cfg	
57
	@${REINPLACE_CMD} -e "s|%%GCCLIBDIR%%|$$(${GCCLIBDIR_CMDS})|" ${WRKSRC}/site.cfg
58
	
45
post-install:
59
post-install:
46
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
60
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
47
61
48
post-install-DOCS-on:
62
post-install-DOCS-on:
49
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
63
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
50
	${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
64
	${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
65
51
66
52
.include <bsd.port.mk>
67
.include <bsd.port.mk>

Return to bug 257400