mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 14:14:35 +02:00
62 lines
1.2 KiB
Bash
Executable File
62 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/cisco/openh264.git"
|
|
SCRIPT_COMMIT="0c9a557a9a6f1d267c4d372221669a8ae69ccda0"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
local myconf=(
|
|
PREFIX="$FFBUILD_PREFIX"
|
|
INCLUDE_PREFIX="$FFBUILD_PREFIX"/include/wels
|
|
BUILDTYPE=Release
|
|
DEBUGSYMBOLS=False
|
|
LIBDIR_NAME=lib
|
|
CC="$CC"
|
|
CXX="$CXX"
|
|
AR="$AR"
|
|
)
|
|
|
|
if [[ $TARGET == win32 ]]; then
|
|
myconf+=(
|
|
OS=mingw_nt
|
|
ARCH=i686
|
|
)
|
|
elif [[ $TARGET == win64 ]]; then
|
|
myconf+=(
|
|
OS=mingw_nt
|
|
ARCH=x86_64
|
|
)
|
|
elif [[ $TARGET == winarm64 ]]; then
|
|
myconf+=(
|
|
OS=mingw_nt
|
|
ARCH=aarch64
|
|
)
|
|
elif [[ $TARGET == linux64 ]]; then
|
|
myconf+=(
|
|
OS=linux
|
|
ARCH=x86_64
|
|
)
|
|
elif [[ $TARGET == linuxarm64 ]]; then
|
|
myconf+=(
|
|
OS=linux
|
|
ARCH=aarch64
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
make -j$(nproc) "${myconf[@]}" install-static
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libopenh264
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libopenh264
|
|
}
|