#!/bin/bash
# Produced, tested, and used by Andrew-R on an Android tablet
-export FFMPEG_EXTRA_CFG="--disable-debug --disable-doc --disable-ffprobe --enable-libdav1d"
-export EXTRA_LIBS="-ldav1d"
-./configure --without-lv2 --without-vdpau --without-vaapi --without-ladspa-build \
- --without-nv --with-single-user --with-clang --without-gl --disable-dav1d
+export FFMPEG_EXTRA_CFG="--disable-debug --target-os=android --enable-mediacodec --enable-jni --enable-opencl --disable-doc --disable-ffprobe --enable-libdav1d"
+export EXTRA_LIBS="-ldav1d -lOpenCL -landroid -landroid-posix-semaphore"
+./configure --with-lv2 --disable-lv2 --disable-sord --disable-serd --disable-suil --disable-sratom --disable-lilv --without-vdpau --without-vaapi --without-ladspa-build \
+ --without-nv --with-single-user --with-clang --without-gl --disable-dav1d
--- /dev/null
+--- libaom-v3.4.0/CMakeLists.txt.orig 2022-07-23 22:33:18.090606192 +0300
++++ libaom-v3.4.0/CMakeLists.txt 2022-07-23 22:41:42.114605831 +0300
+@@ -11,7 +11,7 @@
+ if(CONFIG_TFLITE)
+ cmake_minimum_required(VERSION 3.11)
+ else()
+- cmake_minimum_required(VERSION 3.9)
++ cmake_minimum_required(VERSION 3.5)
+ endif()
+
+ set(AOM_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")