FFmpeg-Builds/scripts.d/35-fontconfig.sh
2021-07-12 16:50:56 +02:00

47 lines
847 B
Bash
Executable file

#!/bin/bash
FONTCONFIG_SRC="https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.94.tar.xz"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
mkdir fc
cd fc
wget "$FONTCONFIG_SRC" -O fc.tar.gz
tar xaf fc.tar.gz
rm fc.tar.gz
cd fontconfig*
local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-docs
--enable-libxml2
--enable-iconv
--disable-shared
--enable-static
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {
echo --enable-fontconfig
}
ffbuild_unconfigure() {
echo --disable-fontconfig
}