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

Collapse All | Expand All

(-)b/science/py-scipy/Makefile (-2 / +18 lines)
Lines 20-27 LICENSE_FILE= ${WRKSRC}/LICENSE.txt 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-47 PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95 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_LIB_DEPENDS=   libblas.so:math/blas
46
OPENBLAS_VARS=		BLASLIBS="openblas, gfortran" BLASNAME=openblas LAPACKLIBS="openblas, gfortran" LIBRARIES=libraries
40
47
41
post-patch:
48
post-patch:
42
# This line help fix the plist error because autoplist list it as a file but it is a directory
49
# 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
50
	@${TOUCH} ${WRKSRC}/scipy/stats/tests/data/tmp
51
	@${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg
44
52
53
pre-configure:
54
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
55
		-e 's|%%BLASLIBS%%|${BLASLIBS}|; s|%%BLASNAME%%|${BLASNAME}|' \
56
		-e 's|%%LAPACKLIBS%%|${LAPACKLIBS}|; s|%%LIBRARIES%%|${LIBRARIES}|' \
57
			${WRKSRC}/site.cfg	
58
	@${REINPLACE_CMD} -e "s|%%GCCLIBDIR%%|$$(${GCCLIBDIR_CMDS})|" ${WRKSRC}/site.cfg
59
	
45
post-install:
60
post-install:
46
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
61
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
47
62
Lines 49-52 post-install-DOCS-on: Link Here
49
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
64
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
50
	${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
65
	${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
51
66
67
52
.include <bsd.port.mk>
68
.include <bsd.port.mk>
(-)b/science/py-scipy/files/site.cfg (+10 lines)
Added Link Here
1
[DEFAULT]
2
library_dirs = /usr/lib:%%LOCALBASE%%/lib:%%GCCLIBDIR%%
3
include_dirs = /usr/include:%%LOCALBASE%%/include
4
src_dirs = %%LOCALBASE%%/src
5
# search static libraries (.a) in preference to shared ones (.so)
6
search_static_first = 0
7
8
[%%BLASNAME%%]
9
%%LIBRARIES%% = %%BLASLIBS%%
10
lapack_libs = %%LAPACKLIBS%%

Return to bug 257400