Commit 68930bbc authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

mowilla: Fix webplugin distribution on Mac OS X.

Please test, as I don't build mozilla.
parent 502dcd58
...@@ -472,7 +472,7 @@ VLC-release.app: vlc ...@@ -472,7 +472,7 @@ VLC-release.app: vlc
$(top_builddir)/VLC-release.app; \ $(top_builddir)/VLC-release.app; \
rm -Rf $(top_builddir)/tmp rm -Rf $(top_builddir)/tmp
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
ACTION="VLC-release.app" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh PRODUCT="VLC-release.app" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
$(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist
for i in $(srcdir)/share/lua/playlist/*.* ; do \ for i in $(srcdir)/share/lua/playlist/*.* ; do \
$(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist/`basename $${i}` ; \ $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist/`basename $${i}` ; \
......
...@@ -8,16 +8,15 @@ if test "${ACTION}" = ""; then ...@@ -8,16 +8,15 @@ if test "${ACTION}" = ""; then
ACTION="build" ACTION="build"
rm -fr ${FULL_PRODUCT_NAME} rm -fr ${FULL_PRODUCT_NAME}
# Debug -- # Debug --
fi
# Hack to use that script with the current VLC-release.app # Hack to use that script with the current VLC-release.app
if test "${ACTION}" = "VLC-release.app"; then elif test "${ACTION}" = "release-makefile"; then
TARGET_BUILD_DIR="${build_dir}" TARGET_BUILD_DIR="${build_dir}"
FULL_PRODUCT_NAME="VLC-release.app" FULL_PRODUCT_NAME="${PRODUCT}"
CONTENTS_FOLDER_PATH="${FULL_PRODUCT_NAME}/Contents/MacOS" CONTENTS_FOLDER_PATH="${FULL_PRODUCT_NAME}/Contents/MacOS"
VLC_BUILD_DIR="${build_dir}" VLC_BUILD_DIR="${build_dir}"
VLC_SRC_DIR="${src_dir}" VLC_SRC_DIR="${src_dir}"
ACTION="build" ACTION="build"
RELEASE_MAKEFILE="yes"
fi fi
if test "${ACTION}" = "build"; then if test "${ACTION}" = "build"; then
...@@ -98,6 +97,10 @@ if test "${ACTION}" = "build"; then ...@@ -98,6 +97,10 @@ if test "${ACTION}" = "build"; then
install_library "${VLC_BUILD_DIR}/src/${prefix}vlc" "${target}" "bin" "@loader_path/lib" install_library "${VLC_BUILD_DIR}/src/${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-release.app" ] ; then
install_library "${VLC_BUILD_DIR}/src/${prefix}npvlc.${suffix}" "${target}" "bin" "@loader_path/lib"
mv ${target}/npvlc.${suffix} "${target}/VLC Plugin.plugin"
chmod +x "${target}/VLC Plugin.plugin"
fi fi
########################## ##########################
...@@ -118,7 +121,7 @@ if test "${ACTION}" = "build"; then ...@@ -118,7 +121,7 @@ if test "${ACTION}" = "build"; then
mkdir -p ${target_lib} mkdir -p ${target_lib}
mkdir -p ${target_modules} mkdir -p ${target_modules}
if [ "$FULL_PRODUCT_NAME" != "VLC-release.app" ] ; then if [ "$RELEASE_MAKEFILE" != "yes" ] ; then
pushd `pwd` > /dev/null pushd `pwd` > /dev/null
cd ${TARGET_BUILD_DIR}/${FULL_PRODUCT_NAME} cd ${TARGET_BUILD_DIR}/${FULL_PRODUCT_NAME}
......
...@@ -105,47 +105,13 @@ endef ...@@ -105,47 +105,13 @@ endef
VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES) VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES)
rm -Rf "$@" rm -Rf "$@"
$(INSTALL) -d "$@/Contents/MacOS/lib" $(INSTALL) -d "$@/Contents/MacOS/lib"
$(INSTALL) ".libs/npvlc.dylib" "$@/Contents/MacOS/VLC Plugin"
$(INSTALL) -d "$(srcdir)/$@/Contents/MacOS/lib"; \
install_name_tool -change "$(libdir)/libvlccore.0.dylib" \
"@executable_path/lib/libvlccore.dylib" \
"$@/Contents/MacOS/VLC Plugin"
install_name_tool -change "$(libdir)/libvlc.2.dylib" \
"@executable_path/lib/libvlc.dylib" \
"$@/Contents/MacOS/VLC Plugin"
$(INSTALL) "$(top_builddir)/src/.libs/libvlccore.0.dylib" \
"$@/Contents/MacOS/lib/libvlccore.dylib"
$(INSTALL) "$(top_builddir)/src/.libs/libvlc.2.dylib" \
"$@/Contents/MacOS/lib/libvlc.dylib"
install_name_tool -change "$(libdir)/libvlccore.0.dylib" \
"@executable_path/lib/libvlccore.dylib" \
"$@/Contents/MacOS/lib/libvlc.dylib"
dylib="$@/Contents/MacOS/VLC Plugin"; $(FIXEXECPATH) ;
dylib="$@/Contents/MacOS/lib/libvlccore.dylib"; $(FIXEXECPATH) ;
dylib="$@/Contents/MacOS/lib/libvlc.dylib"; $(FIXEXECPATH) ;
$(INSTALL) -d "$@/Contents/Resources" $(INSTALL) -d "$@/Contents/Resources"
$(INSTALL) npvlc.rsrc "$@/Contents/Resources/VLC Plugin.rsrc" $(INSTALL) npvlc.rsrc "$@/Contents/Resources/VLC Plugin.rsrc"
cp -r "$(top_srcdir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/" cp -r "$(top_srcdir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/"
cp -r "$(top_builddir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/" cp -r "$(top_builddir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/"
$(INSTALL) "$(top_builddir)/extras/package/macosx/plugin/Info.plist" "$@/Contents/Info.plist" $(INSTALL) "$(top_builddir)/extras/package/macosx/plugin/Info.plist" "$@/Contents/Info.plist"
$(INSTALL) -d "$@/Contents/MacOS/modules" ACTION="release-makefile" PRODUCT="VLC Plugin.plugin" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
find $(top_srcdir)/modules/ -name '*_plugin.$(LIBEXT)' | \
while read i; do \
if test -n "$$i" ; then \
dylib="$@/Contents/MacOS/modules/`basename $$i`"; \
$(INSTALL) "$$i" "$$dylib"; \
install_name_tool -change "$(libdir)/libvlccore.0.dylib" \
"@executable_path/lib/libvlccore.dylib" "$$dylib"; \
$(FIXEXECPATH) ; \
fi ; \
done
if test -d $(top_srcdir)/extras/contrib/vlc-lib; then \
for i in $(top_srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
dylib="$@/Contents/MacOS/lib/`basename $${i}`" ; \
$(INSTALL) -m 644 "$${i}" "$$dylib" ; \
$(FIXEXECPATH); \
done ; \
fi
# uncomment if dependencies on XPCOM libs is sought # uncomment if dependencies on XPCOM libs is sought
# if test -d "$(MOZILLA_SDK_PATH)/lib"; then \ # if test -d "$(MOZILLA_SDK_PATH)/lib"; then \
# for i in "$(MOZILLA_SDK_PATH)"/lib/*.dylib ; do \ # for i in "$(MOZILLA_SDK_PATH)"/lib/*.dylib ; do \
......
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