# Template file for 'valgrind'
pkgname=valgrind
version=3.5.0
revision=1
distfiles="http://www.valgrind.org/downloads/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-tls"
short_desc="Tool for finding memory management bugs in programs"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=743a5132bbebc247169aefae6e17657677fdf0961aba1668dd4ee7028d27ba80
long_desc="
 Valgrind is a tool to help you find memory-management problems in your
 programs. When a program is run under Valgrind's supervision, all
 reads and writes of memory are checked, and calls to
 malloc/new/free/delete are intercepted. As a result, Valgrind can
 detect a lot of problems that are otherwise very hard to find/diagnose."

subpackages="$pkgname-devel"
Add_dependency run glibc
Add_dependency full perl
Add_dependency build pkg-config
Add_dependency build automake

pre_configure()
{
	cd ${wrksrc} && autoreconf -fi
}
