mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
49 lines
929 B
Bash
Executable File
49 lines
929 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://gitlab.freedesktop.org/fontconfig/fontconfig.git"
|
|
SCRIPT_COMMIT="cfef47622357564d804b99dbde2993ee221fa4c2"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
./autogen.sh --noconf
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--disable-docs
|
|
--enable-libxml2
|
|
--enable-iconv
|
|
--disable-shared
|
|
--enable-static
|
|
)
|
|
|
|
if [[ $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--sysconfdir=/etc
|
|
--localstatedir=/var
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
)
|
|
elif [[ $TARGET == win* ]]; 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
|
|
}
|