diff options
Diffstat (limited to 'lib/librtmp/darwin_package_librtmp.sh')
-rwxr-xr-x | lib/librtmp/darwin_package_librtmp.sh | 8 |
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 |