summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2009-10-08 01:24:03 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2009-10-08 01:24:03 +0000
commit44d80538d204104bce6223d8c24932504ae1a711 (patch)
tree90acdd413bb501448408da72499909f15669d8de /math
parent906396e49bbf147304b35a03e5ac284e50a867af (diff)
downloadpkgsrc-44d80538d204104bce6223d8c24932504ae1a711.tar.gz
gcc44/g95 build fix
Diffstat (limited to 'math')
-rw-r--r--math/scilab/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/math/scilab/Makefile b/math/scilab/Makefile
index 81b489275fd..11c840216a4 100644
--- a/math/scilab/Makefile
+++ b/math/scilab/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2008/12/05 19:02:09 ahoka Exp $
+# $NetBSD: Makefile,v 1.78 2009/10/08 01:24:03 dmcmahill Exp $
#
DISTNAME= ${SCIBASE}-src
@@ -47,6 +47,16 @@ MAKE_ENV+= HOME=${WRKSRC:Q}
MAKE_ENV+= PVM_ROOT=${PVM_ROOT:Q}
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE:Q}
+# FIXME -- this ugly hack will go away on newer versions of scilab where the build
+# system has been improved significantly see:
+#
+# scilab-4.1/routines/os_specific/getarg.c
+#
+.include "../../mk/compiler.mk"
+. if !empty(FC:Mgfortran) || !empty(PKGSRC_FORTRAN:Mg95)
+CFLAGS+= -DG95_FORTRAN=1
+.endif
+
PVM_ROOT?= ${LOCALBASE}/pvm3
CONFIGURE_ENV+= PVM_ROOT=${PVM_ROOT:Q}
CONFIGURE_ENV+= X11BASE=${X11BASE:Q}