| @@ -1,39 +1,39 @@ | | | @@ -1,39 +1,39 @@ |
1 | # $NetBSD: Makefile,v 1.11 2022/11/06 13:31:01 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2023/03/14 07:12:09 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= numpy-1.16.6 | | 3 | DISTNAME= numpy-1.16.6 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | PKGREVISION= 5 | | 5 | PKGREVISION= 5 |
6 | CATEGORIES= math python | | 6 | CATEGORIES= math python |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} | | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} |
8 | EXTRACT_SUFX= .zip | | 8 | EXTRACT_SUFX= .zip |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.numpy.org/ | | 11 | HOMEPAGE= http://www.numpy.org/ |
12 | COMMENT= Array processing for numbers, strings, records, and objects | | 12 | COMMENT= Array processing for numbers, strings, records, and objects |
13 | LICENSE= modified-bsd | | 13 | LICENSE= modified-bsd |
14 | | | 14 | |
15 | # This package only exists to accomodate Python 2.7 and 3.7. | | 15 | # This package only exists to accomodate Python 2.7 and 3.7. |
16 | PYTHON_VERSIONS_ACCEPTED= 27 | | 16 | PYTHON_VERSIONS_ACCEPTED= 27 |
17 | | | 17 | |
18 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose | | 18 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose |
19 | | | 19 | |
20 | PYTHON_VERSIONED_DEPENDENCIES= test:test | | 20 | PYTHON_VERSIONED_DEPENDENCIES= test:test |
21 | | | 21 | |
22 | USE_PKG_RESOURCES= yes | | 22 | USE_PKG_RESOURCES= yes |
23 | | | 23 | |
24 | USE_LANGUAGES= c fortran | | 24 | USE_LANGUAGES= c fortran |
25 | | | 25 | |
26 | .include "../../math/py-numpy/Makefile.make_env" | | 26 | .include "../../math/py-numpy/make_env.mk" |
27 | | | 27 | |
28 | REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py | | 28 | REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py |
29 | | | 29 | |
30 | # XXX Avoid picking up other compilers when installed | | 30 | # XXX Avoid picking up other compilers when installed |
31 | .include "../../mk/compiler.mk" | | 31 | .include "../../mk/compiler.mk" |
32 | | | 32 | |
33 | .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95" | | 33 | .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95" |
34 | PYSETUPBUILDARGS+= --fcompiler=g95 | | 34 | PYSETUPBUILDARGS+= --fcompiler=g95 |
35 | .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" | | 35 | .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" |
36 | PYSETUPBUILDARGS+= --fcompiler=gnu95 | | 36 | PYSETUPBUILDARGS+= --fcompiler=gnu95 |
37 | .elif !empty(PKGSRC_COMPILER:Mgcc) | | 37 | .elif !empty(PKGSRC_COMPILER:Mgcc) |
38 | PYSETUPBUILDARGS+= --fcompiler=gnu | | 38 | PYSETUPBUILDARGS+= --fcompiler=gnu |
39 | .endif | | 39 | .endif |