Skip to content

Commit b3b5bc7

Browse files
committed
convert spaces to tabs
1 parent f3eee83 commit b3b5bc7

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

build-ffmpeg

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ if build "zlib"; then
284284
fi
285285

286286
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"
289289
fi
290290

291291
if build "cmake"; then
@@ -325,7 +325,7 @@ if build "x265"; then
325325
execute make -j $MJOBS
326326

327327
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
329329
fi
330330

331331
execute make install
@@ -341,7 +341,7 @@ CONFIGURE_OPTIONS+=("--enable-libx265")
341341
if build "libvpx"; then
342342
download "https://github.com/webmproject/libvpx/archive/v1.9.0.tar.gz" "libvpx-1.9.0.tar.gz"
343343

344-
EXTRA_FLAG=""
344+
EXTRA_FLAG=""
345345

346346
if [[ "$OSTYPE" == "darwin"* ]]; then
347347
echo "Applying Darwin patch"
@@ -355,7 +355,7 @@ if build "libvpx"; then
355355
execute make -j $MJOBS
356356

357357
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
359359
fi
360360

361361
execute make install
@@ -390,16 +390,16 @@ if build "vid_stab"; then
390390
execute make install
391391

392392
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"
394394
fi
395395

396396
build_done "vid_stab"
397397
fi
398398
CONFIGURE_OPTIONS+=("--enable-libvidstab")
399399

400400
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
403403
execute make -j $MJOBS
404404
execute make install
405405

@@ -416,31 +416,31 @@ if build "av1"; then
416416
execute make -j $MJOBS
417417

418418
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
420420
fi
421421

422-
execute make install
422+
execute make install
423423

424424
build_done "av1"
425425
fi
426426
CONFIGURE_OPTIONS+=("--enable-libaom")
427427

428428
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
435435

436-
build_done "dav1d"
436+
build_done "dav1d"
437437
fi
438438
CONFIGURE_OPTIONS+=("--enable-libdav1d")
439439

440440
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
444444
execute make -j $MJOBS
445445
execute make install
446446

@@ -516,35 +516,35 @@ fi
516516
CONFIGURE_OPTIONS+=("--enable-libtheora")
517517

518518
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
524524

525-
build_done "shine"
525+
build_done "shine"
526526
fi
527527
CONFIGURE_OPTIONS+=("--enable-libshine")
528528

529529
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
535535
execute make install
536536

537-
build_done "soxr"
537+
build_done "soxr"
538538
fi
539539
CONFIGURE_OPTIONS+=("--enable-libsoxr")
540540

541541
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
546546

547-
build_done "speex"
547+
build_done "speex"
548548
fi
549549
CONFIGURE_OPTIONS+=("--enable-libspeex")
550550

@@ -565,7 +565,7 @@ fi
565565
CONFIGURE_OPTIONS+=("--enable-libwebp")
566566

567567
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"
569569
make_dir build
570570
cd build || exit
571571
execute cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DBUILD_SHARED_LIBS:bool=on
@@ -591,24 +591,24 @@ if build "libsdl"; then
591591
fi
592592

593593
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
602602
fi
603603

604-
execute make install
604+
execute make install
605605

606-
build_done "snappy"
606+
build_done "snappy"
607607
fi
608608
CONFIGURE_OPTIONS+=("--enable-libsnappy")
609609

610610
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"
612612
execute ./configure --prefix="${WORKSPACE}" --enable-shared --disable-static
613613
execute make -j $MJOBS
614614
execute make install
@@ -696,12 +696,12 @@ if [[ "$AUTOINSTALL" == "yes" ]]; then
696696
if command_exists "sudo"; then
697697
sudo cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
698698
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"
700700
echo "Done. FFmpeg is now installed to your system."
701701
else
702702
cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
703703
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"
705705
echo "Done. FFmpeg is now installed to your system."
706706
fi
707707
elif [[ ! "$SKIPINSTALL" == "yes" ]]; then
@@ -711,11 +711,11 @@ elif [[ ! "$SKIPINSTALL" == "yes" ]]; then
711711
if command_exists "sudo"; then
712712
sudo cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
713713
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"
715715
else
716716
cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
717717
cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe"
718-
cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay"
718+
cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay"
719719
fi
720720
echo "Done. FFmpeg is now installed to your system."
721721
;;
@@ -724,9 +724,9 @@ fi
724724

725725
cd $CWD
726726
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" *
730730
fi
731731

732732
exit 0

0 commit comments

Comments
 (0)