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
|
2016-10-27 18:54:07 +00:00
|
|
|
pkgver=3.12.0
|
2017-03-11 03:43:42 +00:00
|
|
|
pkgrel=2
|
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/'
|
2017-03-11 03:43:42 +00:00
|
|
|
depends=('glibc=2.25' '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
|
|
|
options=(!emptydirs)
|
2016-10-27 18:54:07 +00:00
|
|
|
source=(http://valgrind.org/downloads/$pkgname-$pkgver.tar.bz2)
|
|
|
|
sha1sums=('7a6878bf998c60d1e377a4f22ebece8d9305bda4')
|
2014-02-10 04:08:27 +00:00
|
|
|
|
|
|
|
build() {
|
2017-03-11 03:43:42 +00:00
|
|
|
# valgrind does not like stack protector flags
|
|
|
|
CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
|
|
|
|
CFLAGS=${CFLAGS/-fstack-protector-strong/}
|
|
|
|
CXXFLAGS=${CXXFLAGS/-fstack-protector-strong/}
|
2015-10-02 00:26:51 +00:00
|
|
|
|
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
|
|
|
}
|