366366# # build tools
367367# #
368368
369- if  build " giflib" " 5.2.1 " ;  then 
369+ if  build " giflib" " 5.2.2 " ;  then 
370370  download " https://netcologne.dl.sourceforge.net/project/giflib/giflib-$CURRENT_PACKAGE_VERSION .tar.gz" 
371-   if  [[ " $OSTYPE " ==  " darwin" *  ]];  then 
372-     download " https://sourceforge.net/p/giflib/bugs/_discuss/thread/4e811ad29b/c323/attachment/Makefile.patch" 
373-     execute patch -p0 --forward " ${PACKAGES} /giflib-$CURRENT_PACKAGE_VERSION /Makefile" " ${PACKAGES} /Makefile.patch" ||  true 
374-   fi 
375371  cd  " ${PACKAGES} " $CURRENT_PACKAGE_VERSION  ||  exit 
372+   # building docs fails if the tools needed are not installed
373+   # there is no option to not build the docs on Linux, we need to modify the Makefile
374+   sed ' s/$(MAKE) -C doc//g' > Makefile.patched
375+   rm Makefile
376+   sed ' s/install: all install-bin install-include install-lib install-man/install: all install-bin install-include install-lib/g' > Makefile
376377  # multicore build disabled for this library
377378  execute make
378379  execute make PREFIX=" ${WORKSPACE} " 
@@ -457,7 +458,7 @@ if $NONFREE_AND_GPL; then
457458    build_done " gettext" $CURRENT_PACKAGE_VERSION 
458459  fi 
459460
460-   if  build " openssl" " 3.5.0 " ;  then 
461+   if  build " openssl" " 3.5.2 " ;  then 
461462    download " https://github.com/openssl/openssl/archive/refs/tags/openssl-$CURRENT_PACKAGE_VERSION .tar.gz" " openssl-$CURRENT_PACKAGE_VERSION .tar.gz" 
462463    execute ./Configure --prefix=" ${WORKSPACE} " " ${WORKSPACE} " " lib" " ${WORKSPACE} " " ${WORKSPACE} " 
463464    execute make -j $MJOBS 
483484  fi 
484485
485486  if  [[ !  $ARCH  ==  ' arm64' ;  then 
486-     if  build " gnutls" " 3.8.5 " ;  then 
487+     if  build " gnutls" " 3.8.10 " ;  then 
487488      download " https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-$CURRENT_PACKAGE_VERSION .tar.xz" 
488489      execute ./configure --prefix=" ${WORKSPACE} " " ${CFLAGS} " " ${LDFLAGS} " 
489490      execute make -j $MJOBS 
@@ -569,7 +570,7 @@ if command_exists "python3"; then
569570  fi 
570571fi 
571572
572- if  build " svtav1" " 3.0 .2" ;  then 
573+ if  build " svtav1" " 3.1 .2" ;  then 
573574  #  Last known working commit which passed CI Tests from HEAD branch
574575  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" 
575576  cd  " ${PACKAGES} " $CURRENT_PACKAGE_VERSION //Build/linux ||  exit 
@@ -584,7 +585,7 @@ CONFIGURE_OPTIONS+=("--enable-libsvtav1")
584585
585586if  command_exists " cargo" ;  then 
586587  if  [[ !  " $SKIPRAV1E " ==  " yes" ;  then 
587-     if  build " rav1e" " 0.8.0 " ;  then 
588+     if  build " rav1e" " 0.8.1 " ;  then 
588589      echo  " if you get the message 'cannot be built because it requires rustc x.xx or newer, try to run 'rustup update'" 
589590      execute cargo install cargo-c
590591      download " https://github.com/xiph/rav1e/archive/refs/tags/v$CURRENT_PACKAGE_VERSION .tar.gz" 
@@ -717,8 +718,8 @@ if $NONFREE_AND_GPL; then
717718  CONFIGURE_OPTIONS+=(" --enable-libvidstab" 
718719fi 
719720
720- if  build " av1" " 10aece4157eb79315da205f39e19bf6ab3ee30d0 " ;  then 
721-   #   10aece4157eb79315da205f39e19bf6ab3ee30d0  == v3.12.1 
721+ if  build " av1" " d9c115ce0951324dee243041ef810e27202de20f " ;  then 
722+   #   d9c115ce0951324dee243041ef810e27202de20f  == v3.13.0 
722723  download " https://aomedia.googlesource.com/aom/+archive/$CURRENT_PACKAGE_VERSION .tar.gz" " av1.tar.gz" " av1" 
723724  make_dir " $PACKAGES " 
724725  cd  " $PACKAGES " ||  exit 
@@ -734,7 +735,7 @@ if build "av1" "10aece4157eb79315da205f39e19bf6ab3ee30d0"; then
734735fi 
735736CONFIGURE_OPTIONS+=(" --enable-libaom" 
736737
737- if  build " zimg" " 3.0.5 " ;  then 
738+ if  build " zimg" " 3.0.6 " ;  then 
738739  download " https://github.com/sekrit-twc/zimg/archive/refs/tags/release-$CURRENT_PACKAGE_VERSION .tar.gz" " zimg-$CURRENT_PACKAGE_VERSION .tar.gz" " zimg" 
739740  cd  zimg-release-$CURRENT_PACKAGE_VERSION  ||  exit 
740741  execute " ${WORKSPACE} /bin/libtoolize" 
@@ -798,14 +799,14 @@ if ! $DISABLE_LV2 ; then
798799      fi 
799800      if  build " sratom" " 0.6.16" ;  then 
800801        download " https://gitlab.com/lv2/sratom/-/archive/v$CURRENT_PACKAGE_VERSION /sratom-v$CURRENT_PACKAGE_VERSION .tar.gz" " sratom-v$CURRENT_PACKAGE_VERSION .tar.gz" 
801-         execute meson build --prefix=" ${WORKSPACE} " " ${WORKSPACE} " 
802+         execute meson build --prefix=" ${WORKSPACE} " Ddocs=disabled - -buildtype=release --default-library=static --libdir=" ${WORKSPACE} " 
802803        execute ninja -C build
803804        execute ninja -C build install
804805        build_done " sratom" $CURRENT_PACKAGE_VERSION 
805806      fi 
806807      if  build " lilv" " 0.24.16" ;  then 
807808        download " https://gitlab.com/lv2/lilv/-/archive/v$CURRENT_PACKAGE_VERSION /lilv-v$CURRENT_PACKAGE_VERSION .tar.gz" " lilv-v$CURRENT_PACKAGE_VERSION .tar.gz" 
808-         execute meson build --prefix=" ${WORKSPACE} " " ${WORKSPACE} " 
809+         execute meson build --prefix=" ${WORKSPACE} " Ddocs=disabled - -buildtype=release --default-library=static --libdir=" ${WORKSPACE} " 
809810        execute ninja -C build
810811        execute ninja -C build install
811812        build_done " lilv" $CURRENT_PACKAGE_VERSION 
@@ -848,7 +849,7 @@ if build "opus" "1.5.2"; then
848849fi 
849850CONFIGURE_OPTIONS+=(" --enable-libopus" 
850851
851- if  build " libogg" " 1.3.5 " ;  then 
852+ if  build " libogg" " 1.3.6 " ;  then 
852853  download " https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-$CURRENT_PACKAGE_VERSION .tar.xz" 
853854  execute ./configure --prefix=" ${WORKSPACE} " 
854855  execute make -j $MJOBS 
@@ -903,7 +904,7 @@ if build "libtiff" "4.7.0"; then
903904  execute make install
904905  build_done " libtiff" $CURRENT_PACKAGE_VERSION 
905906fi 
906- if  build " libpng" " 1.6.48 " ;  then 
907+ if  build " libpng" " 1.6.50 " ;  then 
907908  download " https://sourceforge.net/projects/libpng/files/libpng16/$CURRENT_PACKAGE_VERSION /libpng-$CURRENT_PACKAGE_VERSION .tar.gz" " libpng-$CURRENT_PACKAGE_VERSION .tar.gz" 
908909  export  LDFLAGS=" ${LDFLAGS} " 
909910  export  CPPFLAGS=" ${CFLAGS} " 
@@ -930,7 +931,7 @@ if build "libjxl" "0.11.1"; then
930931fi 
931932CONFIGURE_OPTIONS+=(" --enable-libjxl" 
932933
933- if  build " libwebp" " 1.5 .0" ;  then 
934+ if  build " libwebp" " 1.6 .0" ;  then 
934935  #  libwebp can fail to compile on Ubuntu if these flags were left set to CFLAGS
935936  CPPFLAGS=
936937  download " https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$CURRENT_PACKAGE_VERSION .tar.gz" " libwebp-$CURRENT_PACKAGE_VERSION .tar.gz" 
@@ -948,7 +949,7 @@ CONFIGURE_OPTIONS+=("--enable-libwebp")
948949# # other library
949950# #
950951
951- if  build " libsdl" " 2.32.8 " ;  then 
952+ if  build " libsdl" " 2.32.10 " ;  then 
952953  download " https://github.com/libsdl-org/SDL/releases/download/release-$CURRENT_PACKAGE_VERSION /SDL2-$CURRENT_PACKAGE_VERSION .tar.gz" 
953954  execute ./configure --prefix=" ${WORKSPACE} " 
954955  execute make -j $MJOBS 
@@ -1029,6 +1030,27 @@ fi
10291030# # HWaccel library
10301031# #
10311032
1033+ if  build " vulkan-headers" " 1.4.326" ;  then 
1034+   download " https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v$CURRENT_PACKAGE_VERSION .tar.gz" " Vulkan-Headers-$CURRENT_PACKAGE_VERSION .tar.gz" 
1035+   execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " 
1036+   execute cmake --install build --prefix " ${WORKSPACE} " 
1037+   build_done " vulkan-headers" $CURRENT_PACKAGE_VERSION 
1038+ fi 
1039+ CONFIGURE_OPTIONS+=(" --enable-vulkan" 
1040+ 
1041+ #  vulkan filters and some encoders/decorders are implemented using shaders, for those we need a shader compiler
1042+ if  command_exists " python3" ;  then 
1043+   if  build " glslang" " 15.4.0" ;  then 
1044+     download " https://github.com/KhronosGroup/glslang/archive/refs/tags/$CURRENT_PACKAGE_VERSION .tar.gz" " glslang-$CURRENT_PACKAGE_VERSION .tar.gz" 
1045+     execute ./update_glslang_sources.py
1046+     execute cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " . 
1047+     execute make -j $MJOBS 
1048+     execute make install
1049+     build_done " glslang" $CURRENT_PACKAGE_VERSION 
1050+   fi 
1051+   CONFIGURE_OPTIONS+=(" --enable-libglslang" 
1052+ fi 
1053+ 
10321054if  [[ " $OSTYPE " ==  " linux-gnu" ;  then 
10331055  if  command_exists " nvcc" ;  then 
10341056    if  build " nv-codec" " 11.1.5.3" ;  then 
@@ -1075,6 +1097,20 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
10751097    build_done " amf" $CURRENT_PACKAGE_VERSION 
10761098  fi 
10771099  CONFIGURE_OPTIONS+=(" --enable-amf" 
1100+ 
1101+   if  build " opencl-headers" " 2025.07.22" ;  then 
1102+     download " https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/v$CURRENT_PACKAGE_VERSION .tar.gz" " OpenCL-Headers-$CURRENT_PACKAGE_VERSION .tar.gz" 
1103+     execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " 
1104+     execute cmake --build build --target install
1105+     build_done " opencl-headers" $CURRENT_PACKAGE_VERSION 
1106+   fi 
1107+   if  build " opencl-icd-loader" " 2025.07.22" ;  then 
1108+     download " https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/refs/tags/v$CURRENT_PACKAGE_VERSION .tar.gz" " OpenCL-ICD-Loader-$CURRENT_PACKAGE_VERSION .tar.gz" 
1109+     execute cmake -DCMAKE_PREFIX_PATH=" ${WORKSPACE} " " ${WORKSPACE} " 
1110+     execute cmake --build build --target install
1111+     build_done " opencl-icd-loader" $CURRENT_PACKAGE_VERSION 
1112+   fi 
1113+   CONFIGURE_OPTIONS+=(" --enable-opencl" 
10781114fi 
10791115
10801116# #
@@ -1096,13 +1132,6 @@ build "ffmpeg" "$FFMPEG_VERSION"
10961132download " https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n$FFMPEG_VERSION .tar.gz" " FFmpeg-release-$FFMPEG_VERSION .tar.gz" 
10971133#  shellcheck disable=SC2086
10981134
1099- #  this is a temporary fix to allow building ffmpeg 7.1.x with svtav1 >= 3.0.0
1100- #   (API change in svtav1 3.0: one unused parameter removed)
1101- #  the patch already in ffmpeg master branch was not backported to 7.1.x
1102- 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.patched
1103- execute rm libavcodec/libsvtav1.c
1104- execute mv libavcodec/libsvtav1.c.patched libavcodec/libsvtav1.c
1105- 
11061135execute ./configure " ${CONFIGURE_OPTIONS[@]} " 
11071136  --disable-debug \
11081137  --disable-shared \
0 commit comments