| @@ -1,65 +1,65 @@ | | | @@ -1,65 +1,65 @@ |
1 | # $NetBSD: Makefile,v 1.85 2021/11/06 11:52:37 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.86 2021/12/20 11:27:57 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= numpy-1.21.4 | | 3 | DISTNAME= numpy-1.21.5 |
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 | EXTRACT_SUFX= .zip | | 7 | EXTRACT_SUFX= .zip |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://www.numpy.org/ | | 10 | HOMEPAGE= https://www.numpy.org/ |
11 | COMMENT= Array processing for numbers, strings, records, and objects | | 11 | COMMENT= Array processing for numbers, strings, records, and objects |
12 | LICENSE= modified-bsd | | 12 | LICENSE= modified-bsd |
13 | | | 13 | |
14 | TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis | | 14 | TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis |
15 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose | | 15 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose |
16 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | | 16 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test |
17 | | | 17 | |
18 | # error: 'for' loop initial declarations are only allowed in C99 mode | | 18 | # error: 'for' loop initial declarations are only allowed in C99 mode |
19 | USE_LANGUAGES= c99 fortran | | 19 | USE_LANGUAGES= c99 c++ fortran |
20 | | | 20 | |
21 | .include "../../math/py-numpy/Makefile.make_env" | | 21 | .include "../../math/py-numpy/Makefile.make_env" |
22 | | | 22 | |
23 | REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py | | 23 | REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py |
24 | | | 24 | |
25 | PYTHON_VERSIONS_INCOMPATIBLE= 27 36 | | 25 | PYTHON_VERSIONS_INCOMPATIBLE= 27 36 |
26 | | | 26 | |
27 | # XXX Avoid picking up other compilers when installed | | 27 | # XXX Avoid picking up other compilers when installed |
28 | .include "../../mk/compiler.mk" | | 28 | .include "../../mk/compiler.mk" |
29 | | | 29 | |
30 | .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95" | | 30 | .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95" |
31 | PYSETUPBUILDARGS+= --fcompiler=g95 | | 31 | PYSETUPBUILDARGS+= --fcompiler=g95 |
32 | .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" | | 32 | .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" |
33 | PYSETUPBUILDARGS+= --fcompiler=gnu95 | | 33 | PYSETUPBUILDARGS+= --fcompiler=gnu95 |
34 | .elif !empty(PKGSRC_COMPILER:Mgcc) | | 34 | .elif !empty(PKGSRC_COMPILER:Mgcc) |
35 | PYSETUPBUILDARGS+= --fcompiler=gnu | | 35 | PYSETUPBUILDARGS+= --fcompiler=gnu |
36 | .endif | | 36 | .endif |
37 | | | 37 | |
38 | # This package bypasses the wrappers and calls the compilers directly when | | 38 | # This package bypasses the wrappers and calls the compilers directly when |
39 | # linking, so ensure that we pass through requisite options. | | 39 | # linking, so ensure that we pass through requisite options. |
40 | LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} | | 40 | LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} |
41 | | | 41 | |
42 | BLAS_ACCEPTED= ${_BLAS_TYPES} accelerate.framework | | 42 | BLAS_ACCEPTED= ${_BLAS_TYPES} accelerate.framework |
43 | BLAS_C_INTERFACE= yes | | 43 | BLAS_C_INTERFACE= yes |
44 | CPPFLAGS+= ${BLAS_INCLUDES} | | 44 | CPPFLAGS+= ${BLAS_INCLUDES} |
45 | | | 45 | |
46 | .include "../../mk/bsd.prefs.mk" | | 46 | .include "../../mk/bsd.prefs.mk" |
47 | | | 47 | |
48 | # numpy fails using the gold linker with: | | 48 | # numpy fails using the gold linker with: |
49 | # fatal error: --sysroot=: must take a non-empty argument | | 49 | # fatal error: --sysroot=: must take a non-empty argument |
50 | # Work around it on DragonFly by specifying the classic gnu linker | | 50 | # Work around it on DragonFly by specifying the classic gnu linker |
51 | MAKE_ENV.DragonFly+= LDVER=ld.bfd | | 51 | MAKE_ENV.DragonFly+= LDVER=ld.bfd |
52 | | | 52 | |
53 | post-install: | | 53 | post-install: |
54 | cd ${DESTDIR}${PREFIX}/bin && ${RM} f2py || ${TRUE} | | 54 | cd ${DESTDIR}${PREFIX}/bin && ${RM} f2py || ${TRUE} |
55 | | | 55 | |
56 | do-test: | | 56 | do-test: |
57 | cd ${WRKDIR} && \ | | 57 | cd ${WRKDIR} && \ |
58 | ${RUN} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()" | | 58 | ${RUN} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()" |
59 | | | 59 | |
60 | BUILDLINK_API_DEPENDS.py-cython+= ${PYPKGPREFIX}-cython>=0.29.21 | | 60 | BUILDLINK_API_DEPENDS.py-cython+= ${PYPKGPREFIX}-cython>=0.29.21 |
61 | .include "../../devel/py-cython/buildlink3.mk" | | 61 | .include "../../devel/py-cython/buildlink3.mk" |
62 | .include "../../lang/python/application.mk" | | 62 | .include "../../lang/python/application.mk" |
63 | .include "../../lang/python/egg.mk" | | 63 | .include "../../lang/python/egg.mk" |
64 | .include "../../mk/blas.buildlink3.mk" | | 64 | .include "../../mk/blas.buildlink3.mk" |
65 | .include "../../mk/bsd.pkg.mk" | | 65 | .include "../../mk/bsd.pkg.mk" |