2020-09-05 14:59:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
AVISYNTH_REPO="https://github.com/AviSynth/AviSynthPlus.git"
|
2021-02-19 16:08:32 +00:00
|
|
|
AVISYNTH_COMMIT="ae2e995f3abc4fe88b30c666498086d7f20d7659"
|
2020-09-05 14:59:09 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
2020-09-05 15:06:07 +00:00
|
|
|
[[ $VARIANT == gpl* ]] || return -1
|
2020-09-05 14:59:09 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerstage() {
|
|
|
|
to_df "ADD $SELF /stage.sh"
|
|
|
|
to_df "RUN run_stage"
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
2020-09-05 20:34:23 +00:00
|
|
|
git-mini-clone "$AVISYNTH_REPO" "$AVISYNTH_COMMIT" avisynth
|
2020-09-05 14:59:09 +00:00
|
|
|
cd avisynth
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DHEADERS_ONLY=ON .. || return -1
|
|
|
|
make -j$(nproc) || return -1
|
|
|
|
make install || return -1
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
rm -rf avisynth
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-avisynth
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-avisynth
|
|
|
|
}
|