mkdir -p ${2}
# Lets copy the library from the source folder to our new destination folder
- install -m 644 ${1} ${lib_dest}
-
+ if [ "${3}" != "bin" ]; then
+ install -m 644 ${1} ${lib_dest}
+ else
+ install -m 755 ${1} ${lib_dest}
+ fi
+
# Update the dynamic library so it will know where to look for the other libraries
echo "Installing ${3} `basename ${lib_dest}`"
install_library "${VLC_BUILD_DIR}/projects/mozilla/${prefix}npvlc.${suffix}" "${target}" "library" "@loader_path/lib"
mv ${target}/npvlc.${suffix} "${target}/VLC Plugin"
chmod +x "${target}/VLC Plugin"
+ else
+ install_library "${VLC_BUILD_DIR}/bin/${prefix}vlc" "${target}/bin" "bin" "@loader_path/../lib"
fi
##########################
ln -sf Versions/Current/${modules} .
ln -sf Versions/Current/${include} .
ln -sf Versions/Current/${share} .
+ ln -sf Versions/Current/bin .
popd > /dev/null
fi