Browse Source

libvpx: Support 64-bit builds

android-5
Fredrik Fornwall 9 years ago
parent
commit
dd15f7cf28
  1. 12
      packages/libvpx/build.sh

12
packages/libvpx/build.sh

@ -6,18 +6,24 @@ TERMUX_PKG_FOLDERNAME=libvpx-${TERMUX_PKG_VERSION}
termux_step_configure () {
if [ $TERMUX_ARCH = "arm" ]; then
_CONFIGURE_TARGET=armv7-android-gcc
_CONFIGURE_TARGET="--target=armv7-android-gcc"
elif [ $TERMUX_ARCH = "i686" ]; then
export AS=yasm
export LD=$CC
_CONFIGURE_TARGET=x86-android-gcc
_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 \
--target=$_CONFIGURE_TARGET \
$_CONFIGURE_TARGET \
--prefix=$TERMUX_PREFIX \
--disable-examples \
--disable-vp8 \

Loading…
Cancel
Save