freebsd-ports/science/netcdf4/files/patch-fortran+cfortran.h
Beech Rintoul 6546605e6b - Add experimental WITH_FORTRAN knob and a patch to have it compile.
- It's off by default as it doesn't seem to be required by any port.
- No functional change.

PR:		ports/125915
Submitted by:	Pedro F. Giffuni <pfgshield-freebsd@yahoo.com>
Approved by:	maintainer timeout (>2 Weeks)
2008-08-07 08:29:49 +00:00

21 lines
1.3 KiB
C

--- fortran/cfortran.h.orig 2008-07-23 21:47:30.000000000 -0500
+++ fortran/cfortran.h 2008-07-23 21:48:50.000000000 -0500
@@ -134,7 +134,8 @@
/* Split #if into 2 because some HP-UX can't handle long #if */
#if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran)||defined(PATHSCALE_COMPILER)||defined(gFortran))
#if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
-/* If your compiler barfs on ' #error', replace # with the trigraph for # */
+#define f2cFortran
+/* If your compiler barfs on ' #error', replace # with the trigraph for #
#error "cfortran.h: Can't find your environment among:\
- MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) \
- IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 \
@@ -158,7 +159,7 @@
- Absoft Pro Fortran: Use #define AbsoftProFortran \
- Portland Group Fortran: Use #define pgiFortran \
- PathScale Fortran: Use #define PATHSCALE_COMPILER"
-/* Compiler must throw us out at this point! */
+ Compiler must throw us out at this point! */
#endif
#endif