36 lines
631 B
Bash
Executable file
36 lines
631 B
Bash
Executable file
#!/bin/bash
|
|
|
|
FFNVCODEC_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
|
|
FFNVCODEC_COMMIT="315ad740ac77282c7cea67ba31f2e4b373132919"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerstage() {
|
|
to_df "ADD $SELF /stage.sh"
|
|
to_df "RUN run_stage"
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$FFNVCODEC_REPO" "$FFNVCODEC_COMMIT" ffnvcodec
|
|
cd ffnvcodec
|
|
|
|
make PREFIX="$FFBUILD_PREFIX" install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-ffnvcodec --enable-cuda-llvm
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-ffnvcodec --disable-cuda-llvm
|
|
}
|
|
|
|
ffbuild_cflags() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_ldflags() {
|
|
return 0
|
|
}
|