Build Localized Thunderbird

De Trustedbird Client Wiki

How to build a localized Thunderbird 2

Checkout Makefiles and l10n en-US files

Replace "THUNDERBIRD_2_0_0_22_RELEASE" in the following command for another version.

$ cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r THUNDERBIRD_2_0_0_22_RELEASE mozilla/client.mk
$ cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r MOZILLA_1_8_BRANCH mozilla/tools/l10n/l10n.mk
$ make -C mozilla -f client.mk l10n-checkout MOZ_CO_PROJECT=mail

Create mozconfig file

The locale is defined in mozilla/.mozconfig with two options, "MOZ_CO_LOCALES" and "enable-ui-locale".

Create mozilla/.mozconfig file:

# .mozconfig
mk_add_options MOZ_CO_PROJECT=mail
ac_add_options --enable-application=mail
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-static
ac_add_options --disable-shared
mk_add_options MOZ_MAKE_FLAGS="-j3"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj

mk_add_options MOZ_CO_LOCALES="fr"
ac_add_options --enable-ui-locale=fr

Checkout from CVS

$ make -C mozilla -f client.mk checkout

Build

GCC option "CPPFLAGS=-U_FORTIFY_SOURCE" must be set to prevent Thunderbird from crashing when GCC sets "-D_FORTIFY_SOURCE=2" by default (e.g. on Ubuntu systems).

$ make -C mozilla -f client.mk CPPFLAGS=-U_FORTIFY_SOURCE build

Create package

On Linux

$ make -C mozilla/obj/mail/installer

Tarball package (.tar.gz) is created in mozilla/obj/dist.

On Windows

$ make -C mozilla/obj/mail/installer installer

Installer package (.exe) is created in mozilla/obj/dist/install/sea.