41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# Template file for 'valgrind'
|
|
pkgname=valgrind
|
|
version=3.11.0
|
|
revision=2
|
|
only_for_archs="i686 x86_64 armv7l i686-musl x86_64-musl armv7l-musl"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-tls --with-mpicc=/dev/null"
|
|
hostmakedepends="automake perl pkg-config"
|
|
makedepends="libgomp-devel"
|
|
depends="perl"
|
|
short_desc="Tool for finding memory management bugs in programs"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://valgrind.org/"
|
|
license="GPL-2"
|
|
distfiles="http://www.valgrind.org/downloads/${pkgname}-${version}.tar.bz2"
|
|
checksum=6c396271a8c1ddd5a6fb9abe714ea1e8a86fce85b30ab26b4266aeb4c2413b42
|
|
|
|
CFLAGS="-fno-stack-protector"
|
|
CXXFLAGS="-fno-stack-protector"
|
|
|
|
nopie=yes
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
|
|
configure_args+=" ac_cv_host=armv7l-unknown-linux-gnueabihf"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
valgrind-devel_package() {
|
|
depends="valgrind>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/valgrind/*.a"
|
|
vmove usr/share/doc
|
|
}
|
|
}
|