Add avisynth
This commit is contained in:
parent
3454294519
commit
e50ce1c132
1 changed files with 36 additions and 0 deletions
36
scripts.d/50-avisynth.sh
Executable file
36
scripts.d/50-avisynth.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
AVISYNTH_REPO="https://github.com/AviSynth/AviSynthPlus.git"
|
||||
AVISYNTH_COMMIT="f44a7c66bfece896c0f0047a5656bb29e73ac67e"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerstage() {
|
||||
to_df "ADD $SELF /stage.sh"
|
||||
to_df "RUN run_stage"
|
||||
}
|
||||
|
||||
ffbuild_dockerbuild() {
|
||||
git clone "$AVISYNTH_REPO" avisynth || return -1
|
||||
cd avisynth
|
||||
git checkout "$AVISYNTH_COMMIT" || return -1
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue