| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.75 2023/12/27 22:42:02 thor Exp $ | | 1 | # $NetBSD: Makefile,v 1.76 2024/04/03 19:36:38 thor Exp $ |
2 | | | 2 | |
3 | DISTNAME= scipy-1.11.4 | | 3 | DISTNAME= scipy-1.11.4 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
5 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 5 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
6 | CATEGORIES= math python | | 6 | CATEGORIES= math python |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/} | | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/} |
8 | | | 8 | |
9 | MAINTAINER= markd@NetBSD.org | | 9 | MAINTAINER= markd@NetBSD.org |
10 | HOMEPAGE= https://www.scipy.org/ | | 10 | HOMEPAGE= https://www.scipy.org/ |
11 | COMMENT= Scientific Algorithms Library for Python | | 11 | COMMENT= Scientific Algorithms Library for Python |
12 | LICENSE= modified-bsd | | 12 | LICENSE= modified-bsd |
13 | | | 13 | |
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-cython>=0.29.35:../../devel/py-cython | | 14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-cython>=0.29.35:../../devel/py-cython |
| @@ -54,26 +54,27 @@ FFLAGS+= -fPIC | | | @@ -54,26 +54,27 @@ FFLAGS+= -fPIC |
54 | LDFLAGS.Darwin+= -headerpad_max_install_names | | 54 | LDFLAGS.Darwin+= -headerpad_max_install_names |
55 | | | 55 | |
56 | # Same as for py-numpy. | | 56 | # Same as for py-numpy. |
57 | # Except that py-scipy needs explicit linkage to libblas.so for | | 57 | # Except that py-scipy needs explicit linkage to libblas.so for |
58 | # netlib (otherwise there will be missing symbols in _superlu.so (vendored). | | 58 | # netlib (otherwise there will be missing symbols in _superlu.so (vendored). |
59 | # Meson will locate libcblas itself with -Dblas=blas by guesswork, | | 59 | # Meson will locate libcblas itself with -Dblas=blas by guesswork, |
60 | # satisfying the meson setup. Proper fix is a future meson build where | | 60 | # satisfying the meson setup. Proper fix is a future meson build where |
61 | # one can specify blas and cblas separately. The distinction | | 61 | # one can specify blas and cblas separately. The distinction |
62 | # does not matter for openblas. | | 62 | # does not matter for openblas. |
63 | BLAS_ACCEPTED= ${_BLAS_TYPES} | | 63 | BLAS_ACCEPTED= ${_BLAS_TYPES} |
64 | BLAS_C_INTERFACE= yes | | 64 | BLAS_C_INTERFACE= yes |
65 | WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} | | 65 | WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} |
66 | WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} | | 66 | WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} |
| | | 67 | WHEEL_ARGS+= -Ccompile-args=-j${MAKE_JOBS} |
67 | | | 68 | |
68 | PYTHON_VERSIONS_INCOMPATIBLE= 27 38 | | 69 | PYTHON_VERSIONS_INCOMPATIBLE= 27 38 |
69 | | | 70 | |
70 | .include "../../mk/bsd.prefs.mk" | | 71 | .include "../../mk/bsd.prefs.mk" |
71 | | | 72 | |
72 | .if ${OPSYS} == "Darwin" | | 73 | .if ${OPSYS} == "Darwin" |
73 | .PHONY: fix-darwin-install-name | | 74 | .PHONY: fix-darwin-install-name |
74 | post-install: fix-darwin-install-name | | 75 | post-install: fix-darwin-install-name |
75 | fix-darwin-install-name: | | 76 | fix-darwin-install-name: |
76 | ${FIND} ${DESTDIR}${PREFIX} -name "*.so" | \ | | 77 | ${FIND} ${DESTDIR}${PREFIX} -name "*.so" | \ |
77 | while read lib; do \ | | 78 | while read lib; do \ |
78 | libname=`basename $${lib}`; \ | | 79 | libname=`basename $${lib}`; \ |
79 | libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`; \ | | 80 | libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`; \ |