aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1995-10-03 09:24:26 +0000
committerSatoshi Asami <asami@FreeBSD.org>1995-10-03 09:24:26 +0000
commit3ae9644c2bf7b24e0b1ab4e4f636d8605684e38f (patch)
treed89019d0284aaf5f1c131f2b2271cd854d8c0be7
parenteca97caee489b44171ba63d2e63ad879e5226a5a (diff)
downloadports-3ae9644c2bf7b24e0b1ab4e4f636d8605684e38f.tar.gz
ports-3ae9644c2bf7b24e0b1ab4e4f636d8605684e38f.zip
Notes
-rw-r--r--devel/cflow/Makefile20
-rw-r--r--devel/cflow/distinfo1
-rw-r--r--devel/cflow/files/patch-aa115
-rw-r--r--devel/cflow/files/patch-ab20
-rw-r--r--devel/cflow/pkg-comment1
-rw-r--r--devel/cflow/pkg-descr6
-rw-r--r--devel/cflow/pkg-plist3
7 files changed, 166 insertions, 0 deletions
diff --git a/devel/cflow/Makefile b/devel/cflow/Makefile
new file mode 100644
index 000000000000..75f49a3f3349
--- /dev/null
+++ b/devel/cflow/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: cflow
+# Version required: 2.0
+# Date created: 28 Sept 1995
+# Whom: dchapes@zeus.leitch.com
+#
+# $Id: Makefile,v $
+#
+
+DISTNAME= cflow-2.0
+CATEGORIES+= development
+MASTER_SITES= ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/ \\
+ ftp://info2.rus.uni-stuttgart.de/pub/systems/linux/MIRROR.sunsite/devel/lang/c/
+
+MAINTAINER= dchapes@zeus.leitch.com
+
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+
+USE_GMAKE= yes
+
+.include <bsd.port.mk>
diff --git a/devel/cflow/distinfo b/devel/cflow/distinfo
new file mode 100644
index 000000000000..ea2572c3c28e
--- /dev/null
+++ b/devel/cflow/distinfo
@@ -0,0 +1 @@
+MD5 (cflow-2.0.tar.gz) = 09d6131980aa770289938f71401e8976
diff --git a/devel/cflow/files/patch-aa b/devel/cflow/files/patch-aa
new file mode 100644
index 000000000000..f86901ec3f5c
--- /dev/null
+++ b/devel/cflow/files/patch-aa
@@ -0,0 +1,115 @@
+*** Makefile.orig Mon Mar 6 09:00:20 1995
+--- Makefile Fri Sep 29 04:08:35 1995
+***************
+*** 5,23 ****
+ endif
+
+ # use cp backup option if you have gnu cp
+! CP=cp
+! CP=cp -b
+
+ # where you want to install
+ ifndef PREFIX
+! PREFIX=$(HOME)
+ endif
+
+ # which shell do we use for the cflow to script?
+ # I know it works on bash on unix, it also should work with
+ # msh on ms-dog
+ ifndef CFLOW_SHELL
+! CFLOW_SHELL=/bin/bash
+ endif
+
+ # actual location of prcc
+--- 5,24 ----
+ endif
+
+ # use cp backup option if you have gnu cp
+! #CP=cp
+! #CP=cp -b
+! INSTALL_CMD= install -c -o bin -g bin
+
+ # where you want to install
+ ifndef PREFIX
+! PREFIX=/usr/local
+ endif
+
+ # which shell do we use for the cflow to script?
+ # I know it works on bash on unix, it also should work with
+ # msh on ms-dog
+ ifndef CFLOW_SHELL
+! CFLOW_SHELL=$(PREFIX)/bin/bash
+ endif
+
+ # actual location of prcc
+***************
+*** 39,50 ****
+ LOADLIBES=-L$(HOME)/lib -ldmalloc
+ endif
+
+! DEBUG=-g
+ OPT=-O
+! CFLAGS=-Wall $(DEBUG) $(OPT) $(DEFS)
+
+ # set this to where to install
+ BINDIR=$(PREFIX)/bin
+
+ SRCS=cflow.sh prcc.c prcg.c
+
+--- 40,52 ----
+ LOADLIBES=-L$(HOME)/lib -ldmalloc
+ endif
+
+! #DEBUG=-g
+ OPT=-O
+! CFLAGS=$(DEBUG) $(OPT) $(DEFS)
+
+ # set this to where to install
+ BINDIR=$(PREFIX)/bin
++ MANDIR=$(PREFIX)/man/man1
+
+ SRCS=cflow.sh prcc.c prcg.c
+
+***************
+*** 64,80 ****
+ prototypes: $(PROTOTYPES)
+
+
+! install: install-cflow install-bins
+
+ install-bins: $(BINDIR)/prcc $(BINDIR)/prcg
+
+ install-cflow: $(BINDIR)/cflow
+
+ $(BINDIR)/prcc $(BINDIR)/prcg: $(BINDIR)/%: %
+! $(CP) $^ $@
+
+ $(BINDIR)/cflow: cflow
+! $(CP) $^ $@
+
+ cflow: cflow.sh
+ sed -e "s;@CFLOW_SHELL@;$(CFLOW_SHELL);g" \
+--- 66,88 ----
+ prototypes: $(PROTOTYPES)
+
+
+! install: install-cflow install-bins install-man
+
+ install-bins: $(BINDIR)/prcc $(BINDIR)/prcg
+
+ install-cflow: $(BINDIR)/cflow
+
++ install-man: $(MANDIR)/cflow.1.gz
++
+ $(BINDIR)/prcc $(BINDIR)/prcg: $(BINDIR)/%: %
+! $(INSTALL_CMD) $^ $@
+
+ $(BINDIR)/cflow: cflow
+! $(INSTALL_CMD) -m0755 $^ $@
+!
+! $(MANDIR)/cflow.1.gz: cflow.1
+! $(INSTALL_CMD) -m 0644 $^ $(MANDIR)
+! gzip --best $(MANDIR)/cflow.1
+
+ cflow: cflow.sh
+ sed -e "s;@CFLOW_SHELL@;$(CFLOW_SHELL);g" \
diff --git a/devel/cflow/files/patch-ab b/devel/cflow/files/patch-ab
new file mode 100644
index 000000000000..864b02cfd0be
--- /dev/null
+++ b/devel/cflow/files/patch-ab
@@ -0,0 +1,20 @@
+*** prcc.prototypes.h.orig Sun Oct 30 14:32:00 1994
+--- prcc.prototypes.h Fri Sep 29 04:06:51 1995
+***************
+*** 16,23 ****
+ static void per_file_init(void);
+ static void per_file_cleanup(void);
+ static BOOLEAN name_redefined(int isvar);
+! static void display_keywords(const char *type, char **words);
+! static void show_all_keywords(void);
+ static BOOLEAN name_to_list(name_t **lp, char *lex_name);
+ static BOOLEAN name_from_list(name_t **lp);
+ static BOOLEAN name_in_list(name_t *l);
+--- 16,22 ----
+ static void per_file_init(void);
+ static void per_file_cleanup(void);
+ static BOOLEAN name_redefined(int isvar);
+! static void show_all_lists(void);
+ static BOOLEAN name_to_list(name_t **lp, char *lex_name);
+ static BOOLEAN name_from_list(name_t **lp);
+ static BOOLEAN name_in_list(name_t *l);
diff --git a/devel/cflow/pkg-comment b/devel/cflow/pkg-comment
new file mode 100644
index 000000000000..e07c41f66358
--- /dev/null
+++ b/devel/cflow/pkg-comment
@@ -0,0 +1 @@
+cflow 2.0 - A call graph generator for C code.
diff --git a/devel/cflow/pkg-descr b/devel/cflow/pkg-descr
new file mode 100644
index 000000000000..5609b47ee5f7
--- /dev/null
+++ b/devel/cflow/pkg-descr
@@ -0,0 +1,6 @@
+Cflow reads files as C program source and attempts to print a graph
+of the program's function call hierarchy to the standard output.
+Called functions are indented with respect to their calling functions,
+and printed only once, in the order they occur.
+
+This is version 2.0.
diff --git a/devel/cflow/pkg-plist b/devel/cflow/pkg-plist
new file mode 100644
index 000000000000..6985a2d9cc43
--- /dev/null
+++ b/devel/cflow/pkg-plist
@@ -0,0 +1,3 @@
+bin/cflow
+bin/prcc
+bin/prcg