Skip to content

Commit 222d076

Browse files
committed
macify
1 parent d1ca521 commit 222d076

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

cross_compile_ffmpeg.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,17 @@ install_cross_compiler
13521352

13531353
export PKG_CONFIG_LIBDIR= # disable pkg-config from reverting back to and finding system installed packages [yikes]
13541354

1355+
if [[ $OSTYPE == darwin* ]]; then
1356+
# mac add some helper scripts
1357+
mkdir mac_bin
1358+
cd mac_bin
1359+
curl https://raw.githubusercontent.com/rdp/ffmpeg-windows-build-helpers/master/patches/md5sum.mac -O md5sum || exit 1
1360+
export PATH=$PATH:`pwd`
1361+
cd ..
1362+
fi
1363+
13551364
original_path="$PATH"
1356-
if [ -d "mingw-w64-i686" ]; then # they installed a 32-bit compiler
1365+
if [ -d "mingw-w64-i686" ]; then # they installed a 32-bit compiler, build 32-bit everything
13571366
echo "Building 32-bit ffmpeg..."
13581367
host_target='i686-w64-mingw32'
13591368
mingw_w64_x86_64_prefix="$cur_dir/mingw-w64-i686/$host_target"
@@ -1368,7 +1377,7 @@ if [ -d "mingw-w64-i686" ]; then # they installed a 32-bit compiler
13681377
cd ..
13691378
fi
13701379

1371-
if [ -d "mingw-w64-x86_64" ]; then # they installed a 64-bit compiler
1380+
if [ -d "mingw-w64-x86_64" ]; then # they installed a 64-bit compiler, build 64-bit everything
13721381
echo "Building 64-bit ffmpeg..."
13731382
host_target='x86_64-w64-mingw32'
13741383
mingw_w64_x86_64_prefix="$cur_dir/mingw-w64-x86_64/$host_target"

patches/md5sum.mac

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
# for mac...
3+
/sbin/md5 -r "$@"

0 commit comments

Comments
 (0)