summaryrefslogtreecommitdiffstats
path: root/osx
diff options
context:
space:
mode:
Diffstat (limited to 'osx')
-rw-r--r--osx/Info.plist.in5
-rwxr-xr-xosx/bundleify.sh14
2 files changed, 14 insertions, 5 deletions
diff --git a/osx/Info.plist.in b/osx/Info.plist.in
index 691bf9d..e7a1249 100644
--- a/osx/Info.plist.in
+++ b/osx/Info.plist.in
@@ -22,5 +22,10 @@
<string>@PATCHAGE_VERSION@</string>
<key>CFBundleSignature</key>
<string>patc</string>
+ <key>LSEnvironment</key>
+ <dict>
+ <key>DYLD_LIBRARY_PATH</key>
+ <string>lib</string>
+ </dict>
</dict>
</plist>
diff --git a/osx/bundleify.sh b/osx/bundleify.sh
index caf4a26..cc72009 100755
--- a/osx/bundleify.sh
+++ b/osx/bundleify.sh
@@ -3,20 +3,24 @@
bundle=$1
exe=$2
-libs="`otool -L $exe | grep '\.dylib\|\.so' | grep '/User\|/opt/local' | sed 's/(.*//'`"
+libs="`otool -L $exe | grep '\.dylib\|\.so' | grep '/User\|/opt/local\|/usr/local' | sed 's/(.*//'`"
-mkdir "$bundle/Contents/lib"
+mkdir -p "$bundle/Contents/lib"
for l in $libs; do
cp $l $bundle/Contents/lib
done
-mkdir "$bundle/Contents/lib/engines"
+mkdir -p "$bundle/Contents/lib/engines"
cp /opt/local/lib/gtk-2.0/2.10.0/engines/libclearlooks.so $bundle/Contents/lib/engines
-mkdir "$bundle/Contents/lib/modules"
+mkdir -p "$bundle/Contents/lib/modules"
cp /opt/local/lib/pango/1.6.0/modules/*basic*.so $bundle/Contents/lib/modules
-reclibs="`otool -L $bundle/Contents/lib/engines/* $bundle/Contents/lib/modules/* | grep '\.dylib\|\.so' | grep '/User\|/opt/local' | sed 's/(.*//'`"
+reclibs="`otool -L $bundle/Contents/lib/* $bundle/Contents/lib/engines/* $bundle/Contents/lib/modules/* | grep '\.dylib\|\.so' | grep '/User\|/opt/local\|/usr/local' | sed 's/(.*//'`"
+
+for l in $reclibs; do
+ cp $l $bundle/Contents/lib
+done
for l in $libs $reclibs; do
lname=`echo $l | sed 's/.*\///'`