f3b8752aaf
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/). Submitted by: Doug Rabson <dfr@FreeBSD.org> and Simon Barner <barner@in.tum.de>
70 lines
1.8 KiB
Makefile
70 lines
1.8 KiB
Makefile
# Ports collection makefile for: valgrind
|
|
# Date created: April 15 2004
|
|
# Whom: Simon Barner <barner@gmx.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= valgrind
|
|
PORTVERSION= 327
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.rabson.org/
|
|
DISTNAME= ${PORTNAME}-stable-${PORTVERSION}
|
|
|
|
MAINTAINER= barner@gmx.de
|
|
COMMENT= A (memory) debugging and profiling tool
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
CONFLICTS= valgrind-snapshot-*
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS+=--enable-maintainer-mode
|
|
USE_REINPLACE= yes
|
|
USE_PERL5_BUILD=yes
|
|
|
|
.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
|
|
|
|
post-install:
|
|
@${ECHO} ""
|
|
@${ECHO} ""
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO} ""
|
|
@${ECHO} ""
|
|
|
|
.include <bsd.port.post.mk>
|