| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.121 2024/04/03 19:40:09 thor Exp $ | | 1 | # $NetBSD: Makefile,v 1.122 2024/04/04 21:16:57 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= numpy-1.26.4 | | 3 | DISTNAME= numpy-1.26.4 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | CATEGORIES= math python | | 5 | CATEGORIES= math python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.numpy.org/ | | 9 | HOMEPAGE= https://www.numpy.org/ |
10 | COMMENT= Array processing for numbers, strings, records, and objects | | 10 | COMMENT= Array processing for numbers, strings, records, and objects |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python | | 13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python |
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython | | 14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython |
| @@ -63,27 +63,27 @@ LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} | | | @@ -63,27 +63,27 @@ LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} |
63 | # allowing/setting BLAS_INDEX64=yes. Scipy needs both variants right now, | | 63 | # allowing/setting BLAS_INDEX64=yes. Scipy needs both variants right now, |
64 | # wich does not work without standardized symbol suffix. | | 64 | # wich does not work without standardized symbol suffix. |
65 | # Will need -Csetup-args=Duse-ilp64, too. | | 65 | # Will need -Csetup-args=Duse-ilp64, too. |
66 | # TODO: accelerate.framework has no pkg-config yet (see blas.buildlink3.mk). | | 66 | # TODO: accelerate.framework has no pkg-config yet (see blas.buildlink3.mk). |
67 | BLAS_ACCEPTED= ${_BLAS_TYPES} | | 67 | BLAS_ACCEPTED= ${_BLAS_TYPES} |
68 | BLAS_C_INTERFACE= yes | | 68 | BLAS_C_INTERFACE= yes |
69 | # Cblas and lapack API (not lapacke) is desired. | | 69 | # Cblas and lapack API (not lapacke) is desired. |
70 | # Meson build uses pkg-config since 1.26.2 (or elaborate own logic not | | 70 | # Meson build uses pkg-config since 1.26.2 (or elaborate own logic not |
71 | # suitable here) and guesses for cblas if blas lib does not contain the | | 71 | # suitable here) and guesses for cblas if blas lib does not contain the |
72 | # C interface. That covers netlib for us, and openblas builds serve | | 72 | # C interface. That covers netlib for us, and openblas builds serve |
73 | # all APIs. | | 73 | # all APIs. |
74 | WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} | | 74 | WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} |
75 | WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} | | 75 | WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} |
76 | WHEEL_ARGS+= -Ccompile-args=-j${MAKE_JOBS} | | 76 | WHEEL_ARGS+= -Ccompile-args=-j${MAKE_JOBS:U1} |
77 | | | 77 | |
78 | # Remove invalid __STDC_VERSION__ setting | | 78 | # Remove invalid __STDC_VERSION__ setting |
79 | BUILDLINK_TRANSFORM.SunOS+= rm:-D__STDC_VERSION__=0 | | 79 | BUILDLINK_TRANSFORM.SunOS+= rm:-D__STDC_VERSION__=0 |
80 | | | 80 | |
81 | pre-configure: | | 81 | pre-configure: |
82 | ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython | | 82 | ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython |
83 | | | 83 | |
84 | # Files don't exist with Python 3.12, so add '-f' to ${RM} | | 84 | # Files don't exist with Python 3.12, so add '-f' to ${RM} |
85 | # (Please check if this is still necessary after updates.) | | 85 | # (Please check if this is still necessary after updates.) |
86 | post-install: | | 86 | post-install: |
87 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig | | 87 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig |
88 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig | | 88 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig |
89 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig | | 89 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig |