aboutsummaryrefslogtreecommitdiffstats
path: root/devel/valgrind-snapshot
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-05-24 01:40:32 +0800
committerkrion <krion@FreeBSD.org>2004-05-24 01:40:32 +0800
commit0f4e5aabf39a61bfb0f7504a7a78c03da420c6ce (patch)
tree853500fafc4e40e714accc63cd7690d7be0af05f /devel/valgrind-snapshot
parent0ce87cb6a3b92ab4d04218e5b409a358377aff97 (diff)
downloadfreebsd-ports-gnome-0f4e5aabf39a61bfb0f7504a7a78c03da420c6ce.tar.gz
freebsd-ports-gnome-0f4e5aabf39a61bfb0f7504a7a78c03da420c6ce.tar.zst
freebsd-ports-gnome-0f4e5aabf39a61bfb0f7504a7a78c03da420c6ce.zip
Valgrind is a system for debugging and profiling un*x
programs. With the tools that come with Valgrind, you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable. You can also perform detailed profiling, to speed up and reduce memory use of your programs. This version is based on a more recent snapshot of devel/valgrind and supports some older AMD processors. Submitted by: Doug Rabson <dfr@FreeBSD.org> and Simon Barner <barner@in.tum.de>
Diffstat (limited to 'devel/valgrind-snapshot')
-rw-r--r--devel/valgrind-snapshot/Makefile67
-rw-r--r--devel/valgrind-snapshot/distinfo2
-rw-r--r--devel/valgrind-snapshot/pkg-descr13
-rw-r--r--devel/valgrind-snapshot/pkg-plist56
4 files changed, 138 insertions, 0 deletions
diff --git a/devel/valgrind-snapshot/Makefile b/devel/valgrind-snapshot/Makefile
new file mode 100644
index 000000000000..1e185c681474
--- /dev/null
+++ b/devel/valgrind-snapshot/Makefile
@@ -0,0 +1,67 @@
+# Ports collection makefile for: valgrind
+# Date created: April 19 2004
+# Whom: Simon Barner <barner@gmx.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= valgrind
+PORTVERSION= 337
+CATEGORIES= devel
+MASTER_SITES= http://www.rabson.org/
+PKGNAMESUFFIX= -snapshot
+DISTNAME= ${PORTNAME}-current-${PORTVERSION}
+
+MAINTAINER= barner@gmx.de
+COMMENT= A (memory) debugging and profiling tool
+
+CONFLICTS= valgrind-32*
+LATEST_LINK= valgrind-snapshot
+
+ONLY_FOR_ARCHS= i386
+
+USE_GMAKE= yes
+USE_PERL5_BUILD=yes
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+.include <bsd.port.pre.mk>
+
+PROCFS!= /sbin/mount | ${GREP} '^procfs' | ${AWK} '{print $1}'
+
+pre-everything::
+
+.if ${PROCFS}
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "Check if procfs is running: YES"
+.else
+ @${ECHO_CMD} "-----------------------------------------------------------"
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "Valgrind needs a running procfs, which is not"
+ @${ECHO_CMD} "activated on your system. Please read the procfs\(5\)"
+ @${ECHO_CMD} "manpage and add the following line to /etc/fstab:"
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "proc /proc procfs rw 0 0"
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "-----------------------------------------------------------"
+ @${FALSE}
+.endif
+
+.if ${PERL_LEVEL} < 500601
+ @${ECHO_CMD} "Your Perl version is too old. You will need at least Perl 5.6.1"
+ @${ECHO_CMD} "in order to build valgrind."
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "Please use the lang/perl5 or the lang/perl5.8 to upgrade your"
+ @${ECHO_CMD} "Perl installation to version 5.6.1 or 5.8.2 respectively."
+.endif
+
+pre-patch:
+.ifdef(NOPORTDOCS)
+ ${FIND} ${WRKSRC} -name "Makefile.in" -exec \
+ ${REINPLACE_CMD} -e "s/docs//g" {} \;
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/valgrind-snapshot/distinfo b/devel/valgrind-snapshot/distinfo
new file mode 100644
index 000000000000..938358199eba
--- /dev/null
+++ b/devel/valgrind-snapshot/distinfo
@@ -0,0 +1,2 @@
+MD5 (valgrind-current-337.tar.gz) = 7b000f7de6bd6b9e9213b719299cf48a
+SIZE (valgrind-current-337.tar.gz) = 1335664
diff --git a/devel/valgrind-snapshot/pkg-descr b/devel/valgrind-snapshot/pkg-descr
new file mode 100644
index 000000000000..dc6b4069c111
--- /dev/null
+++ b/devel/valgrind-snapshot/pkg-descr
@@ -0,0 +1,13 @@
+Valgrind is a system for debugging and profiling un*x programs. With the tools
+that come with Valgrind, you can automatically detect many memory management
+and threading bugs, avoiding hours of frustrating bug-hunting, making your
+programs more stable. You can also perform detailed profiling, to speed up and
+reduce memory use of your programs.
+
+The Valgrind distribution includes five tools: two memory error detectors, a
+thread error detector, a cache profiler and a heap profiler. Several other
+tools have been built with Valgrind.
+
+Valgrind was ported to FreeBSD by Doug Rabson (http://www.rabson.org/).
+
+WWW: http://valgrind.kde.org/
diff --git a/devel/valgrind-snapshot/pkg-plist b/devel/valgrind-snapshot/pkg-plist
new file mode 100644
index 000000000000..8f04eee7bb80
--- /dev/null
+++ b/devel/valgrind-snapshot/pkg-plist
@@ -0,0 +1,56 @@
+bin/cg_annotate
+bin/valgrind
+bin/valgrind-listener
+include/valgrind/helgrind.h
+include/valgrind/memcheck.h
+include/valgrind/valgrind.h
+include/valgrind/vg_constants_skin.h
+include/valgrind/vg_kerneliface.h
+include/valgrind/vg_skin.h
+lib/valgrind/default.supp
+lib/valgrind/glibc-2.1.supp
+lib/valgrind/glibc-2.2.supp
+lib/valgrind/glibc-2.3.supp
+lib/valgrind/hp2ps
+lib/valgrind/libc_r.so.5
+lib/valgrind/libkse.so.1
+lib/valgrind/libpthread.so
+lib/valgrind/libpthread.so.0
+lib/valgrind/libthr.so.1
+lib/valgrind/stage2
+lib/valgrind/valgrind
+lib/valgrind/vg_inject.so
+lib/valgrind/vg_symtabd
+lib/valgrind/vgpreload_addrcheck.so
+lib/valgrind/vgpreload_helgrind.so
+lib/valgrind/vgpreload_massif.so
+lib/valgrind/vgpreload_memcheck.so
+lib/valgrind/vgskin_addrcheck.so
+lib/valgrind/vgskin_cachegrind.so
+lib/valgrind/vgskin_corecheck.so
+lib/valgrind/vgskin_helgrind.so
+lib/valgrind/vgskin_lackey.so
+lib/valgrind/vgskin_massif.so
+lib/valgrind/vgskin_memcheck.so
+lib/valgrind/vgskin_none.so
+lib/valgrind/xfree-3.supp
+lib/valgrind/xfree-4.supp
+libdata/pkgconfig/valgrind.pc
+%%PORTDOCS%%%%DOCSDIR%%/ac_main.html
+%%PORTDOCS%%%%DOCSDIR%%/cc_main.html
+%%PORTDOCS%%%%DOCSDIR%%/cg_main.html
+%%PORTDOCS%%%%DOCSDIR%%/cg_techdocs.html
+%%PORTDOCS%%%%DOCSDIR%%/coregrind_core.html
+%%PORTDOCS%%%%DOCSDIR%%/coregrind_intro.html
+%%PORTDOCS%%%%DOCSDIR%%/coregrind_tools.html
+%%PORTDOCS%%%%DOCSDIR%%/date.gif
+%%PORTDOCS%%%%DOCSDIR%%/hg_main.html
+%%PORTDOCS%%%%DOCSDIR%%/lk_main.html
+%%PORTDOCS%%%%DOCSDIR%%/manual.html
+%%PORTDOCS%%%%DOCSDIR%%/mc_main.html
+%%PORTDOCS%%%%DOCSDIR%%/mc_techdocs.html
+%%PORTDOCS%%%%DOCSDIR%%/ms_main.html
+%%PORTDOCS%%%%DOCSDIR%%/nl_main.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm lib/valgrind
+@dirrm include/valgrind