Skip to content

Commit 797a306

Browse files
committed
sed fix MacOS
1 parent f821e2c commit 797a306

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-ffmpeg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ if build "x265"; then
290290
execute cmake -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" -DENABLE_SHARED:bool=off -DSTATIC_LINK_CRT:BOOL=ON -DENABLE_CLI:BOOL=OFF .
291291
execute make -j $MJOBS
292292
execute make install
293-
sed -i '' 's/-lgcc_s/-lgcc_eh/g' "$WORKSPACE/lib/pkgconfig/x265.pc" #The -i '' is intended and required on MacOS: https://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files/112024#112024
293+
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
294294
build_done "x265"
295295
fi
296296
CONFIGURE_OPTIONS+=("--enable-libx265")
@@ -460,7 +460,7 @@ if build "srt"; then
460460
export OPENSSL_INCLUDE_DIR="${WORKSPACE}"/include/
461461
execute cmake . -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
462462
execute make install
463-
sed -i '' 's/-lgcc_s/-lgcc_eh/g' "$WORKSPACE/lib/pkgconfig/srt.pc" #The -i '' is intended and required on MacOS: https://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files/112024#112024
463+
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
464464

465465
build_done "srt"
466466
fi
@@ -473,7 +473,7 @@ CONFIGURE_OPTIONS+=("--enable-libsrt")
473473
if command -v nvcc > /dev/null ; then
474474
if build "nv-codec"; then
475475
download "https://github.com/FFmpeg/nv-codec-headers/releases/download/n10.0.26.0/nv-codec-headers-10.0.26.0.tar.gz"
476-
sed -i '' "s#PREFIX = /usr/local#PREFIX = ${WORKSPACE}#g" Makefile #The -i '' is intended and required on MacOS: https://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files/112024#112024
476+
sed -i.backup "s#PREFIX = /usr/local#PREFIX = ${WORKSPACE}#g" Makefile #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
477477
execute make install
478478
build_done "nv-codec"
479479
fi

0 commit comments

Comments
 (0)