From af75e8695aed5f5b5cd12d1d1eb3db7caea50c55 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Mon, 1 Mar 2021 00:22:59 +0000 Subject: [PATCH] fix the detection of macos system libraries --- scripts/apple/ffmpeg.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/apple/ffmpeg.sh b/scripts/apple/ffmpeg.sh index d93a06d..5bfa2c0 100755 --- a/scripts/apple/ffmpeg.sh +++ b/scripts/apple/ffmpeg.sh @@ -102,7 +102,7 @@ esac CONFIGURE_POSTFIX="" # SET CONFIGURE OPTIONS -for library in {1..58}; do +for library in {1..59}; do if [[ ${!library} -eq 1 ]]; then ENABLED_LIBRARY=$(get_library_name $((library - 1))) @@ -319,7 +319,7 @@ for library in {1..58}; do CONFIGURE_POSTFIX+=" --enable-bzlib" ;; *-coreimage) - CONFIGURE_POSTFIX+=" --enable-coreimage" + CONFIGURE_POSTFIX+=" --enable-coreimage --enable-appkit" ;; *-libiconv) CONFIGURE_POSTFIX+=" --enable-iconv" @@ -352,7 +352,7 @@ for library in {1..58}; do elif [[ ${library} -eq $((LIBRARY_APPLE_BZIP2 + 1)) ]]; then CONFIGURE_POSTFIX+=" --disable-bzlib" elif [[ ${library} -eq $((LIBRARY_APPLE_COREIMAGE + 1)) ]]; then - CONFIGURE_POSTFIX+=" --disable-coreimage" + CONFIGURE_POSTFIX+=" --disable-coreimage --disable-appkit" elif [[ ${library} -eq $((LIBRARY_APPLE_LIBICONV + 1)) ]]; then CONFIGURE_POSTFIX+=" --disable-iconv" elif [[ ${library} -eq $((LIBRARY_APPLE_OPENCL + 1)) ]]; then @@ -496,7 +496,6 @@ ${SED_INLINE} "s/\$version/$FFMPEG_VERSION/g" "${BASEDIR}"/src/"${LIB_NAME}"/ffb --disable-nvenc \ --disable-vaapi \ --disable-vdpau \ - --disable-appkit \ --disable-alsa \ --disable-cuda \ --disable-cuvid \