From 27a0bf662d7dd46823222fd95d73587a0c7a095c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 4 Dec 2015 12:06:08 +0000 Subject: building of .app package for MacOS X with CMake (patch by Ivan Ponomarev) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5807 90c681e8-e032-0410-971d-27865f9a5e38 --- utils/fix_mac_libs.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 utils/fix_mac_libs.sh (limited to 'utils/fix_mac_libs.sh') diff --git a/utils/fix_mac_libs.sh b/utils/fix_mac_libs.sh new file mode 100755 index 000000000..d2d8c858b --- /dev/null +++ b/utils/fix_mac_libs.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#This script changes paths in installed binaries to relative. The first argument is path to .app package. + +echo Fixing paths to libraries inside $1... + +FINDDIR=$1/Contents +IFS=$'\n' +for i in `find $FINDDIR -type f -name \*.dylib -or -type f -name \*.so -or -type f -name qmmp` ; do + install_name_tool -change libqmmp.0.dylib @executable_path/../Frameworks/libqmmp.0.dylib $i + install_name_tool -change libqmmpui.0.dylib @executable_path/../Frameworks/libqmmpui.0.dylib $i +done + +echo Fixing paths to libraries done. -- cgit v1.2.3-13-gbd6f