@@ -18,6 +18,7 @@ CONFIGURE_OPTIONS=()
18
18
NONFREE_AND_GPL=false
19
19
LATEST=false
20
20
MANPAGES=1
21
+ CURRENT_PACKAGE_VERSION=0
21
22
22
23
# Check for Apple Silicon
23
24
if [[ (" $( uname -m) " == " arm64" ) && (" $OSTYPE " == " darwin" * ) ]]; then
@@ -136,6 +137,7 @@ build() {
136
137
echo " "
137
138
echo " building $1 - version $2 "
138
139
echo " ======================="
140
+ CURRENT_PACKAGE_VERSION=$2
139
141
140
142
if [ -f " $PACKAGES /$1 .done" ]; then
141
143
if grep -Fx " $2 " " $PACKAGES /$1 .done" > /dev/null; then
@@ -393,8 +395,8 @@ if build "libtool" "2.4.7"; then
393
395
fi
394
396
395
397
if $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"
398
400
if $MACOS_M1 ; then
399
401
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
400
402
execute ./Configure --prefix=" ${WORKSPACE} " no-shared no-asm darwin64-arm64-cc
@@ -403,7 +405,7 @@ if $NONFREE_AND_GPL; then
403
405
fi
404
406
execute make -j $MJOBS
405
407
execute make install_sw
406
- build_done " openssl" " 1.1.1t "
408
+ build_done " openssl" $CURRENT_PACKAGE_VERSION
407
409
fi
408
410
CONFIGURE_OPTIONS+=(" --enable-openssl" )
409
411
else
@@ -435,12 +437,12 @@ else
435
437
fi
436
438
fi
437
439
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"
440
442
execute ./configure --prefix=" ${WORKSPACE} " --parallel=" ${MJOBS} " -- -DCMAKE_USE_OPENSSL=OFF
441
443
execute make -j $MJOBS
442
444
execute make install
443
- build_done " cmake" " 3.25.1 "
445
+ build_done " cmake" $CURRENT_PACKAGE_VERSION
444
446
fi
445
447
446
448
# #
@@ -483,20 +485,19 @@ if command_exists "python3"; then
483
485
fi
484
486
fi
485
487
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
499
498
fi
499
+ CONFIGURE_OPTIONS+=(" --enable-libsvtav1" )
500
+
500
501
501
502
if command_exists " cargo" ; then
502
503
if [[ ! " $SKIPRAV1E " == " yes" ]]; then
0 commit comments