summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorahoka <ahoka>2009-10-24 14:22:49 +0000
committerahoka <ahoka>2009-10-24 14:22:49 +0000
commit3adb8a873a885c86fec9e5e8d21a7e5e0cf88085 (patch)
treecffad02b57b1f34f308b6b9d9cfb7310b1139cbd /math
parent677e691214c4abd180704a42e10aa6fc777a3771 (diff)
downloadpkgsrc-3adb8a873a885c86fec9e5e8d21a7e5e0cf88085.tar.gz
Avoid picking up other fortran compilers when they are installed.
Fixes build when lang/g95 is present on the system.
Diffstat (limited to 'math')
-rw-r--r--math/py-numpy/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index 22e0d755e75..2282f50c296 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/09/10 19:03:26 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2009/10/24 14:22:49 ahoka Exp $
#
DISTNAME= numpy-1.3.0
@@ -24,6 +24,13 @@ REPLACE_PYTHON+= numpy/distutils/system_info.py
REPLACE_PYTHON+= numpy/ma/bench.py
REPLACE_PYTHON+= numpy/distutils/conv_template.py
+# XXX Avoid picking up other compilers when installed
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mgcc)
+PYSETUPBUILDARGS+= --fcompiler=gnu
+.endif
+
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../math/blas/buildlink3.mk"