#!/bin/bash hvbuild() { FIREFOX_BUILD_DIR="${PACKAGE}-build" FIREFOX_VERSION="$(get_pkg_ver ${PACKAGE})" FIREFOX_PKG_VERSION="firefox-$(get_pkg_ver ${PACKAGE})" cd ${SRC_DIR} # Use the default settings specified in the source tree. echo '. $topsrcdir/browser/config/mozconfig' > .mozconfig cat >> .mozconfig << "EOF" # Create an object directory and specify to build the package in that # directory. If desired, modify the location of the object directory # to a directory inside the source tree by removing '../' from the # line below. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../_FIREFOX_BUILD_DIR_ ac_add_options --prefix=/usr # System libraries ac_add_options --enable-system-cairo ac_add_options --enable-system-lcms ac_add_options --enable-system-sqlite ac_add_options --with-system-libevent ac_add_options --with-system-libvpx ac_add_options --with-system-zlib ac_add_options --with-system-bz2 ac_add_options --with-system-jpeg ac_add_options --with-system-png ac_add_options --enable-system-ffi ac_add_options --enable-system-pixman ###ac_add_options --enable-gstreamer=1.0 ac_add_options --enable-shared-js ac_add_options --enable-startup-notification ac_add_options --enable-svg ac_add_options --with-pthreads # Compile with a minimal level of optimization ac_add_options --enable-optimize # Remove the debugging symbols from the installed binaries. ac_add_options --enable-strip ac_add_options --enable-install-strip ac_add_options --with-system-nspr ac_add_options --with-system-nss ac_add_options --with-system-icu ac_add_options --disable-gnomevfs ac_add_options --disable-crashreporter ac_add_options --disable-installer ac_add_options --disable-updater ac_add_options --disable-accessibility ac_add_options --disable-tests ac_add_options --disable-mochitest ac_add_options --disable-pulseaudio # use the anti-phishing blacklist ac_add_options --enable-safe-browsing # This option causes the installed binaries to have the official # Firefox name embedded in them. ac_add_options --enable-official-branding ac_add_options --enable-url-classifier ac_add_options --enable-gio # If you enable javaxpcom, you must have a java compiler installed. ac_add_options --disable-javaxpcom EOF sed -i -e "s!_FIREFOX_BUILD_DIR_!${FIREFOX_BUILD_DIR}!g" .mozconfig if [ -z "${WIFI_SUPPORT}" ]; then echo "ac_add_options --disable-necko-wifi" >> .mozconfig fi MOZ_MAKE_FLAGS="-j${MAKEJOBS}" make -f client.mk make -C ${LFS_TMP}/${PACKAGE}-build install INSTALL_SDK= install -v -m755 -d /usr/lib/mozilla/plugins ln -sfv ../../mozilla/plugins /usr/lib/firefox-${FIREFOX_VERSION}/browser }