2020-09-03 17:32:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-10-05 11:06:28 +00:00
|
|
|
FFNVCODEC_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
|
2021-08-22 21:54:38 +00:00
|
|
|
FFNVCODEC_COMMIT="b641a195edbe3ac9788e681e22c2e2fad8aacddb"
|
2020-09-03 17:32:54 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
2020-09-05 20:34:23 +00:00
|
|
|
git-mini-clone "$FFNVCODEC_REPO" "$FFNVCODEC_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
|
|
|
|
}
|