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
