pkgsrc/misc/root/patches/patch-ae
drochner b15f1cca5e first attempt to make this DESTDIR ready and to update it to a
newer version (5.26, the current production version).
The pkg builds and the result starts up and can do simple operations,
but there are strange errors if I try scripts which used to work
two years ago (mostly array size check related).
The biggest problem is that the pkg needs a fortran compiler
which supports the LOC() function. f2c doesn't, the cheapest way
I found is to depend on pkgsrc/lang/gcc3-f77. This needs to be done
cleaner.
2010-02-26 10:56:38 +00:00

13 lines
979 B
Text

$NetBSD: patch-ae,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- montecarlo/eg/inc/cfortran.h.orig 2010-02-11 13:20:42.000000000 +0000
+++ montecarlo/eg/inc/cfortran.h
@@ -150,7 +150,7 @@ only C calling FORTRAN subroutines will
#if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran))
#if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
/* If no Fortran compiler is given, we choose one for the machines we know. */
-#if defined(lynx) || defined(VAXUltrix)
+#if defined(lynx) || defined(VAXUltrix) || defined(__NetBSD__)
#define f2cFortran /* Lynx: Only support f2c at the moment.
VAXUltrix: f77 behaves like f2c.
Support f2c or f77 with gcc, vcc with f2c.