@@ -284,8 +284,8 @@ if build "zlib"; then
284
284
fi
285
285
286
286
if build " meson" ; then
287
- execute python3 -m pip install meson ninja
288
- build_done " meson"
287
+ execute python3 -m pip install meson ninja
288
+ build_done " meson"
289
289
fi
290
290
291
291
if build " cmake" ; then
@@ -325,7 +325,7 @@ if build "x265"; then
325
325
execute make -j $MJOBS
326
326
327
327
if [[ " $OSTYPE " == " darwin" * ]]; then
328
- execute install_name_tool -id " ${WORKSPACE} /lib/libx265.198.dylib" libx265.198.dylib
328
+ execute install_name_tool -id " ${WORKSPACE} /lib/libx265.198.dylib" libx265.198.dylib
329
329
fi
330
330
331
331
execute make install
@@ -341,7 +341,7 @@ CONFIGURE_OPTIONS+=("--enable-libx265")
341
341
if build " libvpx" ; then
342
342
download " https://github.com/webmproject/libvpx/archive/v1.9.0.tar.gz" " libvpx-1.9.0.tar.gz"
343
343
344
- EXTRA_FLAG=" "
344
+ EXTRA_FLAG=" "
345
345
346
346
if [[ " $OSTYPE " == " darwin" * ]]; then
347
347
echo " Applying Darwin patch"
@@ -355,7 +355,7 @@ if build "libvpx"; then
355
355
execute make -j $MJOBS
356
356
357
357
if [[ " $OSTYPE " == " darwin" * ]]; then
358
- execute install_name_tool -id " ${WORKSPACE} /lib/libvpx.6.dylib" libvpx.6.dylib
358
+ execute install_name_tool -id " ${WORKSPACE} /lib/libvpx.6.dylib" libvpx.6.dylib
359
359
fi
360
360
361
361
execute make install
@@ -390,16 +390,16 @@ if build "vid_stab"; then
390
390
execute make install
391
391
392
392
if [[ " $OSTYPE " == " darwin" * ]]; then
393
- execute install_name_tool -id " ${WORKSPACE} /lib/libvidstab.1.1.dylib" " ${WORKSPACE} /lib/libvidstab.1.1.dylib"
393
+ execute install_name_tool -id " ${WORKSPACE} /lib/libvidstab.1.1.dylib" " ${WORKSPACE} /lib/libvidstab.1.1.dylib"
394
394
fi
395
395
396
396
build_done " vid_stab"
397
397
fi
398
398
CONFIGURE_OPTIONS+=(" --enable-libvidstab" )
399
399
400
400
if build " twolame" ; then
401
- download " https://downloads.sourceforge.net/twolame/twolame-0.4.0.tar.gz"
402
- execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
401
+ download " https://downloads.sourceforge.net/twolame/twolame-0.4.0.tar.gz"
402
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
403
403
execute make -j $MJOBS
404
404
execute make install
405
405
@@ -416,31 +416,31 @@ if build "av1"; then
416
416
execute make -j $MJOBS
417
417
418
418
if [[ " $OSTYPE " == " darwin" * ]]; then
419
- execute install_name_tool -id " ${WORKSPACE} /lib/libaom.2.dylib" libaom.2.0.0.dylib
419
+ execute install_name_tool -id " ${WORKSPACE} /lib/libaom.2.dylib" libaom.2.0.0.dylib
420
420
fi
421
421
422
- execute make install
422
+ execute make install
423
423
424
424
build_done " av1"
425
425
fi
426
426
CONFIGURE_OPTIONS+=(" --enable-libaom" )
427
427
428
428
if build " dav1d" ; then
429
- download " https://code.videolan.org/videolan/dav1d/-/archive/0.7.1/dav1d-0.7.1.tar.gz"
430
- make_dir " $PACKAGES " /dav1d_build
431
- cd " $PACKAGES " /dav1d_build || exit
432
- execute meson --prefix=" ${WORKSPACE} " ../dav1d-0.7.1
433
- execute ninja
434
- execute ninja install
429
+ download " https://code.videolan.org/videolan/dav1d/-/archive/0.7.1/dav1d-0.7.1.tar.gz"
430
+ make_dir " $PACKAGES " /dav1d_build
431
+ cd " $PACKAGES " /dav1d_build || exit
432
+ execute meson --prefix=" ${WORKSPACE} " ../dav1d-0.7.1
433
+ execute ninja
434
+ execute ninja install
435
435
436
- build_done " dav1d"
436
+ build_done " dav1d"
437
437
fi
438
438
CONFIGURE_OPTIONS+=(" --enable-libdav1d" )
439
439
440
440
if build " zimg" ; then
441
- download " https://github.com/sekrit-twc/zimg/archive/release-3.0.1.tar.gz"
442
- execute autoreconf -i
443
- execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
441
+ download " https://github.com/sekrit-twc/zimg/archive/release-3.0.1.tar.gz"
442
+ execute autoreconf -i
443
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
444
444
execute make -j $MJOBS
445
445
execute make install
446
446
516
516
CONFIGURE_OPTIONS+=(" --enable-libtheora" )
517
517
518
518
if build " shine" ; then
519
- download " https://github.com/toots/shine/archive/3.1.1.tar.gz" " shine-3.1.1.tar.gz"
520
- execute autoreconf -i
521
- execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
522
- execute make -j $MJOBS
523
- execute make install
519
+ download " https://github.com/toots/shine/archive/3.1.1.tar.gz" " shine-3.1.1.tar.gz"
520
+ execute autoreconf -i
521
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
522
+ execute make -j $MJOBS
523
+ execute make install
524
524
525
- build_done " shine"
525
+ build_done " shine"
526
526
fi
527
527
CONFIGURE_OPTIONS+=(" --enable-libshine" )
528
528
529
529
if build " soxr" ; then
530
- download " http://ftp.debian.org/debian/pool/main/libs/libsoxr/libsoxr_0.1.3.orig.tar.xz" " soxr-0.1.3.tar.xz"
531
- make_dir build
532
- cd build || exit
533
- execute cmake .. -DWITH_OPENMP:BOOL=OFF -Wno-dev -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:BOOL=ON
534
- execute make -j $MJOBS
530
+ download " http://ftp.debian.org/debian/pool/main/libs/libsoxr/libsoxr_0.1.3.orig.tar.xz" " soxr-0.1.3.tar.xz"
531
+ make_dir build
532
+ cd build || exit
533
+ execute cmake .. -DWITH_OPENMP:BOOL=OFF -Wno-dev -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:BOOL=ON
534
+ execute make -j $MJOBS
535
535
execute make install
536
536
537
- build_done " soxr"
537
+ build_done " soxr"
538
538
fi
539
539
CONFIGURE_OPTIONS+=(" --enable-libsoxr" )
540
540
541
541
if build " speex" ; then
542
- download " http://downloads.us.xiph.org/releases/speex/speex-1.2.0.tar.gz"
543
- execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
544
- execute make -j $MJOBS
545
- execute make install
542
+ download " http://downloads.us.xiph.org/releases/speex/speex-1.2.0.tar.gz"
543
+ execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
544
+ execute make -j $MJOBS
545
+ execute make install
546
546
547
- build_done " speex"
547
+ build_done " speex"
548
548
fi
549
549
CONFIGURE_OPTIONS+=(" --enable-libspeex" )
550
550
565
565
CONFIGURE_OPTIONS+=(" --enable-libwebp" )
566
566
567
567
if build " openjpeg" ; then
568
- download " https://github.com/uclouvain/openjpeg/archive/v2.3.1.tar.gz" " openjpeg-v2.3.1.tar.gz"
568
+ download " https://github.com/uclouvain/openjpeg/archive/v2.3.1.tar.gz" " openjpeg-v2.3.1.tar.gz"
569
569
make_dir build
570
570
cd build || exit
571
571
execute cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DBUILD_SHARED_LIBS:bool=on
@@ -591,24 +591,24 @@ if build "libsdl"; then
591
591
fi
592
592
593
593
if build " snappy" ; then
594
- download " https://github.com/google/snappy/archive/1.1.8.tar.gz"
595
- make_dir build
596
- cd build || exit
597
- execute cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DBUILD_SHARED_LIBS:bool=on
598
- execute make -j $MJOBS
599
-
600
- if [[ " $OSTYPE " == " darwin" * ]]; then
601
- execute install_name_tool -id " ${WORKSPACE} /lib/libsnappy.1.dylib" libsnappy.1.1.8.dylib
594
+ download " https://github.com/google/snappy/archive/1.1.8.tar.gz"
595
+ make_dir build
596
+ cd build || exit
597
+ execute cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DBUILD_SHARED_LIBS:bool=on
598
+ execute make -j $MJOBS
599
+
600
+ if [[ " $OSTYPE " == " darwin" * ]]; then
601
+ execute install_name_tool -id " ${WORKSPACE} /lib/libsnappy.1.dylib" libsnappy.1.1.8.dylib
602
602
fi
603
603
604
- execute make install
604
+ execute make install
605
605
606
- build_done " snappy"
606
+ build_done " snappy"
607
607
fi
608
608
CONFIGURE_OPTIONS+=(" --enable-libsnappy" )
609
609
610
610
if build " xz" ; then
611
- download " https://tukaani.org/xz/xz-5.2.5.tar.gz"
611
+ download " https://tukaani.org/xz/xz-5.2.5.tar.gz"
612
612
execute ./configure --prefix=" ${WORKSPACE} " --enable-shared --disable-static
613
613
execute make -j $MJOBS
614
614
execute make install
@@ -696,12 +696,12 @@ if [[ "$AUTOINSTALL" == "yes" ]]; then
696
696
if command_exists " sudo" ; then
697
697
sudo cp " $WORKSPACE /bin/ffmpeg" " $INSTALL_FOLDER /ffmpeg"
698
698
sudo cp " $WORKSPACE /bin/ffprobe" " $INSTALL_FOLDER /ffprobe"
699
- sudo cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
699
+ sudo cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
700
700
echo " Done. FFmpeg is now installed to your system."
701
701
else
702
702
cp " $WORKSPACE /bin/ffmpeg" " $INSTALL_FOLDER /ffmpeg"
703
703
cp " $WORKSPACE /bin/ffprobe" " $INSTALL_FOLDER /ffprobe"
704
- sudo cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
704
+ sudo cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
705
705
echo " Done. FFmpeg is now installed to your system."
706
706
fi
707
707
elif [[ ! " $SKIPINSTALL " == " yes" ]]; then
@@ -711,11 +711,11 @@ elif [[ ! "$SKIPINSTALL" == "yes" ]]; then
711
711
if command_exists " sudo" ; then
712
712
sudo cp " $WORKSPACE /bin/ffmpeg" " $INSTALL_FOLDER /ffmpeg"
713
713
sudo cp " $WORKSPACE /bin/ffprobe" " $INSTALL_FOLDER /ffprobe"
714
- sudo cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
714
+ sudo cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
715
715
else
716
716
cp " $WORKSPACE /bin/ffmpeg" " $INSTALL_FOLDER /ffmpeg"
717
717
cp " $WORKSPACE /bin/ffprobe" " $INSTALL_FOLDER /ffprobe"
718
- cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
718
+ cp " $WORKSPACE /bin/ffplay" " $INSTALL_FOLDER /ffplay"
719
719
fi
720
720
echo " Done. FFmpeg is now installed to your system."
721
721
;;
724
724
725
725
cd $CWD
726
726
if [[ " $OSTYPE " == " darwin" * ]]; then
727
- node copy_mac_libs.js
728
- cd " $WORKSPACE /mac"
729
- execute zip --symlinks -r " ffmpeg-ffprobe-shared-darwin-x86_64.${VERSION} .zip" *
727
+ node copy_mac_libs.js
728
+ cd " $WORKSPACE /mac"
729
+ execute zip --symlinks -r " ffmpeg-ffprobe-shared-darwin-x86_64.${VERSION} .zip" *
730
730
fi
731
731
732
732
exit 0
0 commit comments