You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

TERMUX_PKG_HOMEPAGE=https://www.webmproject.org
TERMUX_PKG_DESCRIPTION="VP8 & VP9 Codec SDK"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_VERSION=1.8.0
TERMUX_PKG_SHA256=86df18c694e1c06cc8f83d2d816e9270747a0ce6abe316e93a4f4095689373f6
TERMUX_PKG_SRCURL=https://github.com/webmproject/libvpx/archive/v${TERMUX_PKG_VERSION}.tar.gz
10 years ago
termux_step_configure() {
# Force fresh install of header files:
rm -Rf $TERMUX_PREFIX/include/vpx
export LD=$CC
10 years ago
if [ $TERMUX_ARCH = "arm" ]; then
export AS=$TERMUX_HOST_PLATFORM-as
_CONFIGURE_TARGET="--target=armv7-android-gcc"
10 years ago
elif [ $TERMUX_ARCH = "i686" ]; then
export AS=yasm
_CONFIGURE_TARGET="--target=x86-android-gcc"
elif [ $TERMUX_ARCH = "aarch64" ]; then
_CONFIGURE_TARGET="--force-target=arm64-v8a-android-gcc"
elif [ $TERMUX_ARCH = "x86_64" ]; then
export AS=yasm
_CONFIGURE_TARGET="--target=x86_64-android-gcc"
10 years ago
else
termux_error_exit "Unsupported arch: $TERMUX_ARCH"
10 years ago
fi
# For --disable-realtime-only, see
# https://bugs.chromium.org/p/webm/issues/detail?id=800
# "The issue is that on android we soft enable realtime only.
# [..] You can enable non-realtime by setting --disable-realtime-only"
# Discovered in https://github.com/termux/termux-packages/issues/554
#CROSS=${TERMUX_HOST_PLATFORM}- CC=clang CXX=clang++ $TERMUX_PKG_SRCDIR/configure \
10 years ago
$TERMUX_PKG_SRCDIR/configure \
$_CONFIGURE_TARGET \
10 years ago
--prefix=$TERMUX_PREFIX \
--disable-examples \
--disable-realtime-only \
--disable-unit-tests \
--enable-pic \
--enable-vp8 \
10 years ago
--enable-shared \
--enable-small
}