From 00bc3f76cf14a1aa63f969d803686f3c5c09474a Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 14 Oct 2023 03:27:57 +0200 Subject: [PATCH] macgstcopy: Copy libsoup --- dist/macos/macgstcopy.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dist/macos/macgstcopy.sh b/dist/macos/macgstcopy.sh index 4f2020806..f3838d256 100755 --- a/dist/macos/macgstcopy.sh +++ b/dist/macos/macgstcopy.sh @@ -130,3 +130,15 @@ for gst_plugin in $gst_plugins; do echo "Warning: Missing gstreamer plugin ${gst_plugin}." fi done + +# libsoup is dynamically loaded by gstreamer, so it needs to be copied. +if [ "${LIBSOUP_LIBRARY_PATH}" = "" ]; then + echo "Warning: Set the LIBSOUP_LIBRARY_PATH environment variable for copying libsoup." +else + if [ -e "${LIBSOUP_LIBRARY_PATH}" ]; then + mkdir -p "${bundledir}/Contents/Frameworks" || exit 1 + cp -v -f "${LIBSOUP_LIBRARY_PATH}" "${bundledir}/Contents/Frameworks/" || exit 1 + else + echo "Warning: Missing libsoup ${LIBSOUP_LIBRARY_PATH}." + fi +fi