- # Iterate through each installed library and modify the references to other dynamic libraries to match the framework's library directory
- for linked_lib in `otool -L ${lib_dest} | grep '(' | sed 's/\((.*)\)//'`; do
- local name=`basename ${linked_lib}`
- case "${linked_lib}" in
- */vlc_build_dir/* | */vlc_install_dir/* | *vlc* | */extras/contrib/lib/*)
- if test -e ${linked_lib}; then
- install_name_tool -change "$linked_lib" "${lib_install_prefix}/${name}" "${lib_dest}"
- linked_libs="${linked_libs} ${ref_lib}"
- install_library ${linked_lib} ${target_lib} "library"
- fi
- ;;
- esac
- done
+ if [ "${type}" != "data" ]; then
+ # Iterate through each installed library and modify the references to other dynamic libraries to match the framework's library directory
+ for linked_lib in `otool -L ${lib_dest} | grep '(' | sed 's/\((.*)\)//'`; do
+ local name=`basename ${linked_lib}`
+ case "${linked_lib}" in
+ */vlc_build_dir/* | */vlc_install_dir/* | *vlc* | */extras/contrib/lib/*)
+ if test -e ${linked_lib}; then
+ install_name_tool -change "$linked_lib" "${lib_install_prefix}/${name}" "${lib_dest}"
+ linked_libs="${linked_libs} ${ref_lib}"
+ vlc_install ${linked_lib} ${target_lib} "library"
+ fi
+ ;;
+ esac
+ done
+ fi