|
@ -10,17 +10,18 @@ termux_step_configure () { |
|
|
# Force fresh install of header files: |
|
|
# Force fresh install of header files: |
|
|
rm -Rf $TERMUX_PREFIX/include/vpx |
|
|
rm -Rf $TERMUX_PREFIX/include/vpx |
|
|
|
|
|
|
|
|
|
|
|
export LD=$CC |
|
|
|
|
|
|
|
|
if [ $TERMUX_ARCH = "arm" ]; then |
|
|
if [ $TERMUX_ARCH = "arm" ]; then |
|
|
|
|
|
export AS=$TERMUX_HOST_PLATFORM-as |
|
|
_CONFIGURE_TARGET="--target=armv7-android-gcc" |
|
|
_CONFIGURE_TARGET="--target=armv7-android-gcc" |
|
|
elif [ $TERMUX_ARCH = "i686" ]; then |
|
|
elif [ $TERMUX_ARCH = "i686" ]; then |
|
|
export AS=yasm |
|
|
export AS=yasm |
|
|
export LD=$CC |
|
|
|
|
|
_CONFIGURE_TARGET="--target=x86-android-gcc" |
|
|
_CONFIGURE_TARGET="--target=x86-android-gcc" |
|
|
elif [ $TERMUX_ARCH = "aarch64" ]; then |
|
|
elif [ $TERMUX_ARCH = "aarch64" ]; then |
|
|
_CONFIGURE_TARGET="--force-target=arm64-v8a-android-gcc" |
|
|
_CONFIGURE_TARGET="--force-target=arm64-v8a-android-gcc" |
|
|
elif [ $TERMUX_ARCH = "x86_64" ]; then |
|
|
elif [ $TERMUX_ARCH = "x86_64" ]; then |
|
|
export AS=yasm |
|
|
export AS=yasm |
|
|
export LD=$CC |
|
|
|
|
|
_CONFIGURE_TARGET="--target=x86_64-android-gcc" |
|
|
_CONFIGURE_TARGET="--target=x86_64-android-gcc" |
|
|
else |
|
|
else |
|
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH" |
|
|
termux_error_exit "Unsupported arch: $TERMUX_ARCH" |
|
@ -31,12 +32,14 @@ termux_step_configure () { |
|
|
# "The issue is that on android we soft enable realtime only. |
|
|
# "The issue is that on android we soft enable realtime only. |
|
|
# [..] You can enable non-realtime by setting --disable-realtime-only" |
|
|
# [..] You can enable non-realtime by setting --disable-realtime-only" |
|
|
# Discovered in https://github.com/termux/termux-packages/issues/554 |
|
|
# Discovered in https://github.com/termux/termux-packages/issues/554 |
|
|
|
|
|
#CROSS=${TERMUX_HOST_PLATFORM}- CC=clang CXX=clang++ $TERMUX_PKG_SRCDIR/configure \ |
|
|
$TERMUX_PKG_SRCDIR/configure \ |
|
|
$TERMUX_PKG_SRCDIR/configure \ |
|
|
--sdk-path=$NDK \ |
|
|
|
|
|
$_CONFIGURE_TARGET \ |
|
|
$_CONFIGURE_TARGET \ |
|
|
--prefix=$TERMUX_PREFIX \ |
|
|
--prefix=$TERMUX_PREFIX \ |
|
|
--disable-examples \ |
|
|
--disable-examples \ |
|
|
--disable-realtime-only \ |
|
|
--disable-realtime-only \ |
|
|
|
|
|
--disable-unit-tests \ |
|
|
|
|
|
--enable-pic \ |
|
|
--enable-vp8 \ |
|
|
--enable-vp8 \ |
|
|
--enable-shared \ |
|
|
--enable-shared \ |
|
|
--enable-small |
|
|
--enable-small |
|
|