@@ -399,7 +399,7 @@ if build "yasm" "1.3.0"; then
399
399
build_done " yasm" $CURRENT_PACKAGE_VERSION
400
400
fi
401
401
402
- if build " nasm" " 2.16.03 " ; then
402
+ if build " nasm" " 2.16.01 " ; then
403
403
download " https://www.nasm.us/pub/nasm/releasebuilds/$CURRENT_PACKAGE_VERSION /nasm-$CURRENT_PACKAGE_VERSION .tar.xz"
404
404
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
405
405
execute make -j $MJOBS
@@ -456,14 +456,9 @@ if $NONFREE_AND_GPL; then
456
456
build_done " gettext" $CURRENT_PACKAGE_VERSION
457
457
fi
458
458
459
- if build " openssl" " 1.1.1w" ; then
460
- download " https://www.openssl.org/source/openssl-$CURRENT_PACKAGE_VERSION .tar.gz"
461
- if $MACOS_SILICON ; then
462
- sed -n ' s/\(##### GNU Hurd\)/"darwin64-arm64-cc" => { \n inherit_from => [ "darwin-common", asm("aarch64_asm") ],\n CFLAGS => add("-Wall"),\n cflags => add("-arch arm64 "),\n lib_cppflags => add("-DL_ENDIAN"),\n bn_ops => "SIXTY_FOUR_BIT_LONG", \n perlasm_scheme => "macosx", \n}, \n\1/g' Configurations/10-main.conf
463
- execute ./Configure --prefix=" ${WORKSPACE} " no-shared no-asm darwin64-arm64-cc
464
- else
465
- execute ./config --prefix=" ${WORKSPACE} " --openssldir=" ${WORKSPACE} " --with-zlib-include=" ${WORKSPACE} " /include/ --with-zlib-lib=" ${WORKSPACE} " /lib no-shared zlib
466
- fi
459
+ if build " openssl" " 3.5.0" ; then
460
+ download " https://github.com/openssl/openssl/archive/refs/tags/openssl-$CURRENT_PACKAGE_VERSION .tar.gz" " openssl-$CURRENT_PACKAGE_VERSION .tar.gz"
461
+ execute ./Configure --prefix=" ${WORKSPACE} " --openssldir=" ${WORKSPACE} " --libdir=" lib" --with-zlib-include=" ${WORKSPACE} " /include/ --with-zlib-lib=" ${WORKSPACE} " /lib no-shared zlib
467
462
execute make -j $MJOBS
468
463
execute make install_sw
469
464
build_done " openssl" $CURRENT_PACKAGE_VERSION
515
510
516
511
if command_exists " python3" ; then
517
512
# dav1d needs meson and ninja along with nasm to be built
518
- if command_exists " pip3" ; then
519
513
520
514
# set variable meson and ninja installed to false
521
515
MESON_INSTALLED=false
522
516
523
- # check if macOs and brew is available
517
+ if command_exists " meson" ; then
518
+ if command_exists " ninja" ; then
519
+ MESON_INSTALLED=true
520
+ fi
521
+ fi
522
+
523
+ if ! $MESON_INSTALLED ; then
524
+ # check if macOS and brew is available
524
525
if [[ " $OSTYPE " == " darwin" * ]]; then
525
526
if command_exists " brew" ; then
526
527
brew install python-setuptools meson ninja
527
- MESON_INSTALLED=true
528
+ MESON_INSTALLED=true
528
529
fi
529
530
else
530
- # check if meson and ninja are installed MESON_INSTALLED AND system is not MacOS
531
- if ! $MESON_INSTALLED ; then
532
-
531
+ if command_exists " pip3 " ; then
532
+ echo " Try to install meson and ninja using pip3. "
533
+ echo " If you get an error (like externally-managed-environment), try to install meson using your system package manager "
533
534
# meson and ninja can be installed via pip3
534
535
execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
535
536
for r in meson ninja; do
@@ -538,9 +539,10 @@ if command_exists "python3"; then
538
539
fi
539
540
export PATH=$PATH :~ /Library/Python/3.9/bin
540
541
done
542
+ else
543
+ echo " Try to install meson using your system package manager to be able to compile ffmpeg with dav1d."
541
544
fi
542
545
fi
543
-
544
546
fi
545
547
if command_exists " meson" ; then
546
548
if build " dav1d" " 1.5.1" ; then
@@ -566,7 +568,7 @@ if command_exists "python3"; then
566
568
fi
567
569
fi
568
570
569
- if build " svtav1" " 2. 3.0" ; then
571
+ if build " svtav1" " 3.0.2 " ; then
570
572
# Last known working commit which passed CI Tests from HEAD branch
571
573
download " https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v$CURRENT_PACKAGE_VERSION /SVT-AV1-v$CURRENT_PACKAGE_VERSION .tar.gz" " svtav1-$CURRENT_PACKAGE_VERSION .tar.gz"
572
574
cd " ${PACKAGES} " /svtav1-$CURRENT_PACKAGE_VERSION //Build/linux || exit
@@ -581,7 +583,7 @@ CONFIGURE_OPTIONS+=("--enable-libsvtav1")
581
583
582
584
if command_exists " cargo" ; then
583
585
if [[ ! " $SKIPRAV1E " == " yes" ]]; then
584
- if build " rav1e" " 0.7.1 " ; then
586
+ if build " rav1e" " 0.8.0 " ; then
585
587
echo " if you get the message 'cannot be built because it requires rustc x.xx or newer, try to run 'rustup update'"
586
588
execute cargo install cargo-c
587
589
download " https://github.com/xiph/rav1e/archive/refs/tags/v$CURRENT_PACKAGE_VERSION .tar.gz"
595
597
596
598
if $NONFREE_AND_GPL ; then
597
599
598
- if build " x264" " ff620d0c " ; then
600
+ if build " x264" " b35605ac " ; then
599
601
download " https://code.videolan.org/videolan/x264/-/archive/$CURRENT_PACKAGE_VERSION /x264-$CURRENT_PACKAGE_VERSION .tar.gz" " x264-$CURRENT_PACKAGE_VERSION .tar.gz"
600
602
cd " ${PACKAGES} " /x264-$CURRENT_PACKAGE_VERSION || exit
601
603
658
660
CONFIGURE_OPTIONS+=(" --enable-libx265" )
659
661
fi
660
662
661
- if build " libvpx" " 1.15.0 " ; then
663
+ if build " libvpx" " 1.15.2 " ; then
662
664
download " https://github.com/webmproject/libvpx/archive/refs/tags/v$CURRENT_PACKAGE_VERSION .tar.gz" " libvpx-$CURRENT_PACKAGE_VERSION .tar.gz"
663
665
664
666
if [[ " $OSTYPE " == " darwin" * ]]; then
@@ -714,8 +716,8 @@ if $NONFREE_AND_GPL; then
714
716
CONFIGURE_OPTIONS+=(" --enable-libvidstab" )
715
717
fi
716
718
717
- if build " av1" " d6f30ae474dd6c358f26de0a0fc26a0d7340a84c " ; then
718
- # d6f30ae474dd6c358f26de0a0fc26a0d7340a84c == v3.11.0
719
+ if build " av1" " 10aece4157eb79315da205f39e19bf6ab3ee30d0 " ; then
720
+ # 10aece4157eb79315da205f39e19bf6ab3ee30d0 == v3.12.1
719
721
download " https://aomedia.googlesource.com/aom/+archive/$CURRENT_PACKAGE_VERSION .tar.gz" " av1.tar.gz" " av1"
720
722
make_dir " $PACKAGES " /aom_build
721
723
cd " $PACKAGES " /aom_build || exit
@@ -867,21 +869,9 @@ if build "libvorbis" "1.3.7"; then
867
869
fi
868
870
CONFIGURE_OPTIONS+=(" --enable-libvorbis" )
869
871
870
- if build " libtheora" " 1.1.1 " ; then
872
+ if build " libtheora" " 1.2.0 " ; then
871
873
download " https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-$CURRENT_PACKAGE_VERSION .tar.gz"
872
- sed " s/-fforce-addr//g" configure > configure.patched
873
- chmod +x configure.patched
874
- mv configure.patched configure
875
-
876
- if ! $MACOS_SILICON ; then
877
- # #BEGIN CONFIG.GUESS PATCH -- Updating config.guess file. Which allowed me to compile on aarch64 (ARMv8) [linux kernel 4.9 Ubuntu 20.04]
878
- rm config.guess
879
- curl -L --silent -o " config.guess" " https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess"
880
- chmod +x config.guess
881
- # #END OF CONFIG.GUESS PATCH
882
- fi
883
-
884
- execute ./configure --prefix=" ${WORKSPACE} " --with-ogg-libraries=" ${WORKSPACE} " /lib --with-ogg-includes=" ${WORKSPACE} " /include/ --with-vorbis-libraries=" ${WORKSPACE} " /lib --with-vorbis-includes=" ${WORKSPACE} " /include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
874
+ execute ./configure --prefix=" ${WORKSPACE} " --with-ogg-libraries=" ${WORKSPACE} " /lib --with-ogg-includes=" ${WORKSPACE} " /include/ --with-vorbis-libraries=" ${WORKSPACE} " /lib --with-vorbis-includes=" ${WORKSPACE} " /include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-spec
885
875
execute make -j $MJOBS
886
876
execute make install
887
877
@@ -957,7 +947,7 @@ CONFIGURE_OPTIONS+=("--enable-libwebp")
957
947
# # other library
958
948
# #
959
949
960
- if build " libsdl" " 2.30.1 " ; then
950
+ if build " libsdl" " 2.32.8 " ; then
961
951
download " https://github.com/libsdl-org/SDL/releases/download/release-$CURRENT_PACKAGE_VERSION /SDL2-$CURRENT_PACKAGE_VERSION .tar.gz"
962
952
execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
963
953
execute make -j $MJOBS
976
966
977
967
CONFIGURE_OPTIONS+=(" --enable-libfreetype" )
978
968
969
+ if build " VapourSynth" " 72" ; then
970
+ # VapourSynth library is loaded dynamically by ffmpeg if a VapourSynth script is opened
971
+ # no need to build it at compile team, only headers need to be installed
972
+ download " https://github.com/vapoursynth/vapoursynth/archive/R$CURRENT_PACKAGE_VERSION .tar.gz"
973
+ execute mkdir -p " ${WORKSPACE} /include/vapoursynth"
974
+ execute cp -r " include/." " ${WORKSPACE} /include/vapoursynth/"
975
+ build_done " VapourSynth" $CURRENT_PACKAGE_VERSION
976
+ fi
977
+
978
+ CONFIGURE_OPTIONS+=(" --enable-vapoursynth" )
979
+
979
980
if $NONFREE_AND_GPL ; then
980
981
if build " srt" " 1.5.4" ; then
981
982
download " https://github.com/Haivision/srt/archive/v$CURRENT_PACKAGE_VERSION .tar.gz" " srt-$CURRENT_PACKAGE_VERSION .tar.gz"
@@ -1064,7 +1065,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
1064
1065
fi
1065
1066
fi
1066
1067
1067
- if build " amf" " 1.4.35 " ; then
1068
+ if build " amf" " 1.4.36 " ; then
1068
1069
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 "
1069
1070
execute rm -rf " ${WORKSPACE} /include/AMF"
1070
1071
execute mkdir -p " ${WORKSPACE} /include/AMF"
@@ -1092,6 +1093,14 @@ fi
1092
1093
build " ffmpeg" " $FFMPEG_VERSION "
1093
1094
download " https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n$FFMPEG_VERSION .tar.gz" " FFmpeg-release-$FFMPEG_VERSION .tar.gz"
1094
1095
# shellcheck disable=SC2086
1096
+
1097
+ # this is a temporary fix to allow building ffmpeg 7.1.x with svtav1 >= 3.0.0
1098
+ # (API change in svtav1 3.0: one unused parameter removed)
1099
+ # the patch already in ffmpeg master branch was not backported to 7.1.x
1100
+ sed ' s/svt_av1_enc_init_handle(\&svt_enc->svt_handle, svt_enc, \&svt_enc->enc_params);/svt_av1_enc_init_handle(\&svt_enc->svt_handle, \&svt_enc->enc_params);/g' libavcodec/libsvtav1.c > libavcodec/libsvtav1.c.patched
1101
+ execute rm libavcodec/libsvtav1.c
1102
+ execute mv libavcodec/libsvtav1.c.patched libavcodec/libsvtav1.c
1103
+
1095
1104
execute ./configure " ${CONFIGURE_OPTIONS[@]} " \
1096
1105
--disable-debug \
1097
1106
--disable-shared \
0 commit comments