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"
|
2023-05-29 12:10:36 +00:00
|
|
|
SCRIPT_COMMIT="4fd7be29a431441ca31b8db0155875ae2ff4ed47"
|
2022-11-06 00:21:33 +00:00
|
|
|
|
|
|
|
SCRIPT_REPO2="https://github.com/FFmpeg/nv-codec-headers.git"
|
2023-05-29 12:10:36 +00:00
|
|
|
SCRIPT_COMMIT2="2cd175b30366b6e295991ee0540e3e875cce6f2e"
|
2022-11-06 00:21:33 +00:00
|
|
|
SCRIPT_BRANCH2="sdk/11.1"
|
2020-09-03 17:32:54 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
2022-11-06 00:21:33 +00:00
|
|
|
if [[ $ADDINS_STR == *4.4* || $ADDINS_STR == *5.0* || $ADDINS_STR == *5.1* ]]; then
|
|
|
|
SCRIPT_COMMIT="$SCRIPT_COMMIT2"
|
|
|
|
fi
|
|
|
|
|
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
|
|
|
|
}
|