Skip to content

Commit 6901f9d

Browse files
committed
Fix #78 M1 Build
1 parent 6fd0116 commit 6901f9d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

build-ffmpeg

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,19 @@ if build "cmake"; then
395395
build_done "cmake"
396396
fi
397397

398-
if build "svtav1"; then
399-
download "https://github.com/AOMediaCodec/SVT-AV1/archive/v0.8.6.tar.gz"
400-
cd Build/linux || exit
401-
execute cmake -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
402-
execute make -j $MJOBS
403-
execute make install
404-
execute cp SvtAv1Enc.pc "${WORKSPACE}/lib/pkgconfig/"
405-
execute cp SvtAv1Dec.pc "${WORKSPACE}/lib/pkgconfig/"
406-
build_done "svtav1"
398+
if ! $MACOS_M1; then
399+
if build "svtav1"; then
400+
download "https://github.com/AOMediaCodec/SVT-AV1/archive/v0.8.6.tar.gz"
401+
cd Build/linux || exit
402+
execute cmake -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
403+
execute make -j $MJOBS
404+
execute make install
405+
execute cp SvtAv1Enc.pc "${WORKSPACE}/lib/pkgconfig/"
406+
execute cp SvtAv1Dec.pc "${WORKSPACE}/lib/pkgconfig/"
407+
build_done "svtav1"
408+
fi
409+
CONFIGURE_OPTIONS+=("--enable-libsvtav1")
407410
fi
408-
CONFIGURE_OPTIONS+=("--enable-libsvtav1")
409411

410412
##
411413
## video library

0 commit comments

Comments
 (0)