aboutsummaryrefslogtreecommitdiff
path: root/devel/fnccheck
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-01-23 07:40:06 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-01-23 07:40:06 +0000
commitc62225cc7768a74563f71b3144e1668e9b0b2294 (patch)
tree2bc166aed57478b2b32c33435acb344956d7fb53 /devel/fnccheck
parent0738f4702eed5891698b4deac48c83e1a310f510 (diff)
downloadports-c62225cc7768a74563f71b3144e1668e9b0b2294.tar.gz
ports-c62225cc7768a74563f71b3144e1668e9b0b2294.zip
Notes
Diffstat (limited to 'devel/fnccheck')
-rw-r--r--devel/fnccheck/Makefile36
-rw-r--r--devel/fnccheck/distinfo1
-rw-r--r--devel/fnccheck/files/patch-aa23
-rw-r--r--devel/fnccheck/files/patch-ab51
-rw-r--r--devel/fnccheck/files/patch-ac12
-rw-r--r--devel/fnccheck/pkg-comment1
-rw-r--r--devel/fnccheck/pkg-descr10
-rw-r--r--devel/fnccheck/pkg-plist10
8 files changed, 144 insertions, 0 deletions
diff --git a/devel/fnccheck/Makefile b/devel/fnccheck/Makefile
new file mode 100644
index 000000000000..ddcecb50711c
--- /dev/null
+++ b/devel/fnccheck/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: fnccheck
+# Date created: 22 January 2001
+# Whom: George Reid <greid@ukug.uk.freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fnccheck
+PORTVERSION= 1.2
+CATEGORIES= devel
+MASTER_SITES= http://www710.univ-lyon1.fr/~yperret/
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= greid@ukug.uk.freebsd.org
+
+INSTALLS_SHLIB= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-devel-${PORTVERSION}
+
+DOCS= README.txt README1ST.txt CHANGES.txt \
+ doc/fncdump.info doc/html/fncdump_toc.html \
+ doc/html/fncdump.html
+
+do-install:
+.for B in fncdump fncaverage
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/$B ${PREFIX}/bin
+.endfor
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/libfnccheck.so ${PREFIX}/lib
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/fnccheck
+.for D in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/$D ${PREFIX}/share/doc/fnccheck
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/fnccheck/distinfo b/devel/fnccheck/distinfo
new file mode 100644
index 000000000000..4df93d5a52d3
--- /dev/null
+++ b/devel/fnccheck/distinfo
@@ -0,0 +1 @@
+MD5 (fnccheck_1.2.tar.gz) = 081e2f485d31ef9824e638626448ca29
diff --git a/devel/fnccheck/files/patch-aa b/devel/fnccheck/files/patch-aa
new file mode 100644
index 000000000000..22a68b2a27bd
--- /dev/null
+++ b/devel/fnccheck/files/patch-aa
@@ -0,0 +1,23 @@
+--- Makefile.orig Wed Jan 17 12:48:32 2001
++++ Makefile Mon Jan 22 17:34:43 2001
+@@ -2,10 +2,9 @@
+ PACKAGE = fnccheck
+ VERSION = 1.1.4
+
+-prefix = /usr/local
+ bindir = $(prefix)/bin
+ libdir = $(prefix)/lib
+-docdir = $(prefix)/doc/$(PACKAGE)-$(VERSION)
++docdir = $(prefix)/doc/$(PACKAGE)
+
+ INSTALL = install
+
+@@ -24,7 +23,7 @@
+ echo "Use 'make install' to install the lib" ; \
+ echo "Use 'make all' to generate everything"
+
+-all: fnccheck fncdump fncaverage essai essai_interact
++all: fnccheck fncdump_nobfd fncaverage
+
+ fnccheck:
+ -@ cd src/ ; make fnccheck
diff --git a/devel/fnccheck/files/patch-ab b/devel/fnccheck/files/patch-ab
new file mode 100644
index 000000000000..337675563d22
--- /dev/null
+++ b/devel/fnccheck/files/patch-ab
@@ -0,0 +1,51 @@
+--- src/Makefile.orig Tue Jan 9 12:09:48 2001
++++ src/Makefile Mon Jan 22 17:05:13 2001
+@@ -1,10 +1,9 @@
+-CC = gcc
+-CFLAGS = -Wall -O3 -I/usr/include -I/usr/local/include
+-LIBS = -L/lib -L/usr/lib -L/usr/local/lib -lm
++CC?= gcc
+
+ .c.o:
+ $(CC) $(EXT) $(CFLAGS) $(INCLUDE) -c $<
+
++LIBS=-lm
+ LIBFILE=fnccheck.c
+ LIBNAME=libfnccheck.so
+ DUMP=fncdump
+@@ -14,28 +13,28 @@
+ -@ echo "Please specify a target."
+
+ fnccheck:
+- $(CC) -Wall -O3 -c $(LIBFILE)
+- $(CC) -Wall -O3 -fPIC -c $(LIBFILE) -o $(LIBNAME)
++ $(CC) $(CFLAGS) -c $(LIBFILE)
++ $(CC) $(CFLAGS) -fPIC -c $(LIBFILE) -o $(LIBNAME)
+ mv $(LIBNAME) ../lib/
+
+ dfnccheck:
+- $(CC) -Wall -O3 -DFNCCHK_DEBUG -c $(LIBFILE)
+- $(CC) -Wall -O3 -fPIC -DFNCCHK_DEBUG -c $(LIBFILE) -o $(LIBNAME)
++ $(CC) $(CFLAGS) -DFNCCHK_DEBUG -c $(LIBFILE)
++ $(CC) $(CFLAGS) -fPIC -DFNCCHK_DEBUG -c $(LIBFILE) -o $(LIBNAME)
+ mv $(LIBNAME) ../lib/
+
+ fncdump:
+ -@ export EXT=-DFNCCHK_USE_BFD ; make real_fncdump
+
+ real_fncdump: fncdump.o
+- $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) -lbfd -liberty
++ $(CC) $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) -lbfd -liberty
+ mv $(DUMP) ../bin
+
+ fncdump_nobfd: fncdump.o
+- $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS)
++ $(CC) $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS)
+ mv $(DUMP) ../bin
+
+ fncaverage: fnccheck.o fncaverage.o
+- $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(AVG) fncaverage.o fnccheck.o $(LIBS)
++ $(CC) $(CFLAGS) $(INCLUDE) -o $(AVG) fncaverage.o fnccheck.o $(LIBS)
+ mv $(AVG) ../bin
+
+ clean:
diff --git a/devel/fnccheck/files/patch-ac b/devel/fnccheck/files/patch-ac
new file mode 100644
index 000000000000..d6e0a8c7a25c
--- /dev/null
+++ b/devel/fnccheck/files/patch-ac
@@ -0,0 +1,12 @@
+--- test/Makefile.orig Mon Jan 22 17:06:25 2001
++++ test/Makefile Mon Jan 22 17:06:52 2001
+@@ -1,6 +1,6 @@
+-CC = gcc
+-CFLAGS = -Wall -I/usr/include -I/usr/local/include
+-LIBS = -L/lib -L/usr/lib -L/usr/local/lib -lm
++CC? = gcc
++CFLAGS+= -Wall
++LIBS = -lm
+
+ .c.o:
+ $(CC) $(CFLAGS) $(INCLUDE) $(EXTS) -c $<
diff --git a/devel/fnccheck/pkg-comment b/devel/fnccheck/pkg-comment
new file mode 100644
index 000000000000..f2123ffb4c96
--- /dev/null
+++ b/devel/fnccheck/pkg-comment
@@ -0,0 +1 @@
+A profiling library/utilities for C/C++ programs
diff --git a/devel/fnccheck/pkg-descr b/devel/fnccheck/pkg-descr
new file mode 100644
index 000000000000..f591f0220547
--- /dev/null
+++ b/devel/fnccheck/pkg-descr
@@ -0,0 +1,10 @@
+FncCheck is a library which generates profiles for C/C++ programs.
+A profile is a list of informations about your functions, such as
+time spend in functions, number of calls and other things.
+
+In order to use FncCheck, you have to compile your .o files
+with '-finstrument-functions -g' switches (gcc V2.95.2 and higher).
+You have then to link your executable with the library 'libfnccheck.so'.
+
+- George Reid
+greid@ukug.uk.freebsd.org
diff --git a/devel/fnccheck/pkg-plist b/devel/fnccheck/pkg-plist
new file mode 100644
index 000000000000..6dcd8410da32
--- /dev/null
+++ b/devel/fnccheck/pkg-plist
@@ -0,0 +1,10 @@
+bin/fncaverage
+bin/fncdump
+lib/libfnccheck.so
+%%PORTDOCS%%share/doc/fnccheck/CHANGES.txt
+%%PORTDOCS%%share/doc/fnccheck/README.txt
+%%PORTDOCS%%share/doc/fnccheck/README1ST.txt
+%%PORTDOCS%%share/doc/fnccheck/fncdump.html
+%%PORTDOCS%%share/doc/fnccheck/fncdump.info
+%%PORTDOCS%%share/doc/fnccheck/fncdump_toc.html
+%%PORTDOCS%%@dirrm share/doc/fnccheck