summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandall2007-06-01 11:05:35 -0700
committerEric Sandall2007-06-01 11:05:35 -0700
commitc4b7b0416c805e8a7cf9c16f1111e11c67b27d9d (patch)
tree825077b69ff83d39630494b70afc8eb1f23706e5
parent990ed413f53c9fc952dadc2a93376b251b8f3328 (diff)
gnash: Install plugins for all available browsers
-rwxr-xr-xhttp/gnash/DEPENDS2
-rw-r--r--http/gnash/HISTORY5
-rwxr-xr-xhttp/gnash/INSTALL90
3 files changed, 96 insertions, 1 deletions
diff --git a/http/gnash/DEPENDS b/http/gnash/DEPENDS
index 841c178ce7..cc78fe878e 100755
--- a/http/gnash/DEPENDS
+++ b/http/gnash/DEPENDS
@@ -17,7 +17,7 @@ optional_depends kdebase \
'Build konqueror plugin?' &&
optional_depends NS-PLUGIN-COMPATIBLE \
- "--enable-plugin --with-plugindir=${INSTALL_ROOT}/usr/lib/mozilla/plugins" \
+ '--enable-plugin' \
'--disable-plugin' \
'for Netscape/Mozilla plugin' &&
diff --git a/http/gnash/HISTORY b/http/gnash/HISTORY
index 0c384c2c53..4e1a2b3552 100644
--- a/http/gnash/HISTORY
+++ b/http/gnash/HISTORY
@@ -1,3 +1,8 @@
+2007-06-01 Eric Sandall <sandalle@sourcemage.org>
+ * DEPENDS: Don't bother with --plugin-dir, as we'll install the plugin
+ ourselves
+ * INSTALL: Install the plugin to all plugin folders, not just mozilla's
+
2007-04-27 Eric Sandall <sandalle@sourcemage.org>
* CONFIGURE: Remove KDE option, it's no longer valid (even though it's
listed in ./configure --help)
diff --git a/http/gnash/INSTALL b/http/gnash/INSTALL
new file mode 100755
index 0000000000..edeca3fb95
--- /dev/null
+++ b/http/gnash/INSTALL
@@ -0,0 +1,90 @@
+default_install &&
+
+if spell_installed mozilla; then
+ message "${MESSAGE_COLOR}Installing for Mozilla${DEFAULT_COLOR}\n" &&
+
+ if [ -e $INSTALL_ROOT/usr/lib/mozilla/plugins/libgnashplugin.so ]; then
+ rm -f $INSTALL_ROOT/usr/lib/mozilla/plugins/libgnashplugin.so
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so $INSTALL_ROOT/usr/lib/mozilla/plugins/
+fi &&
+
+if spell_installed firefox; then
+ FIREFOX_DIR="/usr/lib/firefox" &&
+
+ message "${MESSAGE_COLOR}Installing for firefox${DEFAULT_COLOR}\n" &&
+
+ if [ -e $FIREFOX_DIR/plugins/libgnashplugin.so ]; then
+ rm -f $FIREFOX_DIR/plugins/libgnashplugin.so
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so $FIREFOX_DIR/plugins/
+fi &&
+
+if spell_installed seamonkey; then
+ message "${MESSAGE_COLOR}Installing for Seamonkey${DEFAULT_COLOR}\n" &&
+
+ if [ -e $INSTALL_ROOT/usr/lib/seamonkey/plugins/libgnashplugin.so ]; then
+ rm -f $INSTALL_ROOT/usr/lib/seamonkey/plugins/libgnashplugin.so
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so $INSTALL_ROOT/usr/lib/seamonkey/plugins/
+fi &&
+
+if spell_installed firefox-bin; then
+ message "${MESSAGE_COLOR}Installing for Firefox-bin${DEFAULT_COLOR}\n" &&
+
+ if [ -e /opt/firefox/plugins/libgnashplugin.so ]; then
+ rm -f /opt/firefox/plugins/libgnashplugin.so
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so /opt/firefox/plugins/
+fi &&
+
+if spell_installed kdebase; then
+ message "${MESSAGE_COLOR}Installing for Konqueror${DEFAULT_COLOR}\n" &&
+ message "${MESSAGE_COLOR}" \
+ "After install, add /usr/lib/konqueror to the Plugins folders\n" \
+ "list and click on the \"Scan for New Plugins\" button${DEFAULT_COLOR}\n" &&
+
+ if [ -e $INSTALL_ROOT/usr/lib/konqueror/libgnashplugin.so ]; then
+ rm -f $INSTALL_ROOT/usr/lib/konqueror/libgnashplugin.so
+ fi &&
+
+ if ! [ -d $INSTALL_ROOT/usr/lib/konqueror ]; then
+ mkdir --mode=755 $INSTALL_ROOT/usr/lib/konqueror
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so $INSTALL_ROOT/usr/lib/konqueror/
+fi &&
+
+if spell_installed opera; then
+ message "${MESSAGE_COLOR}Installing for Opera${DEFAULT_COLOR}\n" &&
+
+ if [ -e $INSTALL_ROOT/usr/lib/opera/plugins/libgnashplugin.so ]; then
+ rm -f $INSTALL_ROOT/usr/lib/opera/plugins/libgnashplugin.so
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so $INSTALL_ROOT/usr/lib/opera/plugins/
+fi
+
+if spell_installed netscape4; then
+ message "${MESSAGE_COLOR}Installing for Netscape${DEFAULT_COLOR}\n" &&
+
+ if [ -e $INSTALL_ROOT/usr/lib/netscape4/plugins/libgnashplugin.so ]; then
+ rm -f $INSTALL_ROOT/usr/lib/netscape4/plugins/libgnashplugin.so
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so $INSTALL_ROOT/usr/lib/netscape4/plugins/
+fi &&
+
+if spell_installed xulrunner; then
+ message "${MESSAGE_COLOR}Installing for XULRunner${DEFAULT_COLOR}\n" &&
+
+ if [ -e $INSTALL_ROOT/usr/lib/xulrunner/plugins/libgnashplugin.so ]; then
+ rm -f $INSTALL_ROOT/usr/lib/xulrunner/plugins/libgnashplugin.so
+ fi &&
+
+ cp plugin/.libs/libgnashplugin.so $INSTALL_ROOT/usr/lib/xulrunner/plugins/
+fi