site  contact  subhomenews

Howto compile SeaMonkey

October 31, 2010 — BarryK
There is some discussion in the forum on how to compile SeaMonkey. This is how I do it:

You need to have sqlite at least 3.6.23.1, and hunspell installed.

create .mozconfig with this in it:


mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-sm-release
mk_add_options MOZ_CO_PROJECT=suite
ac_add_options --enable-application=suite
ac_add_options --enable-system-hunspell
ac_add_options --localstatedir=/var
ac_add_options --sysconfdir=/etc
ac_add_options --prefix=/usr
ac_add_options --host=i486-t2-linux-gnu
ac_add_options --disable-dbus
ac_add_options --disable-accessibility
ac_add_options --with-system-bz2
ac_add_options --disable-updater
ac_add_options --disable-parental-controls
ac_add_options --enable-places
ac_add_options --disable-gnomevfs
ac_add_options --disable-gnomeui
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-cairo
ac_add_options --enable-install-strip
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --enable-static
ac_add_options --enable-storage
ac_add_options --disable-tests
ac_add_options --with-default-mozilla-five-home=/usr/lib/seamonkey
ac_add_options --disable-jsd
ac_add_options --enable-default-toolkit=cairo-gtk2

# export MOZCONFIG=`pwd`

# make -f client.mk
# cd objdir-sm-release
# make package
...makes tarball in mozilla/dist/


You can also create a seamonkey_DEV package:

have to manually build the _DEV pkg...


mkdir usr/include/seamonkey-2.0.10
cd usr/include/seamonkey-2.0.10
mkdir xpcom
copied mozilla/xpcom/base/nscore.h, mozilla/xpcom/glue/nsDebug.h, to xpcom/.
# cp -frL /mnt/sda3/sources/input040/seamonkey-2.0.10/comm-1.9.1/mozilla/dist/include/* ./
# cp -frL /mnt/sda3/sources/input040/seamonkey-2.0.10/comm-1.9.1/mozilla/dist/public/* ./

had to manually create the /usr/lib/seamonkey/pkgconfig/seamonkey-*.pc files, also created symlinks. (see my seamonkey_DEV PETs how to do this)

This also:
# cd usr/include/seamonkey-2.0.10
# ln -s plugin/npapi.h npapi.h
# ln -s plugin/npruntime.h npruntime.h
# ln -s pref/nsIPrefBranch.h nsIPrefBranch.h
# ln -s pref/nsIPrefService.h nsIPrefService.h

See my seamonkey PET pkgs for anything else to add, http://distro.ibiblio.org/pub/linux/distributions/quirky/pet_packages-wary5/


It is important to get one of my PETs to see what to add and remove. For example, you can remove the spell-checker files as the system hunspell will take care of that (at least, in Wary and Quirky that is already installed).

I also do stuff like cut down some icons and remove some extensions (such as 'modern' theme).

Comments

Firefox Thunderbird compile(s)
Username: tronkel
OK good call on the Seamonkey build for Wary. Do you by any chance have the magic formulae for Firefox and Thunderbird as well? It would also be great if popular extensions for Mozilla apps such as Enigmail and Lightning, Provider for Google Calendar etc. were made available home-brewed for Wary/Quirky. Ubuntu/Debian have their own distro-specific builds of these extensions - so should Puppy Linux then.

SM-2.0.12
Username: 01micko
"I'm compiling now for spup :) I find AARnet the fastest mirror for grabbing SM sources: http://mirror.aarnet.edu.au/pub/mozilla/seamonkey/releases/2.0.12/source/ Got in about 30 seconds! I have also found this guide fantastic, only difference is that I enable dbus. Cheers

SM 2.0.12 problem
Username: FeodorF
"SM 2.0.12 doesn't work with Wary-511 k.2.6.31.14 Xorg 1.3.0 (SiS 741).


Tags: puppy