mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-13 19:57:11 +01:00
Fixed libiio and libad9361 missing from MacOS bundle
This commit is contained in:
parent
46a9ecee72
commit
098b78dcd1
@ -57,34 +57,36 @@ bundle_get_exec_rpaths() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# bundle_find_full_path [dep_path] [dep_name] [exec_rpaths]
|
# bundle_find_full_path [dep_path] [exec_rpaths]
|
||||||
bundle_find_full_path() {
|
bundle_find_full_path() {
|
||||||
# If path is relative to rpath, find the full path
|
# If path is relative to rpath, find the full path
|
||||||
local IS_RPATH_RELATIVE=$(echo $1 | grep @rpath)
|
local IS_RPATH_RELATIVE=$(echo $1 | grep @rpath/)
|
||||||
if [ "$IS_RPATH_RELATIVE" = "" ]; then
|
if [ "$IS_RPATH_RELATIVE" = "" ]; then
|
||||||
echo $1
|
echo $1
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local RPATH_NEXT=$(echo $1 | cut -c 7-)
|
||||||
|
|
||||||
# Search in the exec's RPATH
|
# Search in the exec's RPATH
|
||||||
echo "$3" | while read -r RPATH; do
|
echo "$2" | while read -r RPATH; do
|
||||||
# If not found, skip
|
# If not found, skip
|
||||||
if [ ! -f $RPATH/$2 ]; then
|
if [ ! -f $RPATH/$RPATH_NEXT ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Correct dep path
|
# Correct dep path
|
||||||
echo $RPATH/$2
|
echo $RPATH/$RPATH_NEXT
|
||||||
return
|
return
|
||||||
done
|
done
|
||||||
|
|
||||||
# Search other common paths
|
# Search other common paths
|
||||||
if [ -f /usr/local/lib/$2 ]; then
|
if [ -f /usr/local/lib/$RPATH_NEXT ]; then
|
||||||
echo /usr/local/lib/$2
|
echo /usr/local/lib/$RPATH_NEXT
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ -f /Library/Frameworks/$2 ]; then
|
if [ -f /Library/Frameworks/$RPATH_NEXT ]; then
|
||||||
echo /Library/Frameworks/$2
|
echo /Library/Frameworks/$RPATH_NEXT
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -147,7 +149,7 @@ bundle_install_binary() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DEP=$(bundle_find_full_path $DEP $DEP_NAME $RPATHS)
|
DEP=$(bundle_find_full_path $DEP $RPATHS)
|
||||||
|
|
||||||
# If the dependency is not installed, install it
|
# If the dependency is not installed, install it
|
||||||
if [ ! -f $1/Contents/Frameworks/$DEP_NAME ]; then
|
if [ ! -f $1/Contents/Frameworks/$DEP_NAME ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user