| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.17 2012/04/17 17:24:41 drochner Exp $ | | 1 | # $NetBSD: Makefile,v 1.18 2012/04/25 16:36:39 hans Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= numpy-1.6.1 | | 4 | DISTNAME= numpy-1.6.1 |
5 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 5 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
6 | CATEGORIES= math python | | 6 | CATEGORIES= math python |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/} | | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://numpy.scipy.org/ | | 10 | HOMEPAGE= http://numpy.scipy.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 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
| @@ -30,22 +30,26 @@ SUBST_SED.numpy= -e 's:/usr/bin/env %s:$ | | | @@ -30,22 +30,26 @@ SUBST_SED.numpy= -e 's:/usr/bin/env %s:$ |
30 | SUBST_SED.numpy+= -e 's:%(os.path.basename(sys.executable))::' | | 30 | SUBST_SED.numpy+= -e 's:%(os.path.basename(sys.executable))::' |
31 | | | 31 | |
32 | # XXX Avoid picking up other compilers when installed | | 32 | # XXX Avoid picking up other compilers when installed |
33 | .include "../../mk/compiler.mk" | | 33 | .include "../../mk/compiler.mk" |
34 | | | 34 | |
35 | .if defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mg95) | | 35 | .if defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mg95) |
36 | PYSETUPBUILDARGS+= --fcompiler=g95 | | 36 | PYSETUPBUILDARGS+= --fcompiler=g95 |
37 | .elif defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mgfortran) | | 37 | .elif defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mgfortran) |
38 | PYSETUPBUILDARGS+= --fcompiler=gnu95 | | 38 | PYSETUPBUILDARGS+= --fcompiler=gnu95 |
39 | .elif !empty(PKGSRC_COMPILER:Mgcc) | | 39 | .elif !empty(PKGSRC_COMPILER:Mgcc) |
40 | PYSETUPBUILDARGS+= --fcompiler=gnu | | 40 | PYSETUPBUILDARGS+= --fcompiler=gnu |
41 | .endif | | 41 | .endif |
42 | | | 42 | |
| | | 43 | # According to http://projects.scipy.org/numpy/ticket/1101, |
| | | 44 | # LDFLAGS should either not be set or include -shared. |
| | | 45 | LDFLAGS+= -shared |
| | | 46 | |
43 | # needs devel/py-nose | | 47 | # needs devel/py-nose |
44 | #do-test: | | 48 | #do-test: |
45 | # ${PYTHONBIN} -c "import numpy; numpy.test()" | | 49 | # ${PYTHONBIN} -c "import numpy; numpy.test()" |
46 | | | 50 | |
47 | .include "../../lang/python/application.mk" | | 51 | .include "../../lang/python/application.mk" |
48 | .include "../../lang/python/distutils.mk" | | 52 | .include "../../lang/python/distutils.mk" |
49 | .include "../../math/blas/buildlink3.mk" | | 53 | .include "../../math/blas/buildlink3.mk" |
50 | .include "../../math/lapack/buildlink3.mk" | | 54 | .include "../../math/lapack/buildlink3.mk" |
51 | .include "../../mk/bsd.pkg.mk" | | 55 | .include "../../mk/bsd.pkg.mk" |