@@ -382,19 +382,19 @@ if build "zlib"; then
382
382
fi
383
383
384
384
if $NONFREE_AND_GPL ; then
385
- if build " openssl" ; then
386
- download " https://www.openssl.org/source/openssl-1.1.1k.tar.gz"
387
- if $MACOS_M1 ; then
388
- 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
389
- execute ./configure --prefix=" ${WORKSPACE} " no-shared no-asm darwin64-arm64-cc
390
- else
391
- execute ./config --prefix=" ${WORKSPACE} " --openssldir=" ${WORKSPACE} " --with-zlib-include=" ${WORKSPACE} " /include/ --with-zlib-lib=" ${WORKSPACE} " /lib no-shared zlib
385
+ if build " openssl" ; then
386
+ download " https://www.openssl.org/source/openssl-1.1.1k.tar.gz"
387
+ if $MACOS_M1 ; then
388
+ 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
389
+ execute ./configure --prefix=" ${WORKSPACE} " no-shared no-asm darwin64-arm64-cc
390
+ else
391
+ execute ./config --prefix=" ${WORKSPACE} " --openssldir=" ${WORKSPACE} " --with-zlib-include=" ${WORKSPACE} " /include/ --with-zlib-lib=" ${WORKSPACE} " /lib no-shared zlib
392
+ fi
393
+ execute make -j $MJOBS
394
+ execute make install_sw
395
+ build_done " openssl"
392
396
fi
393
- execute make -j $MJOBS
394
- execute make install_sw
395
- build_done " openssl"
396
- fi
397
- CONFIGURE_OPTIONS+=(" --enable-openssl" )
397
+ CONFIGURE_OPTIONS+=(" --enable-openssl" )
398
398
fi
399
399
400
400
if build " cmake" ; then
407
407
408
408
if ! $MACOS_M1 ; then
409
409
if build " svtav1" ; then
410
- download " https://github .com/AOMediaCodec/SVT-AV1/archive/v0.8.6 .tar.gz"
410
+ download " https://gitlab .com/AOMediaCodec/SVT-AV1/-/ archive/master/SVT-AV1-master .tar.gz"
411
411
cd Build/linux || exit
412
412
execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -G" Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
413
413
execute make -j $MJOBS
@@ -420,41 +420,42 @@ if ! $MACOS_M1; then
420
420
fi
421
421
422
422
if $NONFREE_AND_GPL ; then
423
- if build " x264" ; then
424
- download " https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable.tar.gz" " x264-stable.tar.gz"
425
- cd " ${PACKAGES} " /x264-stable || exit
426
423
427
- if [[ " $OSTYPE " == " linux-gnu" ]]; then
428
- execute ./configure --prefix=" ${WORKSPACE} " --enable-static --enable-pic CXXFLAGS=" -fPIC"
429
- else
430
- execute ./configure --prefix=" ${WORKSPACE} " --enable-static --enable-pic
431
- fi
424
+ if build " x264" ; then
425
+ download " https://code.videolan.org/videolan/x264/-/archive/b684ebe04a6f80f8207a57940a1fa00e25274f81/x264-b684ebe04a6f80f8207a57940a1fa00e25274f81.tar.gz" " x264-b684eb.tar.gz"
426
+ cd " ${PACKAGES} " /x264-b684eb || exit
432
427
433
- execute make -j $MJOBS
434
- execute make install
435
- execute make install-lib-static
428
+ if [[ " $OSTYPE " == " linux-gnu" ]]; then
429
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-static --enable-pic CXXFLAGS=" -fPIC"
430
+ else
431
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-static --enable-pic
432
+ fi
436
433
437
- build_done " x264"
438
- fi
439
- CONFIGURE_OPTIONS+=(" --enable-libx264" )
434
+ execute make -j $MJOBS
435
+ execute make install
436
+ execute make install-lib-static
437
+
438
+ build_done " x264"
439
+ fi
440
+ CONFIGURE_OPTIONS+=(" --enable-libx264" )
440
441
fi
441
442
442
443
if $NONFREE_AND_GPL ; then
443
- if build " x265" ; then
444
- download " https://github.com/videolan/x265/archive/Release_3.5.tar.gz" " x265-3.5.tar.gz"
445
- cd build/linux || exit
444
+ if build " x265" ; then
445
+ download " https://github.com/videolan/x265/archive/Release_3.5.tar.gz" " x265-3.5.tar.gz"
446
+ cd build/linux || exit
446
447
447
- execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../../source
448
- execute make -j $MJOBS
449
- execute make install
448
+ execute cmake -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../../source
449
+ execute make -j $MJOBS
450
+ execute make install
450
451
451
- if [ -n " $LDEXEFLAGS " ]; then
452
- sed -i.backup ' s/-lgcc_s/-lgcc_eh/g' " ${WORKSPACE} /lib/pkgconfig/x265.pc" # The -i.backup is intended and required on MacOS: https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux
453
- fi
452
+ if [ -n " $LDEXEFLAGS " ]; then
453
+ sed -i.backup ' s/-lgcc_s/-lgcc_eh/g' " ${WORKSPACE} /lib/pkgconfig/x265.pc" # The -i.backup is intended and required on MacOS: https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux
454
+ fi
454
455
455
- build_done " x265"
456
- fi
457
- CONFIGURE_OPTIONS+=(" --enable-libx265" )
456
+ build_done " x265"
457
+ fi
458
+ CONFIGURE_OPTIONS+=(" --enable-libx265" )
458
459
fi
459
460
460
461
if build " libvpx" ; then
@@ -466,7 +467,7 @@ if build "libvpx"; then
466
467
sed " s/-Wl,--no-undefined -Wl,-soname/-Wl,-undefined,error -Wl,-install_name/g" build/make/Makefile.patched > build/make/Makefile
467
468
fi
468
469
469
- execute ./configure --prefix=" ${WORKSPACE} " --disable-unit-tests --disable-shared --as=yasm
470
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-unit-tests --disable-shared --as=yasm --enable-vp9-highbitdepth
470
471
execute make -j $MJOBS
471
472
execute make install
472
473
475
476
CONFIGURE_OPTIONS+=(" --enable-libvpx" )
476
477
477
478
if $NONFREE_AND_GPL ; then
478
- if build " xvidcore" ; then
479
- download " https://downloads.xvid.com/downloads/xvidcore-1.3.7.tar.gz"
480
- cd build/generic || exit
481
- execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
482
- execute make -j $MJOBS
483
- execute make install
479
+ if build " xvidcore" ; then
480
+ download " https://downloads.xvid.com/downloads/xvidcore-1.3.7.tar.gz"
481
+ cd build/generic || exit
482
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
483
+ execute make -j $MJOBS
484
+ execute make install
484
485
485
- if [[ -f ${WORKSPACE} /lib/libxvidcore.4.dylib ]]; then
486
- execute rm " ${WORKSPACE} /lib/libxvidcore.4.dylib"
487
- fi
486
+ if [[ -f ${WORKSPACE} /lib/libxvidcore.4.dylib ]]; then
487
+ execute rm " ${WORKSPACE} /lib/libxvidcore.4.dylib"
488
+ fi
488
489
489
- if [[ -f ${WORKSPACE} /lib/libxvidcore.so ]]; then
490
- execute rm " ${WORKSPACE} " /lib/libxvidcore.so*
491
- fi
490
+ if [[ -f ${WORKSPACE} /lib/libxvidcore.so ]]; then
491
+ execute rm " ${WORKSPACE} " /lib/libxvidcore.so*
492
+ fi
492
493
493
- build_done " xvidcore"
494
- fi
495
- CONFIGURE_OPTIONS+=(" --enable-libxvid" )
494
+ build_done " xvidcore"
495
+ fi
496
+ CONFIGURE_OPTIONS+=(" --enable-libxvid" )
496
497
fi
497
498
498
499
if $NONFREE_AND_GPL ; then
499
- if build " vid_stab" ; then
500
- download " https://github.com/georgmartius/vid.stab/archive/v1.1.0.tar.gz" " vid.stab-1.1.0.tar.gz"
500
+ if build " vid_stab" ; then
501
+ download " https://github.com/georgmartius/vid.stab/archive/v1.1.0.tar.gz" " vid.stab-1.1.0.tar.gz"
501
502
502
- if $MACOS_M1 ; then
503
- curl -s -o " $PACKAGES /vid.stab-1.1.0/fix_cmake_quoting.patch" https://raw.githubusercontent.com/Homebrew/formula-patches/5bf1a0e0cfe666ee410305cece9c9c755641bfdf/libvidstab/fix_cmake_quoting.patch
504
- patch -p1 < fix_cmake_quoting.patch
505
- fi
503
+ if $MACOS_M1 ; then
504
+ curl -s -o " $PACKAGES /vid.stab-1.1.0/fix_cmake_quoting.patch" https://raw.githubusercontent.com/Homebrew/formula-patches/5bf1a0e0cfe666ee410305cece9c9c755641bfdf/libvidstab/fix_cmake_quoting.patch
505
+ patch -p1 < fix_cmake_quoting.patch
506
+ fi
506
507
507
- execute cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DUSE_OMP=OFF -DENABLE_SHARED=off .
508
- execute make
509
- execute make install
508
+ execute cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DUSE_OMP=OFF -DENABLE_SHARED=off .
509
+ execute make
510
+ execute make install
510
511
511
- build_done " vid_stab"
512
- fi
513
- CONFIGURE_OPTIONS+=(" --enable-libvidstab" )
512
+ build_done " vid_stab"
513
+ fi
514
+ CONFIGURE_OPTIONS+=(" --enable-libvidstab" )
514
515
fi
515
516
516
517
if build " av1" ; then
@@ -529,6 +530,25 @@ if build "av1"; then
529
530
fi
530
531
CONFIGURE_OPTIONS+=(" --enable-libaom" )
531
532
533
+ if build " dav1d" ; then
534
+ download " https://code.videolan.org/videolan/dav1d/-/archive/0.8.2/dav1d-0.8.2.tar.gz" " dav1d-0.8.2.tar.gz"
535
+ make_dir " $PACKAGES " /dav1d/build
536
+ cd " $PACKAGES " /dav1d/build || exit
537
+ execute meson .. --default-library=static -Dprefix=" ${WORKSPACE} "
538
+ execute ninja
539
+ execute ninja install
540
+ mv ${WORKSPACE} /lib/x86_64-linux-gnu/pkgconfig/dav1d.pc ${WORKSPACE} /lib/pkgconfig/dav1d.pc
541
+ build_done " dav1d"
542
+ fi
543
+ CONFIGURE_OPTIONS+=(" --enable-libdav1d" )
544
+
545
+ if build " rav1e" ; then
546
+ download " https://github.com/xiph/rav1e/archive/master.tar.gz" " rav1e.tar.gz"
547
+ execute cargo cinstall --release --prefix=" ${WORKSPACE} " --library-type staticlib
548
+ build_done " rav1e"
549
+ fi
550
+ CONFIGURE_OPTIONS+=(" --enable-librav1e" )
551
+
532
552
# #
533
553
# # audio library
534
554
# #
595
615
CONFIGURE_OPTIONS+=(" --enable-libtheora" )
596
616
597
617
if $NONFREE_AND_GPL ; then
598
- if build " fdk_aac" ; then
599
- download " https://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-2.0.2.tar.gz/download?use_mirror=gigenet" " fdk-aac-2.0.2.tar.gz"
600
- execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static --enable-pic
601
- execute make -j $MJOBS
602
- execute make install
618
+ if build " fdk_aac" ; then
619
+ download " https://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-2.0.2.tar.gz/download?use_mirror=gigenet" " fdk-aac-2.0.2.tar.gz"
620
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static --enable-pic
621
+ execute make -j $MJOBS
622
+ execute make install
603
623
604
- build_done " fdk_aac"
605
- fi
606
- CONFIGURE_OPTIONS+=(" --enable-libfdk-aac" )
624
+ build_done " fdk_aac"
625
+ fi
626
+ CONFIGURE_OPTIONS+=(" --enable-libfdk-aac" )
607
627
fi
608
628
609
629
# #
@@ -636,21 +656,21 @@ if build "libsdl"; then
636
656
fi
637
657
638
658
if $NONFREE_AND_GPL ; then
639
- if build " srt" ; then
640
- download " https://github.com/Haivision/srt/archive/v1.4.3.tar.gz" " srt-1.4.3.tar.gz"
641
- export OPENSSL_ROOT_DIR=" ${WORKSPACE} "
642
- export OPENSSL_LIB_DIR=" ${WORKSPACE} " /lib
643
- export OPENSSL_INCLUDE_DIR=" ${WORKSPACE} " /include/
644
- execute cmake . -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
645
- execute make install
659
+ if build " srt" ; then
660
+ download " https://github.com/Haivision/srt/archive/v1.4.3.tar.gz" " srt-1.4.3.tar.gz"
661
+ export OPENSSL_ROOT_DIR=" ${WORKSPACE} "
662
+ export OPENSSL_LIB_DIR=" ${WORKSPACE} " /lib
663
+ export OPENSSL_INCLUDE_DIR=" ${WORKSPACE} " /include/
664
+ execute cmake . -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
665
+ execute make install
646
666
647
- if [ -n " $LDEXEFLAGS " ]; then
648
- sed -i.backup ' s/-lgcc_s/-lgcc_eh/g' " ${WORKSPACE} " /lib/pkgconfig/srt.pc # The -i.backup is intended and required on MacOS: https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux
649
- fi
667
+ if [ -n " $LDEXEFLAGS " ]; then
668
+ sed -i.backup ' s/-lgcc_s/-lgcc_eh/g' " ${WORKSPACE} " /lib/pkgconfig/srt.pc # The -i.backup is intended and required on MacOS: https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux
669
+ fi
650
670
651
- build_done " srt"
652
- fi
653
- CONFIGURE_OPTIONS+=(" --enable-libsrt" )
671
+ build_done " srt"
672
+ fi
673
+ CONFIGURE_OPTIONS+=(" --enable-libsrt" )
654
674
fi
655
675
656
676
# #
0 commit comments