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