| @@ -1,42 +1,40 @@ | | | @@ -1,42 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.64 2020/04/27 17:00:35 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.65 2020/05/04 06:18:55 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= numpy-1.18.3 | | 3 | DISTNAME= numpy-1.18.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 | EXTRACT_SUFX= .zip | | 7 | EXTRACT_SUFX= .zip |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.numpy.org/ | | 10 | HOMEPAGE= http://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}-nose-[0-9]*:../../devel/py-nose | | 14 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose |
15 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | | 15 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test |
16 | | | 16 | |
17 | USE_LANGUAGES= c fortran | | 17 | USE_LANGUAGES= c fortran |
18 | MAKE_ENV+= ATLAS=None | | 18 | MAKE_ENV+= ATLAS=None |
19 | | | 19 | |
20 | REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py | | 20 | REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py |
21 | | | 21 | |
22 | PYTHON_VERSIONS_INCOMPATIBLE= 27 # since 1.17 | | 22 | PYTHON_VERSIONS_INCOMPATIBLE= 27 # since 1.17 |
23 | | | 23 | |
24 | # XXX Avoid picking up other compilers when installed | | 24 | # XXX Avoid picking up other compilers when installed |
25 | .include "../../mk/compiler.mk" | | 25 | .include "../../mk/compiler.mk" |
26 | | | 26 | |
27 | .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95" | | 27 | .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" |
28 | PYSETUPBUILDARGS+= --fcompiler=g95 | | | |
29 | .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" | | | |
30 | PYSETUPBUILDARGS+= --fcompiler=gnu95 | | 28 | PYSETUPBUILDARGS+= --fcompiler=gnu95 |
31 | .elif !empty(PKGSRC_COMPILER:Mgcc) | | 29 | .elif !empty(PKGSRC_COMPILER:Mgcc) |
32 | PYSETUPBUILDARGS+= --fcompiler=gnu | | 30 | PYSETUPBUILDARGS+= --fcompiler=gnu |
33 | .endif | | 31 | .endif |
34 | | | 32 | |
35 | # This package bypasses the wrappers and calls the compilers directly when | | 33 | # This package bypasses the wrappers and calls the compilers directly when |
36 | # linking, so ensure that we pass through requisite options. | | 34 | # linking, so ensure that we pass through requisite options. |
37 | LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} | | 35 | LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} |
38 | | | 36 | |
39 | .include "../../mk/bsd.prefs.mk" | | 37 | .include "../../mk/bsd.prefs.mk" |
40 | | | 38 | |
41 | # numpy fails using the gold linker with: | | 39 | # numpy fails using the gold linker with: |
42 | # fatal error: --sysroot=: must take a non-empty argument | | 40 | # fatal error: --sysroot=: must take a non-empty argument |