Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=http://www.webmproject.org/ |
2 | TERMUX_PKG_DESCRIPTION="VP9 Codec SDK" | |
e58281b9 FF |
3 | TERMUX_PKG_VERSION=1.5.0 |
4 | TERMUX_PKG_SRCURL=https://github.com/webmproject/libvpx/archive/v${TERMUX_PKG_VERSION}.tar.gz | |
5 | TERMUX_PKG_FOLDERNAME=libvpx-${TERMUX_PKG_VERSION} | |
59f0d218 FF |
6 | |
7 | termux_step_configure () { | |
8 | if [ $TERMUX_ARCH = "arm" ]; then | |
9 | _CONFIGURE_TARGET=armv7-android-gcc | |
10 | elif [ $TERMUX_ARCH = "i686" ]; then | |
11 | export AS=yasm | |
12 | export LD=$CC | |
13 | _CONFIGURE_TARGET=x86-android-gcc | |
14 | else | |
15 | echo "Unsupported arch: $TERMUX_ARCH" | |
16 | exit 1 | |
17 | fi | |
18 | $TERMUX_PKG_SRCDIR/configure \ | |
19 | --sdk-path=$NDK \ | |
20 | --target=$_CONFIGURE_TARGET \ | |
21 | --prefix=$TERMUX_PREFIX \ | |
22 | --disable-examples \ | |
23 | --disable-vp8 \ | |
24 | --enable-shared \ | |
25 | --enable-small | |
26 | } |