Commit 6366a6c4 authored by Rafaël Carré's avatar Rafaël Carré

mozilla: fix out-of-tree compilation on macosx

parent 68f4acf9
...@@ -108,33 +108,33 @@ endef ...@@ -108,33 +108,33 @@ endef
VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES) VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES)
rm -Rf "$@" rm -Rf "$@"
$(INSTALL) -d "$(srcdir)/$@/Contents/MacOS" $(INSTALL) -d "$@/Contents/MacOS/lib"
$(INSTALL) "$(srcdir)/.libs/npvlc.dylib" "$(srcdir)/$@/Contents/MacOS/VLC Plugin" $(INSTALL) ".libs/npvlc.dylib" "$@/Contents/MacOS/VLC Plugin"
$(INSTALL) -d "$(srcdir)/$@/Contents/MacOS/lib"; \ $(INSTALL) -d "$(srcdir)/$@/Contents/MacOS/lib"; \
install_name_tool -change "$(libdir)/libvlc.1.dylib" \ install_name_tool -change "$(libdir)/libvlc.1.dylib" \
"@executable_path/lib/libvlc.dylib" \ "@executable_path/lib/libvlc.dylib" \
"$(srcdir)/$@/Contents/MacOS/VLC Plugin" "$@/Contents/MacOS/VLC Plugin"
install_name_tool -change "$(libdir)/libvlc-control.1.dylib" \ install_name_tool -change "$(libdir)/libvlc-control.1.dylib" \
"@executable_path/lib/libvlc-control.dylib" \ "@executable_path/lib/libvlc-control.dylib" \
"$(srcdir)/$@/Contents/MacOS/VLC Plugin" "$@/Contents/MacOS/VLC Plugin"
$(INSTALL) "$(top_builddir)/src/.libs/libvlc.1.dylib" \ $(INSTALL) "$(top_builddir)/src/.libs/libvlc.1.dylib" \
"$(srcdir)/$@/Contents/MacOS/lib/libvlc.dylib" "$@/Contents/MacOS/lib/libvlc.dylib"
$(INSTALL) "$(top_builddir)/src/.libs/libvlc-control.1.dylib" \ $(INSTALL) "$(top_builddir)/src/.libs/libvlc-control.1.dylib" \
"$(srcdir)/$@/Contents/MacOS/lib/libvlc-control.dylib" "$@/Contents/MacOS/lib/libvlc-control.dylib"
install_name_tool -change "$(libdir)/libvlc.1.dylib" \ install_name_tool -change "$(libdir)/libvlc.1.dylib" \
"@executable_path/lib/libvlc.dylib" \ "@executable_path/lib/libvlc.dylib" \
"$(srcdir)/$@/Contents/MacOS/lib/libvlc-control.dylib" "$@/Contents/MacOS/lib/libvlc-control.dylib"
dylib="$(srcdir)/$@/Contents/MacOS/VLC Plugin"; $(FIXEXECPATH) ; dylib="$@/Contents/MacOS/VLC Plugin"; $(FIXEXECPATH) ;
dylib="$(srcdir)/$@/Contents/MacOS/lib/libvlc.dylib"; $(FIXEXECPATH) ; dylib="$@/Contents/MacOS/lib/libvlc.dylib"; $(FIXEXECPATH) ;
dylib="$(srcdir)/$@/Contents/MacOS/lib/libvlc-control.dylib"; $(FIXEXECPATH) ; dylib="$@/Contents/MacOS/lib/libvlc-control.dylib"; $(FIXEXECPATH) ;
$(INSTALL) -d "$(srcdir)/$@/Contents/Resources" $(INSTALL) -d "$@/Contents/Resources"
$(INSTALL) npvlc.rsrc "$(srcdir)/$@/Contents/Resources/VLC Plugin.rsrc" $(INSTALL) npvlc.rsrc "$@/Contents/Resources/VLC Plugin.rsrc"
cp -r "$(top_srcdir)/extras/MacOSX/plugin/English.lproj" "$(srcdir)/$@/Contents/Resources/" cp -r "$(top_srcdir)/extras/MacOSX/plugin/English.lproj" "$@/Contents/Resources/"
$(INSTALL) "$(top_srcdir)/extras/MacOSX/plugin/Info.plist" "$(srcdir)/$@/Contents/Info.plist" $(INSTALL) "$(top_srcdir)/extras/MacOSX/plugin/Info.plist" "$@/Contents/Info.plist"
$(INSTALL) -d "$(srcdir)/$@/Contents/MacOS/modules" $(INSTALL) -d "$@/Contents/MacOS/modules"
for i in "" `$(VLC_CONFIG) --target plugin` ; do \ for i in "" `$(VLC_CONFIG) --target plugin` ; do \
if test -n "$$i" ; then \ if test -n "$$i" ; then \
dylib="$(srcdir)/$@/Contents/MacOS/modules/`basename $$i$(LIBEXT)`"; \ dylib="$@/Contents/MacOS/modules/`basename $$i$(LIBEXT)`"; \
$(INSTALL) "`dirname $$i`/.libs/`basename $$i`$(LIBEXT)" "$$dylib"; \ $(INSTALL) "`dirname $$i`/.libs/`basename $$i`$(LIBEXT)" "$$dylib"; \
install_name_tool -change "$(libdir)/libvlc.1.dylib" \ install_name_tool -change "$(libdir)/libvlc.1.dylib" \
"@executable_path/lib/libvlc.dylib" "$$dylib"; \ "@executable_path/lib/libvlc.dylib" "$$dylib"; \
...@@ -143,7 +143,7 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES) ...@@ -143,7 +143,7 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES)
done done
if test -d $(top_srcdir)/extras/contrib/vlc-lib; then \ if test -d $(top_srcdir)/extras/contrib/vlc-lib; then \
for i in $(top_srcdir)/extras/contrib/vlc-lib/*.dylib ; do \ for i in $(top_srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
dylib="$(srcdir)/$@/Contents/MacOS/lib/`basename $${i}`" ; \ dylib="$@/Contents/MacOS/lib/`basename $${i}`" ; \
$(INSTALL) -m 644 "$${i}" "$$dylib" ; \ $(INSTALL) -m 644 "$${i}" "$$dylib" ; \
$(FIXEXECPATH); \ $(FIXEXECPATH); \
done ; \ done ; \
......
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