Commit 9d60b056 authored by Felix Paul Kühne's avatar Felix Paul Kühne

npapi/makefile: fix linking libvlc for OSX

This allows the plugin to be installed in the user directory as well in addition to the system library folder (wow..)
parent 47a691ac
......@@ -163,6 +163,8 @@ VLC-Plugin.plugin: $(lib_LTLIBRARIES)
$(INSTALL) "$(top_builddir)/npapi/.libs/npvlc.dylib" "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/"
mv $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/npvlc.dylib "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin"
chmod +x "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin"
install_name_tool -change $(LIBVLC_PREFIX)/lib/libvlc.5.dylib @loader_path/lib/libvlc.5.dylib $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin
install_name_tool -change $(LIBVLC_PREFIX)/lib/libvlccore.7.dylib @loader_path/lib/libvlccore.7.dylib $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin
find "$(top_builddir)/VLC-Plugin.plugin" -type d -exec chmod ugo+rx '{}' \;
find "$(top_builddir)/VLC-Plugin.plugin" -type f -exec chmod ugo+r '{}' \;
......
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