2016-11-16 23:30:43 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.webmproject.org
|
2016-11-15 17:07:00 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="VP8 & VP9 Codec SDK"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-04-13 23:09:40 +02:00
|
|
|
TERMUX_PKG_VERSION=1.10.0
|
2015-11-17 21:42:18 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/webmproject/libvpx/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2021-04-13 23:09:40 +02:00
|
|
|
TERMUX_PKG_SHA256=85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a
|
2019-06-19 23:27:00 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libvpx-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libvpx-dev"
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_configure() {
|
2019-08-08 14:25:54 +02:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2016-11-16 23:30:43 +01:00
|
|
|
# Force fresh install of header files:
|
|
|
|
rm -Rf $TERMUX_PREFIX/include/vpx
|
|
|
|
|
2017-07-27 03:18:14 +02:00
|
|
|
export LD=$CC
|
|
|
|
|
2015-06-13 01:03:31 +02:00
|
|
|
if [ $TERMUX_ARCH = "arm" ]; then
|
2017-07-27 03:18:14 +02:00
|
|
|
export AS=$TERMUX_HOST_PLATFORM-as
|
2015-12-17 23:06:01 +01:00
|
|
|
_CONFIGURE_TARGET="--target=armv7-android-gcc"
|
2015-06-13 01:03:31 +02:00
|
|
|
elif [ $TERMUX_ARCH = "i686" ]; then
|
|
|
|
export AS=yasm
|
2015-12-17 23:06:01 +01:00
|
|
|
_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"
|
2015-06-13 01:03:31 +02:00
|
|
|
else
|
2017-01-22 23:06:48 +01:00
|
|
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH"
|
2015-06-13 01:03:31 +02:00
|
|
|
fi
|
2016-11-20 22:05:38 +01:00
|
|
|
|
|
|
|
# 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
|
2017-07-27 03:18:14 +02:00
|
|
|
#CROSS=${TERMUX_HOST_PLATFORM}- CC=clang CXX=clang++ $TERMUX_PKG_SRCDIR/configure \
|
2015-06-13 01:03:31 +02:00
|
|
|
$TERMUX_PKG_SRCDIR/configure \
|
2015-12-17 23:06:01 +01:00
|
|
|
$_CONFIGURE_TARGET \
|
2015-06-13 01:03:31 +02:00
|
|
|
--prefix=$TERMUX_PREFIX \
|
|
|
|
--disable-examples \
|
2016-11-20 22:05:38 +01:00
|
|
|
--disable-realtime-only \
|
2017-07-27 03:18:14 +02:00
|
|
|
--disable-unit-tests \
|
|
|
|
--enable-pic \
|
2016-11-15 17:07:00 +01:00
|
|
|
--enable-vp8 \
|
2015-06-13 01:03:31 +02:00
|
|
|
--enable-shared \
|
|
|
|
--enable-small
|
|
|
|
}
|