FFmpeg-Builds/scripts.d/50-ffnvcodec.sh

32 lines
534 B
Bash
Raw Normal View History

2020-09-03 17:32:54 +00:00
#!/bin/bash
2022-07-12 15:54:12 +00:00
SCRIPT_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
2022-08-16 10:44:22 +00:00
SCRIPT_COMMIT="3ed7c9a0a2c0b698b83088e13008f3ec983219b2"
2020-09-03 17:32:54 +00:00
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
2022-07-12 15:54:12 +00:00
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" ffnvcodec
2021-04-04 21:20:31 +00:00
cd ffnvcodec
2020-09-03 17:32:54 +00:00
2021-04-04 21:20:31 +00:00
make PREFIX="$FFBUILD_PREFIX" install
2020-09-03 17:32:54 +00:00
}
ffbuild_configure() {
echo --enable-ffnvcodec --enable-cuda-llvm
}
ffbuild_unconfigure() {
echo --disable-ffnvcodec --disable-cuda-llvm
}
ffbuild_cflags() {
return 0
}
ffbuild_ldflags() {
return 0
}