@@ -18,6 +18,7 @@ CONFIGURE_OPTIONS=()
1818NONFREE_AND_GPL=false
1919LATEST=false
2020MANPAGES=1
21+ CURRENT_PACKAGE_VERSION=0
2122
2223# Check for Apple Silicon
2324if [[ (" $( uname -m) " == " arm64" ) && (" $OSTYPE " == " darwin" * ) ]]; then
@@ -136,6 +137,7 @@ build() {
136137 echo " "
137138 echo " building $1 - version $2 "
138139 echo " ======================="
140+ CURRENT_PACKAGE_VERSION=$2
139141
140142 if [ -f " $PACKAGES /$1 .done" ]; then
141143 if grep -Fx " $2 " " $PACKAGES /$1 .done" > /dev/null; then
@@ -393,8 +395,8 @@ if build "libtool" "2.4.7"; then
393395fi
394396
395397if $NONFREE_AND_GPL ; then
396- if build " openssl" " 1.1.1t " ; then
397- download " https://www.openssl.org/source/openssl-1.1.1t .tar.gz"
398+ if build " openssl" " 1.1.1u " ; then
399+ download " https://www.openssl.org/source/openssl-$CURRENT_PACKAGE_VERSION .tar.gz"
398400 if $MACOS_M1 ; then
399401 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
400402 execute ./Configure --prefix=" ${WORKSPACE} " no-shared no-asm darwin64-arm64-cc
@@ -403,7 +405,7 @@ if $NONFREE_AND_GPL; then
403405 fi
404406 execute make -j $MJOBS
405407 execute make install_sw
406- build_done " openssl" " 1.1.1t "
408+ build_done " openssl" $CURRENT_PACKAGE_VERSION
407409 fi
408410 CONFIGURE_OPTIONS+=(" --enable-openssl" )
409411else
@@ -435,12 +437,12 @@ else
435437 fi
436438fi
437439
438- if build " cmake" " 3.25.1 " ; then
439- download " https://github.com/Kitware/CMake/releases/download/v3.25.1 /cmake-3.25.1 .tar.gz"
440+ if build " cmake" " 3.26.4 " ; then
441+ download " https://github.com/Kitware/CMake/releases/download/v $CURRENT_PACKAGE_VERSION /cmake-$CURRENT_PACKAGE_VERSION .tar.gz"
440442 execute ./configure --prefix=" ${WORKSPACE} " --parallel=" ${MJOBS} " -- -DCMAKE_USE_OPENSSL=OFF
441443 execute make -j $MJOBS
442444 execute make install
443- build_done " cmake" " 3.25.1 "
445+ build_done " cmake" $CURRENT_PACKAGE_VERSION
444446fi
445447
446448# #
@@ -483,20 +485,19 @@ if command_exists "python3"; then
483485 fi
484486fi
485487
486- if ! $MACOS_M1 ; then
487- if build " svtav1" " 1.4.1" ; then
488- # Last known working commit which passed CI Tests from HEAD branch
489- download " https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v1.4.1/SVT-AV1-v1.4.1.tar.gz" " svtav1-1.4.1.tar.gz"
490- cd " ${PACKAGES} " /svtav1-1.4.1//Build/linux || exit
491- execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -G" Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
492- execute make -j $MJOBS
493- execute make install
494- execute cp SvtAv1Enc.pc " ${WORKSPACE} /lib/pkgconfig/"
495- execute cp SvtAv1Dec.pc " ${WORKSPACE} /lib/pkgconfig/"
496- build_done " svtav1" " 1.4.1"
497- fi
498- CONFIGURE_OPTIONS+=(" --enable-libsvtav1" )
488+ if build " svtav1" " 1.6.0" ; then
489+ # Last known working commit which passed CI Tests from HEAD branch
490+ 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"
491+ cd " ${PACKAGES} " /svtav1-$CURRENT_PACKAGE_VERSION //Build/linux || exit
492+ execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -G" Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
493+ execute make -j $MJOBS
494+ execute make install
495+ execute cp SvtAv1Enc.pc " ${WORKSPACE} /lib/pkgconfig/"
496+ execute cp SvtAv1Dec.pc " ${WORKSPACE} /lib/pkgconfig/"
497+ build_done " svtav1" $CURRENT_PACKAGE_VERSION
499498fi
499+ CONFIGURE_OPTIONS+=(" --enable-libsvtav1" )
500+
500501
501502if command_exists " cargo" ; then
502503 if [[ ! " $SKIPRAV1E " == " yes" ]]; then
0 commit comments