aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-12-04 12:06:08 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-12-04 12:06:08 +0000
commit27a0bf662d7dd46823222fd95d73587a0c7a095c (patch)
treebaa321a9300ee2560bb71c20cdf09295bf164843 /utils
parentee2dcb552128031dce57f1cab62857c76e98916c (diff)
downloadqmmp-27a0bf662d7dd46823222fd95d73587a0c7a095c.tar.gz
qmmp-27a0bf662d7dd46823222fd95d73587a0c7a095c.tar.bz2
qmmp-27a0bf662d7dd46823222fd95d73587a0c7a095c.zip
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
Diffstat (limited to 'utils')
-rwxr-xr-xutils/fix_mac_libs.sh14
1 files changed, 14 insertions, 0 deletions
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.