37 lines
878 B
Bash
Executable file
37 lines
878 B
Bash
Executable file
#!/bin/bash
|
|
|
|
AOM_REPO="https://aomedia.googlesource.com/aom"
|
|
AOM_COMMIT="4ce7d13e1416a076c8b6cca53a081bd74fc00b54"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerstage() {
|
|
to_df "ADD $SELF /stage.sh"
|
|
to_df "RUN run_stage"
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$AOM_REPO" "$AOM_COMMIT" aom
|
|
cd aom
|
|
|
|
mkdir cmbuild && cd cmbuild
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DENABLE_EXAMPLES=NO -DENABLE_TESTS=NO -DENABLE_TOOLS=NO -DCONFIG_TUNE_VMAF=1 .. || return -1
|
|
make -j$(nproc) || return -1
|
|
make install || return -1
|
|
|
|
echo "Requires.private: libvmaf" >> "$FFBUILD_PREFIX/lib/pkgconfig/aom.pc"
|
|
|
|
cd ../..
|
|
rm -rf aom
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libaom
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libaom
|
|
}
|