pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/py-numpy Avoid picking up other fortran compilers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7658bd9f305c
branches:  trunk
changeset: 400634:7658bd9f305c
user:      ahoka <ahoka%pkgsrc.org@localhost>
date:      Sat Oct 24 14:22:49 2009 +0000

description:
Avoid picking up other fortran compilers when they are installed.
Fixes build when lang/g95 is present on the system.

diffstat:

 math/py-numpy/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 822b0c8f7d15 -r 7658bd9f305c math/py-numpy/Makefile
--- a/math/py-numpy/Makefile    Sat Oct 24 13:41:05 2009 +0000
+++ b/math/py-numpy/Makefile    Sat Oct 24 14:22:49 2009 +0000
@@ -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/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"



Home | Main Index | Thread Index | Old Index