Migrate all libs (remove fdk-aac due to license issue and wavpack as no longer supported)

This commit is contained in:
Jerome Wu
2022-10-04 19:17:26 +08:00
parent 1fd52fd851
commit 03f14d866c
15 changed files with 358 additions and 7 deletions

22
build/harfbuzz.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -euo pipefail
CFLAGS="$CFLAGS -DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR"
# A hacky way to disable pthread
if [[ "$FFMPEG_ST" == "yes" ]]; then
sed -i 's#\[have_pthread=true\]#\[have_pthread=false\]#g' configure.ac
else
sed -i 's#\[have_pthread=false\]#\[have_pthread=true\]#g' configure.ac
fi
CXXFLAGS=$CFLAGS
CONF_FLAGS=(
--prefix=$INSTALL_DIR # install library in a build directory for FFmpeg to include
--host=i686-gnu # use i686 linux
--enable-shared=no # not to build shared library
--enable-static
)
emconfigure ./autogen.sh "${CONF_FLAGS[@]}"
emmake make install -j