diff options
author | kris <kris@FreeBSD.org> | 2002-04-01 07:45:39 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-04-01 07:45:39 +0800 |
commit | b4956c1dd6a0754af69f26bf3bb2b003287b00eb (patch) | |
tree | f806dbbbd11b8b9b7a9be5493f3051dfec48e987 /devel/f77flow | |
parent | 012f557a4ba8e814353ce12ed1df4e367a2d26df (diff) | |
download | freebsd-ports-graphics-b4956c1dd6a0754af69f26bf3bb2b003287b00eb.tar.gz freebsd-ports-graphics-b4956c1dd6a0754af69f26bf3bb2b003287b00eb.tar.zst freebsd-ports-graphics-b4956c1dd6a0754af69f26bf3bb2b003287b00eb.zip |
Fix build on current by removing a constant FILE * stdio initializer
Diffstat (limited to 'devel/f77flow')
-rw-r--r-- | devel/f77flow/files/patch-aa | 19 | ||||
-rw-r--r-- | devel/f77flow/files/patch-ab | 38 |
2 files changed, 57 insertions, 0 deletions
diff --git a/devel/f77flow/files/patch-aa b/devel/f77flow/files/patch-aa new file mode 100644 index 00000000000..ba823e89d40 --- /dev/null +++ b/devel/f77flow/files/patch-aa @@ -0,0 +1,19 @@ +--- Makefile.orig Fri Mar 7 05:19:01 1997 ++++ Makefile Sun Mar 31 15:47:22 2002 +@@ -2,8 +2,8 @@ + # simple Makefile to compile and install flow + # + +-CC = gcc +-CFLAGS = -O2 -Wall ++CC ?= gcc ++CFLAGS += -Wall + MANPATH = /usr/man + PREFIX = /usr/bin + +@@ -17,4 +17,4 @@ + cp flow $(PREFIX); cp flow.1 $(MANPATH)/man1 + + clean: +- rm flow flow.o ++ rm flow flow.o diff --git a/devel/f77flow/files/patch-ab b/devel/f77flow/files/patch-ab new file mode 100644 index 00000000000..3ad8b57600f --- /dev/null +++ b/devel/f77flow/files/patch-ab @@ -0,0 +1,38 @@ +--- flow.c.orig Wed Feb 19 08:45:20 1997 ++++ flow.c Sun Mar 31 15:47:22 2002 +@@ -66,7 +66,7 @@ + + FILE *CallFile=NULL; + FILE *SubFile=NULL; +-FILE *OUTFILE=stdout; ++FILE *OUTFILE=NULL; + + char S_OUT[]="FLOW.SUBS"; /* file name where to print subroutines */ + char C_OUT[]="FLOW.CALL"; /* file name where to print call's */ +@@ -89,7 +89,7 @@ + + /* begin of main */ + +-void main(int argc, char *argv[]) ++int main(int argc, char *argv[]) + + { + int k,d,i; +@@ -100,6 +100,8 @@ + long int Count_Lines=0; + char PRG_Name[60]; + ++OUTFILE=stdout; ++ + for (k=0; k<NO_SUB+1; k++) Subroutine[k].Call=0; + for (k=0; k<NO_CALL; k++) Call[k].Call=0; + Program.Call=0; +@@ -303,6 +305,8 @@ + if (No_Main==0) Output_Result(); + + if (O_OutFile) fclose(OUTFILE); ++ ++ exit(0); + + } + |