~ubuntu-branches/ubuntu/natty/mozvoikko/natty-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Extension for using Finnish spellchecker Voikko in Mozilla Firefox
==================================================================

NOTE! The method for building described below cannot be used when
packaging this extension for Linux distributions! Read README.xulrunner
for alternative instructions.

Supported versions:
==================

Firefox: 3.0b1 or newer (one can really use firefox-a9pre newer than 
    	 20.09.2007, but why to use version earlier than 3.0b1 any more)

Thunderbird: 3.0a1pre newer than 20.09.2007

SeaMonkey: 2.0a1pre newer than 20.09.2007 (for these versions install.js
	 script is no more needed, install.rdf is enough). I only verified
         that Voikko spell-check works with SeaMonkey nightly builds
         under Windows XP. 

I wanted also to try Sunbird nightly builds, but there seems to be no way
using of using spell-check. So Sunbird is not supported.

Source package includes following additional binary files required
for building extension binary package, but are not present in SVN
repository:

- several shared libraries used by mozvoikko. They are
   - intl.dll, iconv.dll, glib-2.0-0.dll, malaga.dll and libvoikko.dll
     for Windows.
   - libmalaga.so.7 and libvoikko.so.1 for Linux (both 32 and 64 bit versions,
     use libraries corresponding to the version which You are building)

- suomi-malaga files

Building from SVN sources
=========================

To build the extension from SVN sources on must at first copy external
binary files mentioned above to the corresponding subdirectories
of directory mozvoikko/src:

- windows DLL files mentioned above - to the directory
  mozvoikko/src/voikko-libs/WINNT_x86-msvc/. I took these DLL files
  from openoffice.org-voikko package (see
  http://www.konsulttilatka.fi/ooo/voikko.html)

- Linux 32 bit shared libraries libmalaga.so.7 and libvoikko.so.1 to
  mozvoikko/src/voikko-libs/Linux_x86-gcc3/ 

- Linux 64 bit shared libraries libmalaga.so.7 and libvoikko.so.1 to
  mozvoikko/src/voikko-libs/Linux_x86_64-gcc3/

- suomi-malaga files (voikko-fi_FI.lex_l, voikko-fi_FI.mor_l,
  voikko-fi_FI.pro, voikko-fi_FI.sym_l) to the directory
  mozvoikko/src/voikko-data/

For building the extension itself it's enough to copy shared libraries
for current target only and suomi-malaga files.

For building source package (make source_pkg) presence of all binary files
mentioned above is required.

Building from source package
============================

1) unpack source archive into Firefox or Thunderbird source directory (mozvoikko
   directory must go to mozilla/extensions/mozvoikko)

2) Create file .mozconfig at the top of the source tree. Not all configurations
   result in a working extension. At least the following is known to work:

   . $topsrcdir/browser/config/mozconfig
   mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-mozvoikko
   ac_add_options --enable-optimize
   ac_add_options --disable-debug
   ac_add_options --disable-tests
   ac_add_options --enable-extensions=default,mozvoikko

3) Read http://developer.mozilla.org/en/docs/Creating_Custom_Firefox_Extensions_with_the_Mozilla_Build_System
   about using Mozilla build system for building extensions and follow instructions.
   Extension name is mozvoikko


I myself have tested extension under Linux (both i686 and x86_64) and Windows XP

What I used for building mozvoikko
==================================

I built Linux 32 bit version of mozvoikko under Slackware-11 Linux distribution (running in
KVM (http://kvm.qumranet.com/kvmwiki) virtual machine under Fedora Core x86_64 version and
tested built extension in following Linux distributions: Slackware-11, Debian 4r1, Fedora 8.

64 bit Linux version were built under Debian 4r1 Etch amd64 version running in KVM virtual
machine under Fedora 8 and tested built extension in Debian 4r1 and Fedora 8.

 

Andris Pavenis <andris.pavenis@iki.fi>