[Lunar-commits] <moonbase> firefox: add option to build with PGO, and others
Zachary McGrew
zmcgrew at lunar-linux.org
Mon Mar 2 09:43:54 CET 2009
commit d4d41ec4f9ada7312430c3a3774ff52ec5a08e00
Author: Zachary McGrew <zmcgrew at lunar-linux.org>
Date: Mon Mar 2 00:43:54 2009 -0800
firefox: add option to build with PGO, and others
---
web/firefox/BUILD | 28 ++++++++++++++++++----------
web/firefox/CONFIGURE | 3 +++
web/firefox/DEPENDS | 8 +++++---
3 files changed, 26 insertions(+), 13 deletions(-)
diff --git a/web/firefox/BUILD b/web/firefox/BUILD
index 193492a..32f93a8 100644
--- a/web/firefox/BUILD
+++ b/web/firefox/BUILD
@@ -8,7 +8,7 @@
MOZILLA_HOME=/usr/lib/$MODULE-$VERSION
- MOZ_EXTENSIONS="default,xforms"
+ MOZ_EXTENSIONS="default,xforms,mozdevelop,venkman"
if in_depends $MODULE heimdal ; then
MOZ_EXTENSIONS="${MOZ_EXTENSIONS},auth"
@@ -36,14 +36,14 @@
--with-x \
--with-pthreads \
--with-default-mozilla-five-home=$MOZILLA_HOME \
- --with-user-appdir=".firefox" \
+ --with-user-appdir=".firefox" \
--with-system-zlib \
--with-system-jpeg \
- --enable-extensions=${MOZ_EXTENSIONS} \
+ --enable-extensions=${MOZ_EXTENSIONS} \
--enable-single-profile \
- --enable-storage \
- --enable-places \
- --enable-places_bookmarks \
+ --enable-storage \
+ --enable-places \
+ --enable-places_bookmarks \
--enable-application=browser \
--enable-optimize="$CFLAGS" \
--enable-reorder \
@@ -57,7 +57,7 @@
--enable-svg-renderer=cairo \
--enable-system-cairo \
--enable-xterm-updates \
- --enable-libxul \
+ --enable-libxul \
--enable-official-branding \
--disable-debug \
--disable-freetype2 \
@@ -68,12 +68,20 @@
--disable-mailnews \
--disable-logging \
--disable-accessibility \
- --disable-ldap \
+ --disable-ldap \
--disable-profilesharing \
- --disable-mathml \
+ --disable-mathml \
$OPTS &&
- default_make &&
+ if [ "$PGO" == "y" ] ; then
+ #CCache breaks the pgo build
+ export CCACHE_DISABLE=1
+ make PROFILE_GEN_SCRIPT="python $MOZ_OBJDIR/_profile/pgo/profileserver.py" profiledbuild &&
+ prepare_install &&
+ make install
+ else
+ default_make
+ fi &&
# Put some important headers in place
mkdir -p /usr/include/firefox-$VERSION/nss &&
diff --git a/web/firefox/CONFIGURE b/web/firefox/CONFIGURE
new file mode 100644
index 0000000..7343b8e
--- /dev/null
+++ b/web/firefox/CONFIGURE
@@ -0,0 +1,3 @@
+mquery PGO "Build with Profile Guided Optimization?" y "--enable-profile-guided-optimization" ""
+mquery SAFE "Enable safe browsing (anti-phishing)?" y "--enable-safe-browsing" ""
+mquery WEBSERVICES "Enable webservices support?" y "--enable-webservices" ""
diff --git a/web/firefox/DEPENDS b/web/firefox/DEPENDS
index 4cf40da..3f203b5 100644
--- a/web/firefox/DEPENDS
+++ b/web/firefox/DEPENDS
@@ -9,10 +9,12 @@ depends curl
optional_depends "sqlite" \
"--enable-system-sqlite" \
"--disable-system-sqlite" \
- "use sqlite for firefox storage"
-optional_depends "%FLASH" "" "" "to enable Shockwave Flash"
-optional_depends "gnome-vfs" "" "--disable-gnomevfs" "for Gnome VFS support"
+ "Use system sqlite"
+optional_depends "%FLASH" "" "" "To enable Flash plugin"
+optional_depends "gnome-vfs" "" "--disable-gnomevfs" "For Gnome VFS support"
optional_depends "heimdal" \
"--with-gssapi=/usr/include/heimdal" \
"--without-gssapi" \
"Heimdal GSSAPI Support"
+optional_depends "Python" "" "" \
+ "Needed to do a Profile Guided Optimized build"
More information about the Lunar-commits
mailing list