2014-04-06 02:27:51 +00:00
|
|
|
# $Id$
|
2012-06-06 20:28:35 +00:00
|
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2015-10-27 03:46:58 +00:00
|
|
|
# - hold for toolchain update, only build for v7/v8
|
2013-08-15 12:37:29 +00:00
|
|
|
|
2015-10-27 03:46:58 +00:00
|
|
|
buildarch=12
|
2016-03-15 18:14:30 +00:00
|
|
|
#noautobuild=1
|
2014-02-10 04:08:27 +00:00
|
|
|
|
2012-06-06 20:28:35 +00:00
|
|
|
pkgname=valgrind
|
2015-10-01 23:42:01 +00:00
|
|
|
pkgver=3.11.0
|
2016-03-15 18:14:30 +00:00
|
|
|
pkgrel=3
|
2014-04-06 02:27:51 +00:00
|
|
|
pkgdesc='A tool to help find memory-management problems in programs'
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
license=(GPL)
|
|
|
|
url='http://valgrind.org/'
|
2016-02-22 13:31:04 +00:00
|
|
|
depends=('glibc>=2.23' 'glibc<2.24' 'perl')
|
2015-10-01 23:42:01 +00:00
|
|
|
makedepends=(gdb openmpi)
|
2014-09-19 19:17:55 +00:00
|
|
|
optdepends=('openmpi: MPI support')
|
2015-10-01 23:42:01 +00:00
|
|
|
# valgrind does not like stack protector flags
|
|
|
|
options=(!emptydirs)
|
2016-03-15 18:14:30 +00:00
|
|
|
source=(http://valgrind.org/downloads/$pkgname-$pkgver.tar.bz2
|
|
|
|
fix_rlimit.patch)
|
|
|
|
sha1sums=('340757e91d9e83591158fe8bb985c6b11bc53de5'
|
|
|
|
'df0e8eb9ff28d4ae5aa1e360de9c6616d1268c63')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p0 < ../fix_rlimit.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1301093
|
|
|
|
}
|
2014-02-10 04:08:27 +00:00
|
|
|
|
|
|
|
build() {
|
2015-10-02 00:26:51 +00:00
|
|
|
CFLAGS=${CFLAGS/-fstack-protector/} # remove stack protector flag
|
|
|
|
|
2014-04-06 02:27:51 +00:00
|
|
|
cd $pkgname-$pkgver
|
2014-09-19 19:17:55 +00:00
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man --with-mpicc=mpicc
|
2012-06-06 20:28:35 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-04-06 02:27:51 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
2012-06-06 20:28:35 +00:00
|
|
|
}
|