36 lines
797 B
Bash
Executable file
36 lines
797 B
Bash
Executable file
#!/bin/bash
|
|
|
|
AVISYNTH_REPO="https://github.com/AviSynth/AviSynthPlus.git"
|
|
AVISYNTH_COMMIT="927e7a3fdd4428c44c58df216df5bdffc095f8b0"
|
|
|
|
ffbuild_enabled() {
|
|
[[ $VARIANT == gpl* ]] || return -1
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerstage() {
|
|
to_df "ADD $SELF /stage.sh"
|
|
to_df "RUN run_stage"
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$AVISYNTH_REPO" "$AVISYNTH_COMMIT" avisynth
|
|
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
|
|
}
|