aboutsummaryrefslogtreecommitdiff
path: root/lib/librtmp
diff options
context:
space:
mode:
authordavilla <davilla@svn>2010-07-07 20:22:16 +0000
committerdavilla <davilla@svn>2010-07-07 20:22:16 +0000
commit396294f6f924ac8dd0450194deeac97e967e1c4d (patch)
tree250dc9101c987ac1c90852cd9456a9f8b24e4246 /lib/librtmp
parent4abb2f38d1f85eb0850a8939bbd978bcfdc8196c (diff)
[osx] 1) fixed so script can be run in xbmc root or local dir, 2) space monster
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31653 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'lib/librtmp')
-rwxr-xr-xlib/librtmp/darwin_package_librtmp.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/librtmp/darwin_package_librtmp.sh b/lib/librtmp/darwin_package_librtmp.sh
index 8258892d5c..d47bbb937d 100755
--- a/lib/librtmp/darwin_package_librtmp.sh
+++ b/lib/librtmp/darwin_package_librtmp.sh
@@ -1,7 +1,11 @@
#!/bin/sh
SRC_LIB_RTMP="/opt/local/lib/librtmp.so.0"
-DST_LIB_RTMP="../../system/librtmp.so"
+if [ -e ./system ]; then
+ DST_LIB_RTMP="./system/librtmp.so"
+else
+ DST_LIB_RTMP="../../system/librtmp.so"
+fi
if [ -f $SRC_LIB_RTMP ]; then
# copy librtmp into xbmc's system directory, we
@@ -9,7 +13,7 @@ if [ -f $SRC_LIB_RTMP ]; then
cp $SRC_LIB_RTMP $DST_LIB_RTMP
# rename any dependency libs to inside xbmc's app framework
- for a in $(otool -L "$DST_LIB_RTMP" | grep opt | awk ' { print $1 } ') ; do
+ for a in $(otool -L "$DST_LIB_RTMP" | grep opt | awk ' { print $1 } ') ; do
echo "Processing $a"
install_name_tool -change "$a" @executable_path/../Frameworks/$(basename $a) "$DST_LIB_RTMP"
done