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

34 lines
608 B
Bash
Raw Normal View History

2020-09-04 15:13:11 +00:00
#!/bin/bash
AMF_REPO="https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git"
AMF_COMMIT="802f92ee52b9efa77bf0d3ea8bfaed6040cdd35e"
ffbuild_enabled() {
return 0
}
ffbuild_dockerstage() {
2020-09-05 14:38:11 +00:00
to_df "ADD $SELF /stage.sh"
to_df "RUN run_stage"
2020-09-04 15:13:11 +00:00
}
ffbuild_dockerbuild() {
git clone "$AMF_REPO" amf || return -1
cd amf
git checkout "$AMF_COMMIT" || return -1
mkdir -p "$FFBUILD_PREFIX"/include
mv amf/public/include "$FFBUILD_PREFIX"/include/AMF || return -1
cd ..
rm -rf amf
}
ffbuild_configure() {
echo --enable-amf
}
ffbuild_unconfigure() {
echo --disable-amf
}