-Mise à jour pour Firefox 9
[hvlinux.git] / stage5 / pkg / firefox
index 0dc3ac1..b181ad4 100644 (file)
@@ -43,6 +43,7 @@ ac_add_options --with-system-png
 ac_add_options --enable-system-cairo
 ac_add_options --enable-system-lcms
 ac_add_options --enable-system-sqlite
+ac_add_options --with-system-libvpx
 ac_add_options --enable-startup-notification
 
 ac_add_options --enable-svg
@@ -57,26 +58,11 @@ ac_add_options --enable-svg
 
 ac_add_options --disable-gnomevfs
 
-# uncomment this if you did not build curl
 ac_add_options --disable-crashreporter
-
-# This option is added so that the Mozilla Installer program is not
-# built or installed. The program is not required for a BLFS
-# installation of Firefox.
 ac_add_options --disable-installer
-
-# The updater is not useful if you build from source.
 ac_add_options --disable-updater
-
-# Disable the a11y support in the Firefox binaries.
 ac_add_options --disable-accessibility
-
-# This option is added so that test libraries and programs are not
-# built. These would only be required for debugging purposes.
 ac_add_options --disable-tests
-
-# The mochitest is a separate test feature and has caused problems
-# in the past.
 ac_add_options --disable-mochitest
 
 # use the anti-phishing blacklist
@@ -92,7 +78,7 @@ EOF
     if [ "x${HVLABEL}" = "x${FIREFOX}-browser" ]; then
         # Point to the xulrunner libraries.
         echo "ac_add_options --with-system-libxul" >> .mozconfig
-        echo "ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-${XULRUNNER_VER}" >> .mozconfig
+        echo "ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-${FIREFOX_VERSION}" >> .mozconfig
 
         # This option causes the installed binaries to have the official
         # Firefox name embedded in them.
@@ -109,11 +95,17 @@ EOF
 
     if [ "x${HVLABEL}" = "x${FIREFOX}-xulrunner" ]; then
         install -v -m755 -d /usr/lib/mozilla
+
         # Remove old links (if applicable) and create new ones
         rm -f /usr/lib/mozilla/plugins
-        ln -sv /usr/lib/xulrunner-${XULRUNNER_VER}/plugins /usr/lib/mozilla
+        ln -sv /usr/lib/xulrunner-${FIREFOX_VERSION}/plugins /usr/lib/mozilla
         chown -Rv root:root /usr/lib/xulrunner-* \
             /usr/share/idl/xulrunner-* \
             /usr/include/xulrunner-*
+    else
+        rm /usr/bin/firefox
+        echo "#!/bin/bash" > /usr/bin/firefox
+        echo "/usr/lib/xulrunner-${FIREFOX_VERSION}/xulrunner /usr/lib/firefox-${FIREFOX_VERSION}/application.ini \"${@}\"" >> /usr/bin/firefox
+        chmod 755 /usr/bin/firefox
     fi
 }