メモ: Lion で Firefox をビルド
Building Firefox for macOS - Mozilla | MDN を参考に:
(2) homebrew を入れる
(3) Mercurial を入れる
$ brew install Mercurial
Error: No available formula for Mercurial
Install Mercurial with pip:
easy_install pip && pip install Mercurial
Or easy_install:
easy_install Mercurial
$ sudo easy_install pip
$ sudo pip install Mercurial
(4) 他に必要な物を homebrew で入れる
$ brew install pkg-config $ brew install libIDL
(5) autoconf213 を homebrew で入れる
- その前に Lonnen から autoconf213.rb をダウンロードして /usr/local/Library/Formula/autoconf213.rb へ置いておく
$ brew install autoconf213
(6) ソースを入手
$ hg clone http://hg.mozilla.org/mozilla-central/ mozilla
(7) .mozconfig を作成
- webm と libjpeg-turbo はとりあえず使用しないことにした
$ cat > mozilla/.mozconfig . $topsrcdir/browser/config/mozconfig mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg mk_add_options MOZ_MAKE_FLAGS="-s -j4" ac_add_options --enable-debug ac_add_options --disable-optimize ac_add_options --disable-webm ac_add_options --disable-libjpeg-turbo mk_add_options AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213
(8) ビルド
$ cd mozilla $ make -f client.mk build
(9) 実行
$ cd mozilla
$ open obj-ff-dbg/dist/NightlyDebug.app