Skip to content

Commit

Permalink
Handle any location for ffmpeg libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Aug 3, 2020
1 parent 34c5c4b commit abac67e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions CI/package-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ FILENAME_UNSIGNED="obs-ios-camera-source-$VERSION-Unsigned.pkg"
FILENAME="obs-ios-camera-source-$VERSION.pkg"

echo "-- Modifying obs-ios-camera-source.so"
install_name_tool \
-change /usr/local/opt/ffmpeg/lib/libavcodec.58.dylib @rpath/libavcodec.58.dylib \
-change /usr/local/opt/ffmpeg/lib/libavutil.56.dylib @rpath/libavutil.56.dylib \
-change /tmp/obsdeps/bin/libavcodec.58.dylib @rpath/libavcodec.58.dylib \
-change /tmp/obsdeps/bin/libavutil.56.dylib @rpath/libavutil.56.dylib \
./build/obs-ios-camera-source.so
for lib in $(otool -L ./build/obs-ios-camera-source.so | awk '$1 ~ /^\// && $1 ~ /(libav.*)$/ { print $1 }'); do
install_name_tool -change "$lib" "@rpath/$(basename "$lib")" ./build/obs-ios-camera-source.so
done

echo "-- Dependencies for obs-ios-camera-source"
otool -L ./build/obs-ios-camera-source.so
Expand Down

0 comments on commit abac67e

Please sign in to comment.