12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/Netflix/vmaf.git"
- SCRIPT_COMMIT="e00fc5070a5a950e963da8c9b1a68bcfa7fac387"
- ffbuild_enabled() {
- return 0
- }
- ffbuild_dockerbuild() {
- # Kill build of unused and broken tools
- echo > libvmaf/tools/meson.build
- mkdir build && cd build
- local myconf=(
- --prefix="$FFBUILD_PREFIX"
- --buildtype=release
- --default-library=static
- -Dbuilt_in_models=true
- -Denable_tests=false
- -Denable_docs=false
- -Denable_avx512=true
- -Denable_float=true
- )
- if [[ $TARGET == win* || $TARGET == linux* ]]; then
- myconf+=(
- --cross-file=/cross.meson
- )
- else
- echo "Unknown target"
- return -1
- fi
- meson "${myconf[@]}" ../libvmaf || cat meson-logs/meson-log.txt
- ninja -j"$(nproc)"
- ninja install
- sed -i 's/Libs.private:/Libs.private: -lstdc++/; t; $ a Libs.private: -lstdc++' "$FFBUILD_PREFIX"/lib/pkgconfig/libvmaf.pc
- }
- ffbuild_configure() {
- [[ $ADDINS_STR == *4.4* ]] && return 0
- [[ $ADDINS_STR == *5.0* ]] && return 0
- echo --enable-libvmaf
- }
- ffbuild_unconfigure() {
- echo --disable-libvmaf
- }
|