subversion: Update from 1.9.7 to 1.10.0
[termux-packages] / packages / libvpx / build.sh
CommitLineData
43d77177 1TERMUX_PKG_HOMEPAGE=https://www.webmproject.org
56862a32 2TERMUX_PKG_DESCRIPTION="VP8 & VP9 Codec SDK"
4f081a78 3TERMUX_PKG_VERSION=1.6.1
d946e67c 4TERMUX_PKG_REVISION=1
e58281b9 5TERMUX_PKG_SRCURL=https://github.com/webmproject/libvpx/archive/v${TERMUX_PKG_VERSION}.tar.gz
4f081a78 6TERMUX_PKG_SHA256=cda8bb6f0e4848c018177d3a576fa83ed96d762554d7010fe4cfb9d70c22e588
59f0d218
FF
7
8termux_step_configure () {
43d77177
FF
9 # Force fresh install of header files:
10 rm -Rf $TERMUX_PREFIX/include/vpx
11
afcbe85e
FF
12 export LD=$CC
13
59f0d218 14 if [ $TERMUX_ARCH = "arm" ]; then
afcbe85e 15 export AS=$TERMUX_HOST_PLATFORM-as
dd15f7cf 16 _CONFIGURE_TARGET="--target=armv7-android-gcc"
59f0d218
FF
17 elif [ $TERMUX_ARCH = "i686" ]; then
18 export AS=yasm
dd15f7cf
FF
19 _CONFIGURE_TARGET="--target=x86-android-gcc"
20 elif [ $TERMUX_ARCH = "aarch64" ]; then
21 _CONFIGURE_TARGET="--force-target=arm64-v8a-android-gcc"
22 elif [ $TERMUX_ARCH = "x86_64" ]; then
23 export AS=yasm
dd15f7cf 24 _CONFIGURE_TARGET="--target=x86_64-android-gcc"
59f0d218 25 else
71430aa6 26 termux_error_exit "Unsupported arch: $TERMUX_ARCH"
59f0d218 27 fi
9f04f4c4
FF
28
29 # For --disable-realtime-only, see
30 # https://bugs.chromium.org/p/webm/issues/detail?id=800
31 # "The issue is that on android we soft enable realtime only.
32 # [..] You can enable non-realtime by setting --disable-realtime-only"
33 # Discovered in https://github.com/termux/termux-packages/issues/554
afcbe85e 34 #CROSS=${TERMUX_HOST_PLATFORM}- CC=clang CXX=clang++ $TERMUX_PKG_SRCDIR/configure \
59f0d218 35 $TERMUX_PKG_SRCDIR/configure \
dd15f7cf 36 $_CONFIGURE_TARGET \
59f0d218
FF
37 --prefix=$TERMUX_PREFIX \
38 --disable-examples \
9f04f4c4 39 --disable-realtime-only \
afcbe85e
FF
40 --disable-unit-tests \
41 --enable-pic \
56862a32 42 --enable-vp8 \
59f0d218
FF
43 --enable-shared \
44 --enable-small
45}