browser-plugin: Add support for BROWSER_PLUGIN_DIR environment variable

This makes it easy to override where the plugin should be installed.

This is based on what totem does.

https://bugzilla.gnome.org/show_bug.cgi?id=659123
This commit is contained in:
Vincent Untz 2011-09-15 07:42:43 +02:00
parent 9486ca5975
commit 063f34b5d3
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
mozillalibdir = $(libdir)/mozilla/plugins
mozillalibdir = $(BROWSER_PLUGIN_DIR)
mozillalib_LTLIBRARIES = libgnome-shell-browser-plugin.la

View File

@ -235,6 +235,9 @@ else
fi
AC_SUBST(SHELL_SYSTEM_CA_FILE,["$with_ca_certificates"])
BROWSER_PLUGIN_DIR="${BROWSER_PLUGIN_DIR:-"\${libdir}/mozilla/plugins"}"
AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to])
AC_CONFIG_FILES([
Makefile
data/Makefile