3f300a10fc
Let build-package.sh setup the $PREFIX/lib/libstdc++.so symlink before building any package, to make sure that all C++ applications link against a fully featured C++ standard library. Avoid explicitly declaring a dependency on the libgnustl package since everyone may link against it at will and instead mark it as essential.
33 lines
952 B
Bash
33 lines
952 B
Bash
TERMUX_PKG_HOMEPAGE=http://www.webmproject.org/
|
|
TERMUX_PKG_DESCRIPTION="VP9 Codec SDK"
|
|
TERMUX_PKG_VERSION=1.6.0
|
|
TERMUX_PKG_SRCURL=https://github.com/webmproject/libvpx/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_FOLDERNAME=libvpx-${TERMUX_PKG_VERSION}
|
|
|
|
termux_step_configure () {
|
|
if [ $TERMUX_ARCH = "arm" ]; then
|
|
_CONFIGURE_TARGET="--target=armv7-android-gcc"
|
|
elif [ $TERMUX_ARCH = "i686" ]; then
|
|
export AS=yasm
|
|
export LD=$CC
|
|
_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
|
|
export LD=$CC
|
|
_CONFIGURE_TARGET="--target=x86_64-android-gcc"
|
|
else
|
|
echo "Unsupported arch: $TERMUX_ARCH"
|
|
exit 1
|
|
fi
|
|
$TERMUX_PKG_SRCDIR/configure \
|
|
--sdk-path=$NDK \
|
|
$_CONFIGURE_TARGET \
|
|
--prefix=$TERMUX_PREFIX \
|
|
--disable-examples \
|
|
--disable-vp8 \
|
|
--enable-shared \
|
|
--enable-small
|
|
}
|