Commit | Line | Data |
---|---|---|
43d77177 | 1 | TERMUX_PKG_HOMEPAGE=https://www.webmproject.org |
56862a32 | 2 | TERMUX_PKG_DESCRIPTION="VP8 & VP9 Codec SDK" |
3f300a10 | 3 | TERMUX_PKG_VERSION=1.6.0 |
af4dc416 | 4 | TERMUX_PKG_REVISION=2 |
e58281b9 FF |
5 | TERMUX_PKG_SRCURL=https://github.com/webmproject/libvpx/archive/v${TERMUX_PKG_VERSION}.tar.gz |
6 | TERMUX_PKG_FOLDERNAME=libvpx-${TERMUX_PKG_VERSION} | |
59f0d218 FF |
7 | |
8 | termux_step_configure () { | |
43d77177 FF |
9 | # Force fresh install of header files: |
10 | rm -Rf $TERMUX_PREFIX/include/vpx | |
11 | ||
59f0d218 | 12 | if [ $TERMUX_ARCH = "arm" ]; then |
dd15f7cf | 13 | _CONFIGURE_TARGET="--target=armv7-android-gcc" |
59f0d218 FF |
14 | elif [ $TERMUX_ARCH = "i686" ]; then |
15 | export AS=yasm | |
16 | export LD=$CC | |
dd15f7cf FF |
17 | _CONFIGURE_TARGET="--target=x86-android-gcc" |
18 | elif [ $TERMUX_ARCH = "aarch64" ]; then | |
19 | _CONFIGURE_TARGET="--force-target=arm64-v8a-android-gcc" | |
20 | elif [ $TERMUX_ARCH = "x86_64" ]; then | |
21 | export AS=yasm | |
22 | export LD=$CC | |
23 | _CONFIGURE_TARGET="--target=x86_64-android-gcc" | |
59f0d218 FF |
24 | else |
25 | echo "Unsupported arch: $TERMUX_ARCH" | |
26 | exit 1 | |
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 | |
59f0d218 FF |
34 | $TERMUX_PKG_SRCDIR/configure \ |
35 | --sdk-path=$NDK \ | |
dd15f7cf | 36 | $_CONFIGURE_TARGET \ |
59f0d218 FF |
37 | --prefix=$TERMUX_PREFIX \ |
38 | --disable-examples \ | |
9f04f4c4 | 39 | --disable-realtime-only \ |
56862a32 | 40 | --enable-vp8 \ |
59f0d218 FF |
41 | --enable-shared \ |
42 | --enable-small | |
43 | } |