summaryrefslogtreecommitdiffstats
path: root/devel/cccc/files
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1997-11-03 10:02:38 +0000
committertg <tg@FreeBSD.org>1997-11-03 10:02:38 +0000
commit9ac61ec9c409bf28cb4adc337571243203190a8a (patch)
treed5a03073506db89ed10adc42c632b909a234e49d /devel/cccc/files
parent321431cb3cdc75a82b491c3e4b5dc1cb316e95d5 (diff)
downloadFreeBSD-ports-9ac61ec9c409bf28cb4adc337571243203190a8a.zip
FreeBSD-ports-9ac61ec9c409bf28cb4adc337571243203190a8a.tar.gz
Import of cccc port. cccc is a C and C++ code counter which
generates some statistics on your code as HTML output. PR: 4552 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Diffstat (limited to 'devel/cccc/files')
-rw-r--r--devel/cccc/files/patch-aa47
-rw-r--r--devel/cccc/files/patch-ab17
2 files changed, 64 insertions, 0 deletions
diff --git a/devel/cccc/files/patch-aa b/devel/cccc/files/patch-aa
new file mode 100644
index 0000000..ed4207c
--- /dev/null
+++ b/devel/cccc/files/patch-aa
@@ -0,0 +1,47 @@
+*** makefile Sun Aug 10 16:52:24 1997
+--- /home/andy/tmp/wrk/makefile Sat Sep 13 18:42:12 1997
+***************
+*** 12,17 ****
+--- 12,21 ----
+ CONF=djgpp
+ endif
+
++ ifeq "$(OSTYPE)" "FreeBSD"
++ CONF=FreeBSD
++ endif
++
+ ifeq "$(OSTYPE)" "Linux"
+ CONF=linux
+ endif
+***************
+*** 53,58 ****
+--- 57,85 ----
+ CCCC_BIN = ## the name of the cccc binary
+ INSTALL_BINDIR = ## the location where the binary is to be installed
+ INSTALL_LIBDIR = ## the location where the .dat files are to be installed
++ endif
++
++ ifeq "$(CONF)" "FreeBSD"
++
++ ## preferred directories for FreeBSD is under /usr/local tree
++ ## we need pccts installed from package
++ PCCTS = $(PREFIX)
++ PCCTS_H = $(PCCTS)/include/pccts
++ PCCTS_BIN = $(PCCTS)/bin
++
++ ## using the GNU C++ compiler
++ ## we need working templates - I use version 2.7.2, I am not sure whether
++ ## versions earlier than 2.7 are OK
++ CCC=g++
++ LD=g++
++ CFLAGS+= -I/usr/include/g++-include -I. -I$(PCCTS_H)
++ CPPEXT=cpp
++
++ COPY = cp
++ CCCC_BIN = cccc
++ INSTALL_BINDIR = $(PREFIX)/bin
++ INSTALL_LIBDIR = $(PREFIX)/share/cccc
++
+ endif
+
+ ifeq "$(CONF)" "linux"
diff --git a/devel/cccc/files/patch-ab b/devel/cccc/files/patch-ab
new file mode 100644
index 0000000..8e6e558
--- /dev/null
+++ b/devel/cccc/files/patch-ab
@@ -0,0 +1,17 @@
+*** cccc.h Sun Aug 10 16:52:24 1997
+--- /home/andy/tmp/wrk/cccc.h Fri Sep 12 23:00:32 1997
+***************
+*** 21,27 ****
+--- 21,32 ----
+ #else
+
+ #define SIGNAL_HEADER <sys/signal.h>
++
++ #ifdef __FreeBSD__
++ #define DEFAULT_LIBDIR "/usr/local/share/cccc"
++ #else
+ #define DEFAULT_LIBDIR "/usr/local/lib/cccc"
++ #endif
+
+ #endif
+
OpenPOWER on IntegriCloud