Build the Optimized Firefox for iBook G4 (ppc-7450)

3月 27th, 2005 1 Comment »

自己編譯 iBook G4 最佳化的 Firefox 版本 (trunk nightly build)

1.編譯需求:
* Xcode Tools
* fink 需安裝的套件如下:
sudo apt-get update
sudo apt-get install orbit orbit-dev glib zip unzip pkgconfig
* SharedMenusCocoa.framework
wget ftp://ftp.url-manager.com/pub/SharedMenusCocoa.dmg.bin
copy the SharedMenusCocoa.framework folder from inside the SharedMenusCocoa/build folder to /Library/Frameworks

2.下載原始碼及編譯
export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
cvs login
cvs co mozilla/client.mk mozilla/browser/config
cd mozilla/
編輯 .mozconfig 檔,內容如下:
############################################################
# File Name: mozconfig
# Author: candyz
# Purpose: Build Firefox
# Last edit: 2005.03.27
############################################################

. $topsrcdir/browser/config/mozconfig

export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox_optimized
#mk_add_options MOZ_CO_LOCALES=”en-US zh-TW zh-TW”
#ac_add_options –enable-ui-locale=zh-TW
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options –enable-application=browser
ac_add_options –enable-svg
ac_add_options –enable-strip
ac_add_options –enable-strip-libs
ac_add_options –enable-static
ac_add_options –enable-pthreads
ac_add_options –enable-prebinding
ac_add_options –enable-optimize=”-O3 -faltivec -mcpu=7450 -mtune=7450 -mpowerpc -mpowerpc-gfxopt”
ac_add_options –disable-debug
ac_add_options –disable-tests
ac_add_options –disable-shared
ac_add_options –without-system-png
ac_add_options –without-system-mng
ac_add_options –without-system-nspr
ac_add_options –without-system-zlib
ac_add_options –without-system-jpeg
# end
###########################################

make -f client.mk checkout
make -f client.mk build

3.打包套件
cd firefox_optimized/xpinstall/packager/
make

放在 firefox_optimized/dist/ 目錄下的 firefox-*.dmg 就是了

參考資料:
http://forums.mozillazine.org/viewtopic.php?t=149532

我編譯好的最佳化版本:
http://cle.linux.org.tw/candyz/mac/ff/

FireStats icon Powered by FireStats