2020-09-04 15:13:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
AMF_REPO="https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git"
|
2020-12-22 21:34:59 +00:00
|
|
|
AMF_COMMIT="2366f74d0038e575828daab501632984de9295e6"
|
2020-09-04 15:13:11 +00:00
|
|
|
|
|
|
|
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() {
|
2020-09-05 20:34:23 +00:00
|
|
|
git-mini-clone "$AMF_REPO" "$AMF_COMMIT" amf
|
2020-09-04 15:13:11 +00:00
|
|
|
cd amf
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|