From fb8ff05990cf2d5bac4966394a7f6fcde9cf3d89 Mon Sep 17 00:00:00 2001 From: rhuts <35385944+rhuts@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:26:35 -0400 Subject: [PATCH] Use minimal AMF-headers tarball instead of downloading full repo Valid for AMF v1.4.33 and newer --- build-ffmpeg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-ffmpeg b/build-ffmpeg index 854c4f9..ef6536e 100755 --- a/build-ffmpeg +++ b/build-ffmpeg @@ -1010,10 +1010,10 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then fi if build "amf" "1.4.33"; then - download "https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v$CURRENT_PACKAGE_VERSION.tar.gz" "AMF-$CURRENT_PACKAGE_VERSION.tar.gz" "AMF-$CURRENT_PACKAGE_VERSION" + download "https://github.com/GPUOpen-LibrariesAndSDKs/AMF/releases/download/v$CURRENT_PACKAGE_VERSION/AMF-headers-v$CURRENT_PACKAGE_VERSION.tar.gz" "AMF-$CURRENT_PACKAGE_VERSION.tar.gz" "AMF-$CURRENT_PACKAGE_VERSION" execute rm -rf "${WORKSPACE}/include/AMF" execute mkdir -p "${WORKSPACE}/include/AMF" - execute cp -r "${PACKAGES}"/AMF-$CURRENT_PACKAGE_VERSION/AMF-$CURRENT_PACKAGE_VERSION/amf/public/include/* "${WORKSPACE}/include/AMF/" + execute cp -r "${PACKAGES}"/AMF-$CURRENT_PACKAGE_VERSION/AMF-$CURRENT_PACKAGE_VERSION/AMF/* "${WORKSPACE}/include/AMF/" build_done "amf" $CURRENT_PACKAGE_VERSION fi CONFIGURE_OPTIONS+=("--enable-amf")