php: Update from 7.1.1 to 7.1.2 and enable pcntl
[termux-packages] / packages / valgrind / build.sh
1 TERMUX_PKG_HOMEPAGE=http://valgrind.org/
2 TERMUX_PKG_DESCRIPTION="Valgrind is an instrumentation framework for building dynamic analysis tools."
3 TERMUX_PKG_VERSION=3.12.0
4 TERMUX_PKG_SRCURL=http://valgrind.org/downloads/valgrind-${TERMUX_PKG_VERSION}.tar.bz2
5 TERMUX_PKG_SHA256=67ca4395b2527247780f36148b084f5743a68ab0c850cb43e4a5b4b012cf76a1
6 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-tmpdir=$TERMUX_PREFIX/tmp"
7 # - Does not build on x86_64 due to lacking upstream support of that arch on android.
8 # See https://bugs.kde.org/show_bug.cgi?id=348342
9 TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
10 # With a clang build on aarch64:
11 # "error: the clang compiler does not support '-mcpu=cortex-a8'":
12 TERMUX_PKG_CLANG=no
13
14 termux_step_pre_configure() {
15 if [ "$TERMUX_ARCH" == "arm" ]; then
16 # valgrind doesn't like arm; armv7 works, though.
17 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --host=armv7-linux-androideabi"
18 # http://lists.busybox.net/pipermail/buildroot/2013-November/082270.html:
19 # "valgrind uses inline assembly that is not Thumb compatible":
20 CFLAGS=${CFLAGS/-mthumb/}
21 fi
22 }