Commit 54d22477 authored by Jean-Paul Saman's avatar Jean-Paul Saman

macosx: fix packaging Safari and Firefox plugin.

parent 283b125f
...@@ -575,7 +575,7 @@ VLC-release.app: vlc ...@@ -575,7 +575,7 @@ VLC-release.app: vlc
find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' \; find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' \;
# This is just for development purposes. # This is just for development purposes.
# The resulting VLC.app will only in this tree. # The resulting VLC.app will only run in this tree.
VLC.app: vlc $(top_builddir)/src/.libs/libvlccore.dylib $(top_builddir)/src/.libs/libvlc.dylib VLC.app: vlc $(top_builddir)/src/.libs/libvlccore.dylib $(top_builddir)/src/.libs/libvlc.dylib
(cd src && make install) (cd src && make install)
rm -Rf $(top_builddir)/tmp rm -Rf $(top_builddir)/tmp
......
...@@ -80,7 +80,7 @@ if test "${ACTION}" = "build"; then ...@@ -80,7 +80,7 @@ if test "${ACTION}" = "build"; then
for linked_lib in `otool -L ${lib_dest} | grep '(' | sed 's/\((.*)\)//'`; do for linked_lib in `otool -L ${lib_dest} | grep '(' | sed 's/\((.*)\)//'`; do
local name=`basename ${linked_lib}` local name=`basename ${linked_lib}`
case "${linked_lib}" in case "${linked_lib}" in
*/vlc_build_dir/* | *vlc* | */extras/contrib/lib/*) */vlc_build_dir/* | */vlc_install_dir/* | *vlc* | */extras/contrib/lib/*)
if test -e ${linked_lib}; then if test -e ${linked_lib}; then
install_name_tool -change "$linked_lib" "${lib_install_prefix}/${name}" "${lib_dest}" install_name_tool -change "$linked_lib" "${lib_install_prefix}/${name}" "${lib_dest}"
linked_libs="${linked_libs} ${ref_lib}" linked_libs="${linked_libs} ${ref_lib}"
...@@ -103,10 +103,11 @@ if test "${ACTION}" = "build"; then ...@@ -103,10 +103,11 @@ if test "${ACTION}" = "build"; then
install_library "${VLC_BUILD_DIR}/bin/${prefix}vlc" "${target}" "bin" "@loader_path/lib" install_library "${VLC_BUILD_DIR}/bin/${prefix}vlc" "${target}" "bin" "@loader_path/lib"
mv ${target}/vlc ${target}/VLC mv ${target}/vlc ${target}/VLC
chmod +x ${target}/VLC chmod +x ${target}/VLC
# elif [ "$FULL_PRODUCT_NAME" = "VLC-Plugin.plugin" ] ; then elif [ "$FULL_PRODUCT_NAME" = "VLC-Plugin.plugin" ] ; then
# install_library "${VLC_BUILD_DIR}/projects/mozilla/.libs/${prefix}npvlc.${suffix}" "${target}" "bin" "@loader_path/lib" # install Safari webplugin
# mv ${target}/npvlc.${suffix} "${target}/VLC\ Plugin" install_library "${VLC_BUILD_DIR}/projects/mozilla/${prefix}npvlc.${suffix}" "${target}" "library" "@loader_path/lib"
# chmod +x "${target}/VLC\ Plugin" mv ${target}/npvlc.${suffix} "${target}/VLC Plugin"
chmod +x "${target}/VLC Plugin"
fi fi
########################## ##########################
...@@ -152,7 +153,9 @@ if test "${ACTION}" = "build"; then ...@@ -152,7 +153,9 @@ if test "${ACTION}" = "build"; then
esac esac
done done
install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library" #install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library"
install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.2.dylib" ${target_lib} "library"
install_library "${VLC_BUILD_DIR}/src/${prefix}libvlccore.dylib" ${target_lib} "library"
########################## ##########################
# Build the share folder # Build the share folder
......
...@@ -107,10 +107,6 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES) ...@@ -107,10 +107,6 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES)
$(INSTALL) -d "VLC-Plugin.plugin/Contents/MacOS/lib" $(INSTALL) -d "VLC-Plugin.plugin/Contents/MacOS/lib"
$(INSTALL) -d "VLC-Plugin.plugin/Contents/Resources" $(INSTALL) -d "VLC-Plugin.plugin/Contents/Resources"
ACTION="release-makefile" PRODUCT="VLC-Plugin.plugin" src_dir=$(srcdir) build_dir=$(top_builddir) sh "$(top_srcdir)/projects/macosx/framework/Pre-Compile.sh" ACTION="release-makefile" PRODUCT="VLC-Plugin.plugin" src_dir=$(srcdir) build_dir=$(top_builddir) sh "$(top_srcdir)/projects/macosx/framework/Pre-Compile.sh"
$(INSTALL) .libs/npvlc.dylib "VLC-Plugin.plugin/Contents/MacOS/VLC Plugin"
dylib="VLC-Plugin.plugin/Contents/MacOS/VLC Plugin"; $(FIXEXECPATH);
$(INSTALL) .libs/npvlc.dylib "VLC-Plugin.plugin/Contents/MacOS/lib"
dylib="VLC-Plugin.plugin/Contents/MacOS/lib/npvlc.dylib"; $(FIXEXECPATH);
$(INSTALL) npvlc.rsrc "VLC-Plugin.plugin/Contents/Resources/VLC Plugin.rsrc" $(INSTALL) npvlc.rsrc "VLC-Plugin.plugin/Contents/Resources/VLC Plugin.rsrc"
$(INSTALL) "$(top_builddir)/extras/package/macosx/plugin/Info.plist" "VLC-Plugin.plugin/Contents/Info.plist" $(INSTALL) "$(top_builddir)/extras/package/macosx/plugin/Info.plist" "VLC-Plugin.plugin/Contents/Info.plist"
mv "VLC-Plugin.plugin" "VLC Plugin.plugin" mv "VLC-Plugin.plugin" "VLC Plugin.plugin"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment