From cc359b973f02488261bb883c38fc2af76dbdd314 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 11 Mar 2023 16:15:04 +0100 Subject: [PATCH] Allow harrison channelstrip to use build-stack --- tools/osx_packaging/osx_build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index e52b43457c..8684adc2e7 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -841,6 +841,22 @@ echo "Setting Bundled Media dir/file permissions" find "${MediaClips}" -type d -exec chmod 755 "{}" \; find "${MediaClips}" -type f -exec chmod 644 "{}" \; +################################################################################ +if test -n "$MIXBUS"; then + + for file in `find ${PRODUCT_PKG_DIR}/${APPROOT}/lib/LV2 ${PRODUCT_PKG_DIR}/${APPROOT}/lib/ladspa -name "*.so"`; do + echo "Checking Plugin Binary: $file" + changes="" + for lib in `otool -L $file | egrep "(gtk/inst/|/opt/|/local/|libs/$STDCPP)" | awk '{print $1}'` ; do + base=`basename $lib` + changes="$changes -change $lib @executable_path/../lib/$base" + done + if test "x$changes" != "x" ; then + install_name_tool $changes $file + fi + done + +fi ################################################################################ if test x$DEMO_SESSION_URL != x ; then